diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 846ab4557..c2140fda4 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -1455,6 +1455,7 @@ sub replace_references( $$ ) { for ( @{$fromref->{rules}} ) { $rule++; if ( defined && s/ -([jg]) $chainref->{name}(\b)/ -$1 ${target}$2/ ) { + add_reference ( $fromref, $chain_table{$table}{$target} ); $count++; trace( $fromref, 'R', $rule, $_ ) if $debug; }