mirror of https://github.com/mikaku/Monitorix.git
small fix to flush out correctly all iptables rules
This commit is contained in:
parent
17dccb9ba7
commit
c499c43650
|
@ -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 |")) {
|
||||||
|
|
Loading…
Reference in New Issue