mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 08:03:11 +01:00
Make use of interface chains deterministic
This commit is contained in:
parent
167d86746c
commit
738a6de11b
@ -1710,7 +1710,7 @@ sub generate_matrix() {
|
||||
my $sourcechainref;
|
||||
my $interfacematch = '';
|
||||
|
||||
if ( use_forward_chain( $interface ) ) {
|
||||
if ( use_forward_chain( $interface ) || $forward_jump_added{$interface} ) {
|
||||
$sourcechainref = $filter_table->{forward_chain $interface};
|
||||
add_jump $filter_table->{FORWARD} , $sourcechainref, 0 , match_source_dev( $interface ) unless $forward_jump_added{$interface}++;
|
||||
} else {
|
||||
@ -1822,7 +1822,7 @@ sub generate_matrix() {
|
||||
my $outputref;
|
||||
my $interfacematch = '';
|
||||
|
||||
if ( use_output_chain $interface ) {
|
||||
if ( use_output_chain( $interface ) || $output_jump_added{$interface} ) {
|
||||
$outputref = $filter_table->{output_chain $interface};
|
||||
add_jump $filter_table->{OUTPUT}, $outputref, 0, match_dest_dev( $interface ) unless $output_jump_added{$interface}++;
|
||||
} else {
|
||||
@ -1871,7 +1871,7 @@ sub generate_matrix() {
|
||||
my $inputchainref;
|
||||
my $interfacematch = '';
|
||||
|
||||
if ( use_input_chain $interface ) {
|
||||
if ( use_input_chain( $interface ) || $input_jump_added{$interface} ) {
|
||||
$inputchainref = $filter_table->{input_chain $interface};
|
||||
add_jump $filter_table->{INPUT}, $inputchainref, 0, match_source_dev($interface) unless $input_jump_added{$interface}++;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user