mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not create nat on rules for opt interfaces with a gateway.
This commit is contained in:
parent
4bc3ea9362
commit
d12e0997b0
@ -716,7 +716,7 @@ function filter_nat_rules_generate() {
|
||||
update_filter_reload_status("Creating outbound rules (opt{$i})");
|
||||
$optcfg = $config['interfaces']['opt' . $i];
|
||||
|
||||
if (isset($optcfg['enable']) && !$optcfg['bridge']) {
|
||||
if ((isset ($optcfg['enable'])) && (!$optcfg['bridge']) && (interface_has_gateway("$opt_interface"))) {
|
||||
$optsa = gen_subnet($optcfg['ipaddr'], $optcfg['subnet']);
|
||||
|
||||
/* create outbound nat entries for primary wan */
|
||||
@ -3272,4 +3272,4 @@ function return_vpn_subnet($adr) {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user