LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iptables-restore is not restoring? (http://www.linuxquestions.org/questions/linux-newbie-8/iptables-restore-is-not-restoring-718357/)

ApachePadowan 04-10-2009 09:51 PM

iptables-restore is not restoring?
 
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?

ApachePadowan 04-10-2009 10: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 07:10 PM.