Created
October 9, 2018 07:03
-
-
Save oazabir/278b8e8064a69c9884f3fcc34e2412be to your computer and use it in GitHub Desktop.
Clear all iptables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -t nat -F | |
iptables -t mangle -F | |
iptables -F | |
iptables -X |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful for clearing iptables rules when docker messes it up