Correct rule generation when an interface is specified as the destination of a PREROUTING rule.

Signed-off-by: Tom Eastep <teastep@shorewall.net>

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9831 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2009-04-08 03:37:15 +00:00
parent 28b6fd8033
commit 7d2b410904

View File

@ -2488,7 +2488,7 @@ sub expand_rule( $$$$$$$$$$$ )
# Dest interface -- must use routing table # Dest interface -- must use routing table
# #
fatal_error "Bridge port ($diface) not allowed" if port_to_bridge( $diface ); fatal_error "Bridge port ($diface) not allowed" if port_to_bridge( $diface );
push_command( $chainref , 'for dest in ' . interface_nets( $diface) . '; do', 'done' ); push_command( $chainref , 'for dest in ' . get_interface_nets( $diface) . '; do', 'done' );
$rule .= '-d $dest '; $rule .= '-d $dest ';
} else { } else {