The FreeBSD Diary
Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link.
getting natd to run again 29 August 1998
See also, natd.
At this point, I had both network cards running. From the FreeBSD machine I could ping the outside world via ed0 and my subnet via ed1. The next step was to ping the outside world from elsewhere on my subnet.
I've modified my system to start DHCP and natd automatically when the system starts up. I have changed the /etc/rc.local file to contain (NOTE: /etc/rc.local is deprecated; use /usr/local/etc/rc.d/ instead; see Starting stuff at boot time and Installing IP Filter 3.3.3 for an example):
dhclient ed0 ifconfig ed1 inet 10.0.0.10 255.255.255.0 natd -f /etc/natd.conf
But my filtering rules need some adjustment. For details on that, see Filtering.