[ale] Iptables

Jeff Lightner jlightner at water.com
Tue Oct 17 15:21:44 EDT 2006


You could delete the rules from /etc/sysconfig/iptables but it is not
recommended.  This is the file where the rules are stored.

The correct way to do it would be to remove the rules then run the save
again to recreate iptables.


Deleting a rule the proper way just requires reversing what you did to
add it:

e.g. If you added with:
iptables -A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 1053
-j ACCEPT

Then just delete it with:
iptables -D RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport
         1053 -j ACCEPT

After you've done all the deletes then do the save and restart.

As a shortcut you could try saving /etc/sysconfig/iptables to
iptables.orig then manually modify iptables then do service iptables
restart which should make it reread the iptables file.   Again however
that's not recommended per a note in the file itself.

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
To: ale at ale.org
Terry Bailey
Sent: Tuesday, October 17, 2006 3:02 PM
To: ale at ale.org
Subject: [ale] Iptables



In Fedora, after

service iptables save

is done, what is the best way to delete what you have saved?

Thanks,

Terry Bailey


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale



More information about the Ale mailing list