Hello,
I am running Fedora 10. I want to setup firewall rules using a text file. As a precaution, I want to setup a cron job to "shut down" by opening up all ports on the firewall in case I do something stupid. I have the ruleset saved in a file called fw_reset.
Code:
#iptables-restore < fw_reset
When I check the rules using iptables -L, I get the existing firewall. So I tried
Code:
#iptables-restore < fw_reset
#iptables-save
But then I got the chains for the installed ruleset that came with the distro.
I have followed this process before on earlier versions of Fedora with no problem... The only thing I can figure is that the iptables-restore program is not changing /etc/sysconfig/iptables like it's supposed to?