diff options
author | Jan Wagner <mail@jwagner.eu> | 2016-03-06 10:55:03 +0100 |
---|---|---|
committer | Jan Wagner <mail@jwagner.eu> | 2016-03-06 10:55:03 +0100 |
commit | 58eaf5383a31138af369e2fbe29fdff8b4857306 (patch) | |
tree | 50065ae7e80e37d1ea303c36b46b4d000e98910a /files/iptables/flush-ip6tables.sh | |
parent | a03e217233d19052cc24f51e8ed4efcd78c6aafd (diff) | |
parent | c8a035bfc03fabf4384f4e207571d2c81e028b65 (diff) | |
download | rpi2-gen-image-58eaf5383a31138af369e2fbe29fdff8b4857306.tar.gz rpi2-gen-image-58eaf5383a31138af369e2fbe29fdff8b4857306.tar.bz2 rpi2-gen-image-58eaf5383a31138af369e2fbe29fdff8b4857306.zip |
Merge branch 'master' of https://github.com/fpytloun/rpi2-gen-image into fpytloun-master
Diffstat (limited to 'files/iptables/flush-ip6tables.sh')
-rw-r--r-- | files/iptables/flush-ip6tables.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/files/iptables/flush-ip6tables.sh b/files/iptables/flush-ip6tables.sh new file mode 100644 index 0000000..498e97f --- /dev/null +++ b/files/iptables/flush-ip6tables.sh @@ -0,0 +1,15 @@ +#!/bin/sh +ip6tables -F +ip6tables -X +ip6tables -Z + +for table in $(</proc/net/ip6_tables_names) +do + ip6tables -t \$table -F + ip6tables -t \$table -X + ip6tables -t \$table -Z +done + +ip6tables -P INPUT ACCEPT +ip6tables -P OUTPUT ACCEPT +ip6tables -P FORWARD ACCEPT |