Fix OUTPUT DNAT rule generated by nat entry

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6346 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-14 19:11:26 +00:00
parent d80ebb0661
commit 0812b938ff

View File

@ -349,7 +349,7 @@ sub do_one_nat( $$$$$ )
add_nat_rule output_chain( $interface ) , "-s $internal $policyout -j SNAT --to-source $external";
}
add_nat_rule 'OUTPUT' , "-d $external$policyout -j DNAT --to-destination $internal " if $localnat;
add_nat_rule 'OUTPUT' , "-d $external $policyout -j DNAT --to-destination $internal " if $localnat;
if ( $add_ip_aliases ) {
unless ( $addresses_to_add{$external} ) {