Skip to content

Commit b514992

Browse files
committed
Firewall/ outbound nat, alias target defunct. for #2194
1 parent 20ad5b7 commit b514992

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/opnsense/mvc/app/library/OPNsense/Firewall/SNatRule.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ private function parseNatRules()
9292
}
9393
} elseif ($rule['target'] == "other-subnet") {
9494
$rule['target'] = $rule['targetip'] . '/' . $rule['targetip_subnet'];
95+
} elseif (!empty($rule['target']) && Util::isAlias($rule['target'])) {
96+
$rule['target'] = "$".$rule['target'];
9597
}
9698
foreach (array("sourceport", "dstport", "natport") as $fieldname) {
9799
if (!empty($rule[$fieldname]) && Util::isAlias($rule[$fieldname])) {

0 commit comments

Comments
 (0)