LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2009, 09:51 PM   #1
ApachePadowan
LQ Newbie
 
Registered: Apr 2005
Location: FL
Distribution: Fedora Core 10
Posts: 25

Rep: Reputation: 15
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?
 
Old 04-10-2009, 10:04 PM   #2
ApachePadowan
LQ Newbie
 
Registered: Apr 2005
Location: FL
Distribution: Fedora Core 10
Posts: 25

Original Poster
Rep: Reputation: 15
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...
 
  


Reply

Tags
fedora, iptables, restore



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help restoring iptables rules made by firestarter Thaidog Linux - Software 2 03-05-2009 03:48 AM
iptables-save, iptables-restore, how to set up them in some script sarajevo Linux - Networking 1 03-24-2008 11:39 PM
Need to restore iptables config Jorophose Linux - Security 5 10-15-2007 01:22 AM
IPTables will not restore rules dieduster Linux - Security 2 12-22-2005 07:17 AM
restoring iptables-restore Zaius Linux - Newbie 7 01-22-2004 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration