diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-27 20:40:24 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-27 20:40:24 -0400 |
commit | 395a0413858c2301732e82d89f6a1b94ea0886f4 (patch) | |
tree | 02a26d251a5c77d9e158ac3f55ef508266cae469 /etc/inc | |
parent | 4459cebaef49d6b4c603b2e34d2cb1f179ee6a8e (diff) | |
download | pfsense-395a0413858c2301732e82d89f6a1b94ea0886f4.zip pfsense-395a0413858c2301732e82d89f6a1b94ea0886f4.tar.gz |
Fix no nat rules where ports 1024:65535 is added Resolves #120
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 43ecafc..4bcdd1c 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -553,13 +553,15 @@ function filter_nat_rules_generate_if($if, $src = "any", $srcport = "", $dst = " } /* outgoing static-port option, hamachi, Grandstream, VOIP, etc */ - if($staticnatport) + if($staticnatport) { $staticnatport_txt = " static-port"; - else if(!$natport) $staticnatport_txt = " port 1024:65535"; // set source port range else - $staticnatport_txt = ""; + $staticnatport_txt = ""; + } else { + $staticnatport_txt = ""; + } $if_friendly = convert_real_interface_to_friendly_descr($if); |