Be sure to pass the destination 1:1 mask.

This commit is contained in:
Scott Ullrich 2005-02-13 05:32:15 +00:00
parent 1c19790adb
commit c4e2f770e5

View File

@ -682,7 +682,7 @@ function is_one_to_one_or_server_nat_rule($target) {
if($onetoone['ipaddr'] == $target)
return TRUE;
}
return FALSE;
}
@ -717,7 +717,7 @@ function filter_nat_rules_generate() {
else
$natif = $config['interfaces'][$natent['interface']]['if'];
$natrules .= "binat on {$natif} from {$natent['internal']}/{$sn} to any -> {$natent['external']}\n";
$natrules .= "binat on {$natif} from {$natent['internal']}/{$sn} to any -> {$natent['external']}/{$sn}\n";
}
}