summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-09 16:37:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-09 16:37:51 +0000
commit2d0f3773396bd2a789107e723e888a539e685ec3 (patch)
tree2814d8f5897382cb03ce1558616aaf0cdaf140c2
parenta862b824469fd3cb9b562ab5eddde69f07ae6bc0 (diff)
downloadpfsense-2d0f3773396bd2a789107e723e888a539e685ec3.zip
pfsense-2d0f3773396bd2a789107e723e888a539e685ec3.tar.gz
Do not install rdr rule if $extaddr is blank
-rw-r--r--etc/inc/filter.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c8d2f90..f3a3e95 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -687,6 +687,9 @@ function filter_nat_rules_generate() {
$dontinstallrdr = true;
}
}
+
+ if($extaddr == "")
+ $dontinstallrdr = true;
if($dontinstallrdr == false) {
if ((!$extport[1]) || ($extport[0] == $extport[1])) {
OpenPOWER on IntegriCloud