diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index a187a7c62..4d9c013ca 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -7746,7 +7746,7 @@ sub expand_rule( $$$$$$$$$$$$;$ ) # No logging or user-specified logging -- add the target rule with matches to the rule chain # if ( $targetref ) { - add_expanded_jump( $chainref, $targetref , 0, $matches ); + add_expanded_jump( $chainref, $targetref , 0, $prerule . $matches ); } else { add_rule( $chainref, $prerule . $matches . $jump , 1 ); }