iptables - simple hint
I'd like to know how to load an iptables script.
I wrote my rules in a .sh file: I executed this file, and then I did /etc/inid.d/iptables load active and /etc/inid.d/iptables save active but I'm not sure the firewall is up.
iptables -L says my default policies is set to ACCEPT, but in my script is set to DROP.
How to load this script? How to save it?
Thank you very much.
P.S.: my system is a Debian Woody with a 2.6 kernel.
Just run the script. You may have to chmod it to 750 to make it executeable. Make sure you are root when you do this as only root can institute iptables rules. 8)