flush iptables

Aug 10, 2004 2 Replies

How can I flush (or delete all) the iptables settings? Or just shutdown firewall? I would like to test the firewall with no "restrictions" at all.



I have tried with 'iptables --flush' but it did not seem to work.



The firewall is a dedicated, firewallserver running Fedora Core 1, using iptables.



Regards Jan


May I recommend:

formatting link
which is part of the IPTables tutorial by Oskar Andreasson:
formatting link

FW=/sbin/iptables echo -n "Shutting firewall: " # Flush firewall $FW -F ## Flush Built-in Rules $FW -F INPUT $FW -F OUTPUT $FW -F FORWARD # Delete custom chains $FW -X ### Default policies $FW -P INPUT ACCEPT $FW -P OUTPUT ACCEPT $FW -P FORWARD ACCEPT echo done

Bumma. :)

PD

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required