From 4e3cdd2e9f86f8ce57ad45bd7b6f72cbda70509b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 27 Oct 2009 21:14:13 -0400 Subject: Revert "Fix no nat rules where ports 1024:65535 is added Resolves #120" This reverts commit 395a0413858c2301732e82d89f6a1b94ea0886f4. --- etc/inc/filter.inc | 8 +++----- 1 file 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); -- cgit v1.1