mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correctly setup nat interface mappings when AON is disabled and a gateway is present.
This commit is contained in:
parent
ea951e6f27
commit
5f17fb7ec5
@ -702,7 +702,7 @@ function filter_nat_rules_generate() {
|
||||
generate_optcfg_array($optints);
|
||||
foreach($optints as $oc) {
|
||||
$opt_interface = $oc['if'];
|
||||
if($oc['gateway'] == "" or $oc['if'] <> "dhcp")
|
||||
if($oc['gateway'] <> "" or $oc['if'] <> "dhcp")
|
||||
$natrules .= filter_nat_rules_generate_if($opt_interface,
|
||||
"{$optsa}/{$optcfg['subnet']}", null, "", null, null, null, isset($optcfg['nonat']));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user