flush iptables

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

Reply to
jma
Loading thread data ...

May I recommend:

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

Reply to
AlV

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

Reply to
Paul remove-the-nospam Day

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.