Skip to content

Instantly share code, notes, and snippets.

@dan82840
Created April 11, 2018 03:20
Show Gist options
  • Save dan82840/9eda76dbb8a8c802e6e65f41862df27d to your computer and use it in GitHub Desktop.
Save dan82840/9eda76dbb8a8c802e6e65f41862df27d to your computer and use it in GitHub Desktop.
#!/bin/sh
#
for i in $(ip6tables -S | awk '{print $2}' | uniq); do
ip6tables -F $i
ip6tables -Z $i
ip6tables -X $i
done
ip6tables -F INPUT
ip6tables -F FORWARD
ip6tables -F OUTPUT
ip6tables -F
ip6tables -P INPUT ACCEPT
ip6tables -P FORWARD ACCEPT
ip6tables -P OUTPUT ACCEP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment