This commit is contained in:
Jack L. Frost 2014-03-10 03:26:21 +04:00
parent 560dc05e2a
commit 707b5f5682

View File

@ -18,11 +18,11 @@ stop() {
ip6tables-save | sed -re 's/(:[A-Z]+\s+)[A-Z]+/\1ACCEPT/g' -e '/-.+/d' | ip6tables-restore
[[ -f '/proc/net/ip_tables_names' ]] && {
while read line; do iptables -t "$line" -X < /proc/net/ip_tables_names; done
while read line; do iptables -t "$line" -X; done < /proc/net/ip_tables_names
}
[[ -f '/proc/net/ip6_tables_names' ]] && {
while read line; do iptables -t "$line" -X < /proc/net/ip6_tables_names; done
while read line; do iptables -t "$line" -X; done < /proc/net/ip6_tables_names
}
}