From 5b0e0182c7fa2eb756a574fc7cca4dd0ea1de06a Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 27 Feb 2013 11:26:47 -0300 Subject: [PATCH] Consider CP allowed IPs for both directions. It will help ticket #2780 --- etc/inc/captiveportal.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 386a4ce77e..f9eb2d2bc3 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -527,7 +527,9 @@ 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) out\n"; $rulenum++;