Configuring NATdBy PerlstaThese instructions will help you configure NATd on FreeBSD 2.2.2-RELEASE to 3.0-SNAP with the firewall implemented.NATd will NOT work unless you have a properly configured firewall, so go that page first (this link). Note that it is almost suicidal to do this remotely, as one mistake can leave you unable to reach the PC.

1. Read my section on firewalls and install one. Become root on the machine.

2. Become root on the machine. 3. Formulate a config file (this link points to mine) . 4. Figure out the appropriate command line arguements, mine are as follows: (NATd is no longer a port, and is now distributed with FreeBSD) /usr/local/sbin/natd -m -f /usr/local/sbin/natd.conf -m - tries to keep ports consistant, and helps things like RPC work. -f - specifies the config file to use.

5. Put the command line into rc.local. 6. Set the line in /etc/rc.conf that states gateway_enable="NO"to gateway_enable="YES"7. Configure your internal machines to use the NATd machine as a gateway. 8. Reboot.