From owner-freebsd-questions@FreeBSD.ORG Wed Jun 23 07:24:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E3EF16A4CE for ; Wed, 23 Jun 2004 07:24:08 +0000 (GMT) Received: from web41710.mail.yahoo.com (web41710.mail.yahoo.com [66.218.93.127]) by mx1.FreeBSD.org (Postfix) with SMTP id 7B79843D53 for ; Wed, 23 Jun 2004 07:24:08 +0000 (GMT) (envelope-from eodyna@yahoo.com.au) Message-ID: <20040623072357.11862.qmail@web41710.mail.yahoo.com> Received: from [203.8.18.100] by web41710.mail.yahoo.com via HTTP; Wed, 23 Jun 2004 17:23:57 EST Date: Wed, 23 Jun 2004 17:23:57 +1000 (EST) From: =?iso-8859-1?q?eodyna?= To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-4208400-1087975437=:11808" Content-Transfer-Encoding: 8bit Subject: Advice on network setup/layout X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2004 07:24:08 -0000 --0-4208400-1087975437=:11808 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline hello there, Ive never done this before (and it may seem odd) but, id like to get your advice on how to configure a network with 2 outside interfaces. One interface would be connected to a cable modem and the other to an adsl modem. This is what i have so far. 1 cable connection 1 adsl connection 1 computer (running fbsd 5.2.1) 5 NICs the diagram i have attached is kinda what im thinking it would look like. Any advice would be great. I have compiled the following options into the kernel # Firewall IPFIREWALL options options TCP_DROP_SYNFIN options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=100 options IPFIREWALL_DEFAULT_TO_ACCEPT options RANDOM_IP_ID options IPDIVERT options IPSTEALTH options IPSEC set the following in rc.conf ifconfig_fxp1="DHCP" #*cable* ifconfig_fxp2="inet 10.0.0.1 netmask 255.255.255.0" ifconfig_fxp3="DHCP" #*adsl* ifconfig_fxp4="inet 10.5.0..1 netmask 255.255.0.0" # PPP CONFIGURATION - adsl #ppp_enable="YES" #ppp_profile="provider" #ppp_mode="ddial" # NAT CONFIGURATION #natd_enable="YES" #natd_interface="fxp1 fxp3" #natd_flags="-s -u -f /etc/natd.conf" # FIREWALL CONFIGURATION IPFW #firewall_enable="YES" #firewall_type="SIMPLE" #firewall_quiet="NO" I dont really know if im going about this the right way or not (or what im missing), but i think im going to end up confusing myself at some point. esp. when it comes to the firewall rules. so if you have some advice. id gladly listen/read. cheers (i hope this makes sense) ams Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com --0-4208400-1087975437=:11808 Content-Type: text/plain; name="network_layout.txt" Content-Description: network_layout.txt Content-Disposition: inline; filename="network_layout.txt" ------------- -------------- | Internet | | Internet | ------------- -------------- | | | | | | ----------------- ----------------- | ADSL Modem | | Cable Modem | ----------------- ----------------- | | | | | | | fxp3 | | fxp1 | | | | | --------------------------------------------------- | | | -------------------- | FreeBSD 5.2.1 | -------------------- | | ------------------------------------------------- | | | fxp 4| | fxp2 | | | | | ------------- ------------------------------- | 8 port hub | | 16 Port Networking Switch | -------------- ------------------------------- | | | -------------- ----------------- ---------------- | comp. 1 | | Computer 1 | | Computer 2 | --------------- ----------------- ---------------- --0-4208400-1087975437=:11808--