Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Oct 2003 08:18:51 +0200
From:      Harald Schmalzbauer <h@schmalzbauer.de>
To:        freebsd@killersolutions.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD routing between 2 interfaces
Message-ID:  <3F7A71CB.9010108@schmalzbauer.de>
In-Reply-To: <63697.www.killersolutions.com.1064972023.ronate@www.killersolutions.c     om>
References:  <63697.www.killersolutions.com.1064972023.ronate@www.killersolutions.c     om>

next in thread | previous in thread | raw e-mail | index | archive | help
freebsd@killersolutions.com wrote:

>Dear FreeBSD users,
>
>I urgenly need to connect 192.168.1.* network to the internet. What am I
>doing wrong?
>
>I have 2 networks, 192.168.0.* and 192.168.1.*
>FreeBSD 5.1 is connected to both networks via 2 network cards, its ip is 
>192.168.0.3 and 192.168.1.2.
>As of now from the 192.168.1 network I can only ping the 192.168.0.1 and
>192.168.0.3 machines. Nothing else. No Internet.
>
>Rc.conf =       gateway_enable="YES", defaultrouter="192.168.0.1",
>firewall_script="/etc/ipfw.rules"
>ipfw.rules =    ipfw add pipe 1 ip from any to any in recv dc0
>		ipfw add pipe 2 ip from any to any out xmit dc0
>		ipfw pipe 1 config mask src-ip 0xffffffff bw 1024kbits/s
>		ipfw pipe 2 config mask dst-ip 0xffffffff bw 1024kbits/s
>
>        Internet
>            |
>       192.168.0.1
>Router/DHCP Server/Switch
>            |
>	    |
>	    |
>	-----------------------------
>	|                           |
>        |                           |
>	|		     (FreeBSD 5.1 Machine - DNS/Web Server/Samba Server)
>192.168.0.* clients         192.168.0.3(xl0)
>		            192.168.1.2(dc0) (Limit Bandwidth to 192.168.1.* on this
>network(dc0) card to 1024kbits max)
>				    |
>				    |
>			       Router/Switch/DHCP server
>				    |
>				    |
>				192.168.1.* clients
>
>  
>
Hmm, are you sure your DHCP assigns the correct /24 mask?
Why don't you use 255.255.0.0 as subnet mask?
Haven't played with IPFW for years now so I can't say anything about 
your rules.

-Harry

>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
>
>  
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F7A71CB.9010108>