-   Linux - Newbie (
-   -   iptables-restore is not restoring? (

ApachePadowan 04-10-2009 10:51 PM

iptables-restore is not restoring?

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.


#iptables-restore < fw_reset
When I check the rules using iptables -L, I get the existing firewall. So I tried


#iptables-restore < fw_reset

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?

ApachePadowan 04-10-2009 11:04 PM

hmm! I set SELinux to permissive and now iptables-restore works the way it used to. I suppose I will have to do this everytime I want to tinker around with the firewall...

If anybody else knows of a workaround, please, let me know...

All times are GMT -5. The time now is 10:44 PM.