Date: 07-09-00 03:00
Ok - here is rc.conf and natrules from a working server
I use ipfilter and ipnat instead of ipfirewall and natd but the theory is the same - just easier to implement
ifconfig_ed1 ="inet 203.x.x.7 netmask 255.255.255.0"
ifconfig_ed2 ="inet 192.168.0.1 netmask 255.255.255.0"
defaultrouter = "203.x.x.1
ed1 is my "outside" NIC (public)
ed2 is my "inside" NIC (private)
This defines the two NICs & the default gateway
gateway_enable - to allow the internal NIC to act as a gateway for your private LAN
map ed1 192.168.0.0/16 -> 203.x.x.1/32 portmap tcp/udp 10000:40000
map ed1 192.168.0.0/16 -> 203.x.x.1/32
to fire up ipnat = ipnat -f /etc/natrules
I feel this is much simple than using ipfirewall and natd - really only one file to configure = /etc/natrules
plenty of help within this site too ;-)