mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
nat, portforwards should not make up a new destination information when a configured dhcp interface does not currently have an address.
fixes: https://forum.pfsense.org/index.php?topic=127585.msg733528#msg733528
(cherry picked from commit 5a8a8bbea3)
This commit is contained in:
parent
021332fa29
commit
04cd314bce
@ -2280,10 +2280,6 @@ function filter_nat_rules_generate() {
|
||||
$srcaddr = trim($srcaddr);
|
||||
$dstaddr = trim($dstaddr);
|
||||
|
||||
if (!$dstaddr) {
|
||||
$dstaddr = $FilterIflist[$natif]['ip'];
|
||||
}
|
||||
|
||||
$dstaddr_port = explode(" ", $dstaddr);
|
||||
if (empty($dstaddr_port[0]) || strtolower(trim($dstaddr_port[0])) == "port") {
|
||||
continue; // Skip port forward if no destination address found
|
||||
|
||||
Loading…
Reference in New Issue
Block a user