mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-07 16:24:01 +01:00
Use shorter names for dbl exclusion chains
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
91d5dbb7ba
commit
337a4bd6ec
@ -2443,17 +2443,17 @@ sub output_option_chain($) {
|
||||
#
|
||||
# Blacklist Source Exclusion Chain for an interface
|
||||
#
|
||||
sub nodbl_src_chain($$) {
|
||||
my ( $interface, $end ) = ( $_[0], $_[1] );
|
||||
( $config{USE_PHYSICAL_NAMES} ? chain_base( get_physical( $interface ) ) : get_logical( $interface ) ) . '_' . $end;
|
||||
sub nodbl_src_chain($) {
|
||||
my $interface = shift;
|
||||
( $config{USE_PHYSICAL_NAMES} ? chain_base( get_physical( $interface ) ) : get_logical( $interface ) ) . '_nosbl';
|
||||
}
|
||||
|
||||
#
|
||||
# Blacklist Destination Exclusion Chain for an interface
|
||||
#
|
||||
sub nodbl_dst_chain($$) {
|
||||
my ($interface, $end) = ( $_[0], $_[1] );
|
||||
( $config{USE_PHYSICAL_NAMES} ? chain_base( get_physical( $interface ) ) : get_logical( $interface ) ) . '_' . $end;
|
||||
sub nodbl_dst_chain($) {
|
||||
my $interface = shift;
|
||||
( $config{USE_PHYSICAL_NAMES} ? chain_base( get_physical( $interface ) ) : get_logical( $interface ) ) . '_nodbl';
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -966,7 +966,7 @@ sub add_common_rules ( $ ) {
|
||||
#
|
||||
# We need to create an intermediate chain
|
||||
#
|
||||
$chainref = new_standard_chain( $src_target = nodbl_src_chain( $interface , $dbl_src_target ));
|
||||
$chainref = new_standard_chain( $src_target = nodbl_src_chain( $interface ));
|
||||
|
||||
for (@nodbl) {
|
||||
add_ijump( $chainref, j => 'RETURN', s => $_ );
|
||||
@ -975,7 +975,7 @@ sub add_common_rules ( $ ) {
|
||||
add_ijump( $chainref, j => $dbl_src_target );
|
||||
|
||||
if ( $dbl_src_target ne $dbl_dst_target ) {
|
||||
$chainref = new_standard_chain( $dst_target = nodbl_dst_chain( $interface , $dbl_dst_target ));
|
||||
$chainref = new_standard_chain( $dst_target = nodbl_dst_chain( $interface ));
|
||||
|
||||
for ( @nodbl ){
|
||||
add_ijump( $chainref, j => 'RETURN', -d => $_ );
|
||||
|
Loading…
Reference in New Issue
Block a user