Main Menu

Search

LINUX: IPTABLES: How To Revert Back And Restore IPTABLES To Default on Linux? ("IP Filters")

Below are steps to revert back and restore iptables to default configuration on Linux hosts.

1. Set Accept All policy for all connections. For this run below commands.

# iptables -P INPUT ACCEPT
# iptables -P OUTPUT ACCEPT
# iptables -P FORWARD ACCEPT

2. Delete all the existing iptables rules using below command.

# iptables -F


Products to which Article Applies

All Linux Operating Systems


Additional References

https://linux.die.net/man/8/iptables

 

tarun boyella


No comments:

Post a Comment