Skip to content

Instantly share code, notes, and snippets.

Created November 8, 2017 08:56
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 anonymous/cc01da7ccd09e292fb44e468e656163e to your computer and use it in GitHub Desktop.
Save anonymous/cc01da7ccd09e292fb44e468e656163e to your computer and use it in GitHub Desktop.
# Clean up iptables persistent
> /etc/iptables/rules.v4
> /etc/iptables/rules.v6
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