summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-01-10 21:18:10 +0000
committerErmal Luçi <eri@pfsense.org>2010-01-10 21:18:10 +0000
commitacfcea9787ebbb66ee9632cfe4a33d3990e3e506 (patch)
treedc6426cee469abf1d6f1a0222e47ebe5e2cc12da /etc
parenta80f222375d4e1fc2334a7bf16cf794c4082b9dd (diff)
downloadpfsense-acfcea9787ebbb66ee9632cfe4a33d3990e3e506.zip
pfsense-acfcea9787ebbb66ee9632cfe4a33d3990e3e506.tar.gz
Ticket #283. Do not create Inbound(rdr) nat rules for disabled interfaces.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 2f61056..10ee1e8 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1102,6 +1102,10 @@ function filter_nat_rules_generate() {
$natif = "wan";
else
$natif = $rule['interface'];
+
+ if (!isset($FilterIflist[$natif]))
+ continue;
+
$extaddr = alias_expand($rule['external-address']);
if(!$extaddr)
$extaddr = $FilterIflist[$natif]['ip'];
OpenPOWER on IntegriCloud