Created
April 11, 2018 03:20
-
-
Save dan82840/9eda76dbb8a8c802e6e65f41862df27d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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