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:
PiBa-NL 2017-07-12 22:16:34 +02:00 committed by Renato Botelho
parent 021332fa29
commit 04cd314bce

View File

@ -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