mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-26 16:18:57 +01:00
Make the previous patch a bit cleaner
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
d85f6970e3
commit
6813409c31
@ -1468,15 +1468,13 @@ sub add_interface_jumps {
|
|||||||
} else {
|
} else {
|
||||||
add_ijump ( $filter_table->{FORWARD}, j => 'ACCEPT', imatch_source_dev( $interface) , imatch_dest_dev( $interface) ) unless $interfaceref->{nets} || ! $interfaceref->{options}{bridge};
|
add_ijump ( $filter_table->{FORWARD}, j => 'ACCEPT', imatch_source_dev( $interface) , imatch_dest_dev( $interface) ) unless $interfaceref->{nets} || ! $interfaceref->{options}{bridge};
|
||||||
|
|
||||||
add_ijump( $filter_table->{FORWARD} , j => $forwardref , imatch_source_dev( $interface ) ) unless $forward_jump_added{$interface} || ! use_forward_chain $interface, $forwardref;
|
add_ijump( $filter_table->{FORWARD} , j => $forwardref , imatch_source_dev( $interface ) ) unless $forward_jump_added{$interface}++ || ! use_forward_chain $interface, $forwardref;
|
||||||
add_ijump( $filter_table->{INPUT} , j => $inputref , imatch_source_dev( $interface ) ) unless $input_jump_added{$interface} || ! use_input_chain $interface, $inputref;
|
add_ijump( $filter_table->{INPUT} , j => $inputref , imatch_source_dev( $interface ) ) unless $input_jump_added{$interface} ++ || ! use_input_chain $interface, $inputref;
|
||||||
|
|
||||||
unless ( $output_jump_added{$interface} || ! use_output_chain $interface, $outputref ) {
|
unless ( $output_jump_added{$interface}++ || ! use_output_chain $interface, $outputref ) {
|
||||||
add_ijump $filter_table->{OUTPUT} , j => $outputref , imatch_dest_dev( $interface ) unless get_interface_option( $interface, 'port' );
|
add_ijump $filter_table->{OUTPUT} , j => $outputref , imatch_dest_dev( $interface ) unless get_interface_option( $interface, 'port' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$input_jump_added{$interface} = $output_jump_added{$interface} = $forward_jump_added{$interface} = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_loopback_traffic;
|
handle_loopback_traffic;
|
||||||
|
Loading…
Reference in New Issue
Block a user