diff options
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 9fa9ab4..e56053f 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -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 */ @@ -3270,4 +3270,4 @@ function return_vpn_subnet($adr) { } -?>
\ No newline at end of file +?> |