@@ -2045,8 +2046,7 @@ function filter_nat_rules_generate(&$FilterIflist)
if($srcaddr<>""&&$dstaddr<>""&&$natif){
$natrules.="{$nordr}rdr {$rdrpass}on {$natif} proto {$protocol} from {$srcaddr} to {$dstaddr}".($nordr==""?" -> {$target}{$localport}":"");
$natrules.="{$nordr}rdr {$rdrpass}on {$natif}{$address_family} proto {$protocol} from {$srcaddr} to {$dstaddr}".($nordr==""?" -> {$target}{$localport}":"");
/* Does this rule redirect back to a internal host? */
@@ -2072,7 +2072,7 @@ function filter_nat_rules_generate(&$FilterIflist)
$rdr_if_list="{ {$rdr_if_list} }";
}
$natrules.="\n# Reflection redirect\n";
$natrules.="{$nordr}rdr {$rdrpass}on {$rdr_if_list} proto {$protocol} from {$srcaddr} to {$dstaddr_reflect}".($nordr==""?" -> {$target}{$localport}":"");
$natrules.="{$nordr}rdr {$rdrpass}on {$rdr_if_list}{$address_family}proto {$protocol} from {$srcaddr} to {$dstaddr_reflect}".($nordr==""?" -> {$target}{$localport}":"");