You need a kernel which has been compiled using these options:
options IPFIREWALL
options IPDIVERT
If you've already built such a kernel, here's how to get it intalled again:
- cd ../../compile/ONEDISK2NICS/
- make install
- shutdown -r now
Remeber to ensure your machine acts as a gateway and a firewall by including the
following lines in /etc/rc.conf:
gateway_enable=YES
firewall_enable=YES
I also have the following in /etc/rc.local (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):
echo " natd" && natd -f /etc/natd.conf
where /etc/natd.conf contains my natd options.
That should be enough to get your old firewall rules in and running. For
information on rules, see Firewall rules. |