captive portal: exclude portal table in destination (https://github.com/opnsense/core/issues/8564)

This commit is contained in:
Stephan de Wit 2025-04-22 15:07:13 +02:00
parent 7beec43db9
commit 25e5341dd4

View File

@ -120,7 +120,8 @@ function captiveportal_firewall($fw)
'protocol' => 'tcp',
'from' => "<__captiveportal_zone_{$zoneid}>",
'from_not' => true,
'to' => 'any',
'to' => "<__captiveportal_zone_{$zoneid}>",
'to_not' => true,
'to_port' => $to_port,
'target' => '127.0.0.1',
'localport' => $rdr_port,
@ -158,7 +159,8 @@ function captiveportal_firewall($fw)
'direction' => 'in',
'from' => "<__captiveportal_zone_{$zoneid}>",
'from_not' => true,
'to' => 'any',
'to' => "<__captiveportal_zone_{$zoneid}>",
'to_not' => true,
'descr' => "Default Captive Portal block rule (zone {$zoneid})",
'log' => !isset($config['syslog']['nologdefaultblock']),
'#ref' => "ui/captiveportal#edit={$uuid}",