fastfix
This commit is contained in:
parent
560dc05e2a
commit
707b5f5682
|
@ -18,11 +18,11 @@ stop() {
|
||||||
ip6tables-save | sed -re 's/(:[A-Z]+\s+)[A-Z]+/\1ACCEPT/g' -e '/-.+/d' | ip6tables-restore
|
ip6tables-save | sed -re 's/(:[A-Z]+\s+)[A-Z]+/\1ACCEPT/g' -e '/-.+/d' | ip6tables-restore
|
||||||
|
|
||||||
[[ -f '/proc/net/ip_tables_names' ]] && {
|
[[ -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' ]] && {
|
[[ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user