summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-27 21:13:41 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-27 21:13:41 -0400
commit6734081ade8ff54df063303851126510f499b5b2 (patch)
treec29d2de8cb33349be7e24a89cdbc4de4994564d9 /etc
parent8763e56d20eec74f1c4caaea80ac1cfcb46bbe03 (diff)
downloadpfsense-6734081ade8ff54df063303851126510f499b5b2.zip
pfsense-6734081ade8ff54df063303851126510f499b5b2.tar.gz
Revert "Fix no nat rules where ports 1024:65535 is added Resolves #120"
This reverts commit 8763e56d20eec74f1c4caaea80ac1cfcb46bbe03.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc10
1 files changed, 3 insertions, 7 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 7cc31a0..f7d10ae 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -801,18 +801,14 @@ function filter_nat_rules_generate_if($if, $src = "any", $srcport = "", $dst = "
$nat = "nat";
$target = "-> {$tgt}";
}
-
/* 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_friendly_interface_to_friendly_descr($if);
/* Put all the pieces together */
if ($if_friendly)
OpenPOWER on IntegriCloud