mirror of
https://gitlab.com/shorewall/code.git
synced 2025-07-01 15:10:07 +02:00
Don't move rules from a chain with references
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@ -1026,6 +1026,10 @@ sub use_forward_chain($$) {
|
|||||||
|
|
||||||
return 1 if @{$chainref->{rules}} && ( $config{OPTIMIZE} & 4096 );
|
return 1 if @{$chainref->{rules}} && ( $config{OPTIMIZE} & 4096 );
|
||||||
#
|
#
|
||||||
|
# Use it if we already have jumps to it
|
||||||
|
#
|
||||||
|
return 1 if keys %{$chainref->{references}};
|
||||||
|
#
|
||||||
# We must use the interfaces's chain if the interface is associated with multiple zones
|
# We must use the interfaces's chain if the interface is associated with multiple zones
|
||||||
#
|
#
|
||||||
return 1 if ( keys %{interface_zones $interface} ) > 1;
|
return 1 if ( keys %{interface_zones $interface} ) > 1;
|
||||||
|
Reference in New Issue
Block a user