diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-27 20:40:45 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-27 20:40:45 -0400 |
commit | 8763e56d20eec74f1c4caaea80ac1cfcb46bbe03 (patch) | |
tree | ae99e46902fc08a86737cc258bc563189b2bf9b9 /etc | |
parent | 9694e102fa70572cb070465858274e12a3ab7c4f (diff) | |
download | pfsense-8763e56d20eec74f1c4caaea80ac1cfcb46bbe03.zip pfsense-8763e56d20eec74f1c4caaea80ac1cfcb46bbe03.tar.gz |
Fix no nat rules where ports 1024:65535 is added Resolves #120
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index f7d10ae..7cc31a0 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -801,14 +801,18 @@ 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 = ""; + $staticnatport_txt = ""; + } else { + $staticnatport_txt = ""; + } + $if_friendly = convert_friendly_interface_to_friendly_descr($if); /* Put all the pieces together */ if ($if_friendly) |