Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@oazabir
Created October 9, 2018 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oazabir/278b8e8064a69c9884f3fcc34e2412be to your computer and use it in GitHub Desktop.
Save oazabir/278b8e8064a69c9884f3fcc34e2412be to your computer and use it in GitHub Desktop.
Clear all iptables
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X
@oazabir
Copy link
Author

oazabir commented Oct 9, 2018

Useful for clearing iptables rules when docker messes it up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment