From 7aff41fe777107dd5dd8ae231296f6beac2cf441 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 5 Mar 2013 19:06:18 +0000 Subject: Give the rules their own number and swap table numbers to correct statistics gathering. --- etc/inc/captiveportal.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index f876a5a..38202e9 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -527,9 +527,11 @@ EOD; $rulenum++; /* Allowed ips */ $cprules .= "add {$rulenum} pipe tablearg ip from table(3) to any in\n"; - $cprules .= "add {$rulenum} pipe tablearg ip from any to table(3) in\n"; $rulenum++; - $cprules .= "add {$rulenum} pipe tablearg ip from table(4) to any out\n"; + $cprules .= "add {$rulenum} pipe tablearg ip from any to table(4) in\n"; + $rulenum++; + $cprules .= "add {$rulenum} pipe tablearg ip from table(3) to any out\n"; + $rulenum++; $cprules .= "add {$rulenum} pipe tablearg ip from any to table(4) out\n"; $rulenum++; -- cgit v1.1