diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-09 16:37:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-09 16:37:51 +0000 |
commit | 2d0f3773396bd2a789107e723e888a539e685ec3 (patch) | |
tree | 2814d8f5897382cb03ce1558616aaf0cdaf140c2 /etc | |
parent | a862b824469fd3cb9b562ab5eddde69f07ae6bc0 (diff) | |
download | pfsense-2d0f3773396bd2a789107e723e888a539e685ec3.zip pfsense-2d0f3773396bd2a789107e723e888a539e685ec3.tar.gz |
Do not install rdr rule if $extaddr is blank
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 3 |
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])) { |