Then you can issue
iptables-save > rules
And whenever you want to activate the firewall type: iptables-restore < rules. You can also add the last line to /etc/rc.d/rc.local. You can also set up /etc/rc.firewall to apply the rules....

Then you can issue
iptables-save > rules
And whenever you want to activate the firewall type: iptables-restore < rules. You can also add the last line to /etc/rc.d/rc.local. You can also set up /etc/rc.firewall to apply the rules....

THATS PERFECT!!! I've been looking for how to do this/use scripts. Is there a tutorial on building and using scripts I could get somewhere?

08-19-2004

Goran

You could check at tldp or just google there are lot of tutorials out there. Aren't scripts great :) ? I recommend you getting a book as it is easier to read and is more comprehensive.