mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not install reflection rules for port forwards when the destination is invalid.
This commit is contained in:
parent
ed69be7ad9
commit
aba2f06d3a
@ -869,6 +869,8 @@ function filter_generate_reflection($rule, $nordr, $rdr_ifs, $srcaddr, $dstaddr_
|
||||
else
|
||||
$rflctintrange = "";
|
||||
$dstaddr = $dstaddr[0];
|
||||
if(empty($dstaddr) || strtolower(trim($dstaddr)) == "port")
|
||||
return "";
|
||||
|
||||
if(isset($rule['destination']['any'])) {
|
||||
if(!$rule['interface'])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user