Skip to content

Commit c190902

Browse files
committed
fix restart/reload firewall in debian10
1 parent d045842 commit c190902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/firewall/files/00-base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# clear all tables, not only filter
2-
for table in $(grep -oP '(?<=^iptable_)\S*' /proc/modules); do
2+
for table in $(iptables-save | grep '^' | cut -d'' -f2); do
33
ipt -t $table -F
44
ipt -t $table -X
55
done

0 commit comments

Comments
 (0)