From 1da7f52ed5e6e6bdfe308cdec3cd06bcb63d12a1 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 29 Dec 2011 18:49:47 -0800 Subject: [PATCH] Copy output interface options rather than jump Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 7c6b80508..89c077cef 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -5859,7 +5859,8 @@ sub add_interface_options( $ ) { for my $interface ( @interfaces ) { if ( ( $chain1ref = $filter_table->{output_option_chain $interface} ) && @{$chain1ref->{rules}} ) { - add_ijump ( $chainref , j => $chain1ref->{name}, @interfaces > 1 ? imatch_dest_dev( $interface ) : () ); + copy_rules( $chain1ref, $chainref, 1 ); + $chainref->{referenced} = 1; } } }