From c499c43650942952442a785187bc3ac27eab45eb Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Thu, 26 Jun 2014 12:25:23 +0200 Subject: [PATCH] small fix to flush out correctly all iptables rules --- lib/Monitorix.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Monitorix.pm b/lib/Monitorix.pm index 1419220..0d09126 100644 --- a/lib/Monitorix.pm +++ b/lib/Monitorix.pm @@ -342,7 +342,7 @@ sub flush_accounting_rules { } } foreach(@names) { - system("iptables -X $_"); + system("iptables -t $table -X $_"); } } if(open(IN, "iptables -t $table -nxvL FORWARD --line-numbers |")) {