How do I clear all iptables rules?

0 Comments

The following should clear all iptables rules and make your system behave like there’s no iptables/firewall in place:


iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t mangle -F
iptables -t raw -F
iptables -F
iptables -X

--
42 views
Was this answer helpful ? Yes (2) / No (0)

Leave a Reply

reduction