small fix to flush out correctly all iptables rules

This commit is contained in:
Jordi Sanfeliu 2014-06-26 12:25:23 +02:00
parent 17dccb9ba7
commit c499c43650
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ sub flush_accounting_rules {
} }
} }
foreach(@names) { foreach(@names) {
system("iptables -X $_"); system("iptables -t $table -X $_");
} }
} }
if(open(IN, "iptables -t $table -nxvL FORWARD --line-numbers |")) { if(open(IN, "iptables -t $table -nxvL FORWARD --line-numbers |")) {