FreeBSD 6.3 - NAT with IPFW =========================== Public domain ******************************************************************************** ### Kernel configuration # vi /usr/src/sys/i386/conf/GENERIC options IPFIREWALL options IPFIREWALL_DEFAULT_TO_ACCEPT options IPDIVERT # cd /usr/src # make buildkernel KERNCONF=GENERIC # make installkernel KERNCONF=GENERIC # reboot ******************************************************************************** ### Startup configuration # vi /etc/rc.conf firewall_enable="YES" firewall_type="open" natd_enable="YES" natd_interface="dc0" natd_flags="-dynamic -m" # reboot ( ipfw add divert natd all from any to any via dc0 ) ******************************************************************************** _BY: Pejman Moghadam_ _TAG: ipfw, nat_ _DATE: 2008-06-12 22:52:41_