summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-05-05 20:23:27 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-05-05 20:23:27 +0000
commit1f1958ba38f1ff3be1fbcbdced072e303f686694 (patch)
tree1f2d9e5f2d69c1007cf839066f7923d56c6d6b35
parent927890daa4137b87be9e3474fc4340b870995c1c (diff)
downloadpfsense-1f1958ba38f1ff3be1fbcbdced072e303f686694.zip
pfsense-1f1958ba38f1ff3be1fbcbdced072e303f686694.tar.gz
Do not create nat on rules for opt interfaces with a gateway.
-rw-r--r--etc/inc/filter.inc4
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
+?>
OpenPOWER on IntegriCloud