From 1f1958ba38f1ff3be1fbcbdced072e303f686694 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Sat, 5 May 2007 20:23:27 +0000 Subject: Do not create nat on rules for opt interfaces with a gateway. --- etc/inc/filter.inc | 4 ++-- 1 file 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 +?> -- cgit v1.1