Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2003 13:39:47 -0400
From:      "Justin P. Michel" <jpmichel@jcontinuum.ca>
To:        <freebsd-questions@freebsd.org>
Subject:   NAT Woes...
Message-ID:  <021601c39343$572f85d0$0e0ea8c0@ARAMIS>

next in thread | raw e-mail | index | archive | help
Greetings,

I am having a problem with NAT.

I have my FreeBSD system, running 4.8, cvsup'd to p13.  I have the following
in my kernel configuration:

options IPDIVERT
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=10

I have two network adapters, both Realtek 8139s.  The first is set to
192.168.0.2, the second is set to 10.0.0.1.

The 192.168.0.2 one plugs into my router, and the 10.0.0.1 one plugs into my
local hub (just like in the picture in the handbook).

The system can ping and talk fine with the outside world.  However, when I
plug a system into the hub, the FreeBSD systems assigns it an IP (I'm
running dhcpd on the FreeBSD system as well), and I can ping the FreeBSD
system on the 10.0.0.1 interface, but I can not ping the other interface, or
access the outside world.

I have the following in my rc.conf as well:

gateway_enable="YES"
firewall_enable="YES"
firewall_type="OPEN"
natd_enable="YES"
natd_interface="rl0"
natd_flags=""
ifconfig_rl0="inet 192.168.0.2 netmask 255.255.255.0"
ifconfig_rl1="inet 10.0.0.1 netmask 255.255.255.0"
defaultrouter="192.168.0.1"

Am I missing something?  I followed the instructions in the handbook, (and
have set up similar networks that worked fine) but can not seem to get this
one to go.  If anyone can shed some light on this situation, please let me
know.

Thanks in advance,

Justin P. Michel
- J Continuum




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?021601c39343$572f85d0$0e0ea8c0>