mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Sometimes when the user enters the hostname of the HTTPs captive portal server it resolves the IP address to $LANIP. Allow access to $LANIP in addition to the $CPIP so that we can speedup captive portal by 10000* in these cases.
This commit is contained in:
parent
ac8d9e8973
commit
80e60d7cd1
@ -356,16 +356,26 @@ add 1204 set 1 pass icmp from any to $cpip in icmptype 0
|
||||
add 1300 set 1 pass udp from any to $cpip 53 in
|
||||
add 1301 set 1 pass udp from $cpip 53 to any out
|
||||
|
||||
# allow access to our DNS forwarder if it incorrectly resolves the hostname to $lanip
|
||||
add 1300 set 1 pass udp from any to $lanip 53 in
|
||||
add 1301 set 1 pass udp from $lanip 53 to any out
|
||||
|
||||
# allow access to our web server
|
||||
add 1302 set 1 pass tcp from any to $cpip 8000 in
|
||||
add 1303 set 1 pass tcp from $cpip 8000 to any out
|
||||
|
||||
# allow access to lan web server incase the dns name resolves incorrectly to $lanip
|
||||
add 1302 set 1 pass tcp from any to $lanip 8000 in
|
||||
add 1303 set 1 pass tcp from $lanip 8000 to any out
|
||||
|
||||
EOD;
|
||||
|
||||
if (isset($config['captiveportal']['httpslogin'])) {
|
||||
$cprules .= <<<EOD
|
||||
add 1304 set 1 pass tcp from any to $cpip 8001 in
|
||||
add 1305 set 1 pass tcp from $cpip 8001 to any out
|
||||
add 1304 set 1 pass tcp from any to $lanip 8001 in
|
||||
add 1305 set 1 pass tcp from $lanip 8001 to any out
|
||||
|
||||
EOD;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user