From c03b030025ec5176aaa599a183cc63d67f9e8d6b Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 8 Jun 2007 16:15:21 +0000 Subject: [PATCH] Fix bad exclusion bug git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6489 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Rules.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall-perl/Shorewall/Rules.pm b/Shorewall-perl/Shorewall/Rules.pm index 299b291a6..8cacee414 100644 --- a/Shorewall-perl/Shorewall/Rules.pm +++ b/Shorewall-perl/Shorewall/Rules.pm @@ -1363,7 +1363,7 @@ sub generate_matrix() { for my $host ( @{$exclusionsref} ) { my ( $interface, $net ) = split /:/, $host; - insert_rule $chainref , $num++, join( '', match_source_dev $interface , match_source_net( $net ), '-j RETURN' ); + insert_rule $chainref , $num++, join( '', match_dest_dev $interface , match_dest_net( $net ), '-j RETURN' ); } } @@ -1375,7 +1375,7 @@ sub generate_matrix() { for my $host ( @{$exclusionsref} ) { my ( $interface, $net ) = split /:/, $host; - add_rule $chainref , join( '', match_source_dev $interface, match_source_net( $net ), '-j RETURN' ); + add_rule $chainref , join( '', match_dest_dev $interface, match_dest_net( $net ), '-j RETURN' ); } }