fix nat port ranges

This commit is contained in:
Bill Marquette 2005-02-22 15:23:23 +00:00
parent 83590259f2
commit baa9ee83ac

View File

@ -824,12 +824,10 @@ function filter_nat_rules_generate() {
} else {
if($rule['protocol'] == "tcp/udp")
$natrules .=
"rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:*" .
"-> {$target}";
"rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:*";
else
$natrules .=
"rdr on $natif proto " . $rule['protocol']. " from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:*" .
"-> {$target}";
"rdr on $natif proto " . $rule['protocol']. " from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:*";
}
$natrules .= "\n";