Friday, March 5, 2010

Iptables Start at Boot

To start Iptables firewall automatically when you reboot your server (Gentoo in my case) type in this command line:

iptables-save > /etc/iptables.rules
/etc/init.d/iptables save
rc-update add iptables default

for APF

rc-update add apf default