Linux Tutorials

by

1

Delete the rules in iptables – Clear/Remove iptables rules.

Delete the rules in iptables – Clear/Remove iptables rules.

1
Linux Tutorials

Before you do general cleaning in Make sure you know how to configure it according to your needs.

Clear /Debian iptables rules .

centos

The following command lines in the order below:

1. iptables -P INPUT ACCEPT
2. iptables -P FORWARD ACCEPT
3. iptables -P OUTPUT ACCEPT
4. iptables -F
5. iptables -X
6. iptables -t nat -F
7. iptables -t nat -X
8. iptables -t mangle -F
9. iptables -t mangle -X

iptables –help :

-P (policy) = chain target

–flush -F [chain] Delete all rules in chain or all chains

-table -t table table to manipulate (default: `filter’)

-X [chain] Delete a user-defined chain

Delete the rules in iptables – Clear/Remove iptables rules.

You may also be interested in...

One thought on “Delete the rules in iptables – Clear/Remove iptables rules.

Leave a Reply

Your email address will not be published. Required fields are marked *