captiveportal.inc: (re)add table 42 for whitelist

whitelist in firewall does not work...
This commit is contained in:
Thomas NOËL 2014-09-18 12:21:43 +02:00
parent 9499ce395b
commit 888c4dddec
1 changed files with 8 additions and 0 deletions

View File

@ -586,6 +586,14 @@ EOD;
/* allowed ipfw rules to make allowed hostnames work */
$cprules .= captiveportal_allowedhostname_configure();
/* allowed ipfw rules for univnautes whitelist */
$cprules .= <<<EOD
# accept every traffic from table 42 = univnautes whitelist
add 65500 allow ip from any to table(42) in
add 65501 allow ip from table(42) to any out
table 42 flush
EOD;
/* load rules */
$cprules = "flush\n{$cprules}";