Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2003 19:27:44 -0700
From:      Michelle <tristan11@mindspring.com>
To:        <freebsd-questions@freebsd.org>
Subject:   nat and ipfw
Message-ID:  <A65A044A-05C9-11D8-B73B-000393843210@mindspring.com>
In-Reply-To: <028401c399ce$3a82a8e0$0201a8c0@dredster>

next in thread | previous in thread | raw e-mail | index | archive | help
i have a freebsd server running 4.6.2 with 2 nic cards installed one 
for our lan (fxp0) that provides connection to the outside world via 
dsl and the other for an internal subnet (xl0).  i have both natd and 
ipfw configured and running.  when on the subnet, i can not connect to 
the outside.  i tried flushing the firewall rules and adding only:

ipfw add 100 divert natd all from any to any via fxp0
ipfw add 200 allow all from any to any

i am then able to connect from a client on the subnet to an outside ip 
address.

then i tried flushing the rules again and adding:

ipfw add 100 divert natd all from any to any via fxp0
ipfw add 200 allow all from 192.168.53.200 to any
ipfw add 300 allow all from any to 192.168.53.200

i don't understand why the above rules would stop the client on the 
subnet from making a connection to the outside.  is there another rule 
i need to add?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A65A044A-05C9-11D8-B73B-000393843210>