Advice on network setup/layout

eodyna eodyna at yahoo.com.au
Wed Jun 23 00:24:08 PDT 2004


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
-------------- next part --------------
-------------                                 	-------------- 
| 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   |
    ---------------                 -----------------       ----------------


More information about the freebsd-questions mailing list