diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-27 21:14:13 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-27 21:14:13 -0400 |
commit | 4e3cdd2e9f86f8ce57ad45bd7b6f72cbda70509b (patch) | |
tree | 2465d78a140ec642f157c5595bc80fd27312ffcd /etc | |
parent | 395a0413858c2301732e82d89f6a1b94ea0886f4 (diff) | |
download | pfsense-4e3cdd2e9f86f8ce57ad45bd7b6f72cbda70509b.zip pfsense-4e3cdd2e9f86f8ce57ad45bd7b6f72cbda70509b.tar.gz |
Revert "Fix no nat rules where ports 1024:65535 is added Resolves #120"
This reverts commit 395a0413858c2301732e82d89f6a1b94ea0886f4.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 4bcdd1c..43ecafc 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -553,15 +553,13 @@ 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 = ""; - } else { - $staticnatport_txt = ""; - } + $staticnatport_txt = ""; $if_friendly = convert_real_interface_to_friendly_descr($if); |