Browse Source

Add purge/delete rules for raw on flush

tags/2.1
Brielle Bruns 1 year ago
parent
commit
1bfe6ded80
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      lib/iptables.inc

+ 2
- 0
lib/iptables.inc View File

@@ -42,6 +42,8 @@ function iptables_rules_flush {
${VER_IPTABLES} -t nat -X &>/dev/null
${VER_IPTABLES} -t mangle -F &>/dev/null
${VER_IPTABLES} -t mangle -X &>/dev/null
${VER_IPTABLES} -t raw -F &>/dev/null
${VER_IPTABLES} -t raw -X &>/dev/null
for i in `cat $TABLE_NAMES`; do
${VER_IPTABLES} -F -t $i &>/dev/null
done


Loading…
Cancel
Save