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
This commit is contained in:
PiBa-NL 2017-07-12 22:16:34 +02:00
parent 2504e3f1bc
commit 5a8a8bbea3

View File

@ -2246,10 +2246,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