Deleting rules on chains

Status
Not open for further replies.

Adeyinka

Posts: 13   +0
Hi,

I would appreciate a response concerning this problem on my firewall machine

I found out that some rules are already set on chains
I flushed the chains, set my new rules and reboot the machine.

typing iptables -L brought out the rules and userdefined chains I had already deleted.
I have to cat /etc/sysconfig/iptables|iptable-restore before I can get my set rules.

If I type iptables -L
I will get my set rules, rebooting the m/c and typing
iptables -L
brings up the flushed rules again.
I just noticed that if I do not reboot, I have my rules. But if do I have the old rules
If i "cat /etc/sysconfig/iptables|iptable-restore
I have my new rules
However, if i type
iptables -L
without "cat /etc/sysconfig/iptables|iptable-restore
I will end up with the old rule
unless I firsts cat /etc/sysconfig/iptables|iptable-restore
I would not be getting my new rules

I feel this can bring up problem !

Do I need to do re installation?
or what are your sugg.

:cool: :grinthumb
 
You can flush the chains, and delete all rules by using

iptables -F

if you just wanna delete INPUT chain, use iptables -F INPUT
or

iptables -F FORWARD

etc..

That will get rid of all rules under that chain.
 
Status
Not open for further replies.
Back