mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix no nat rules where ports 1024:65535 is added Resolves #120
This commit is contained in:
parent
9694e102fa
commit
8763e56d20
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user