mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-17 02:00:57 +01:00
Remove silly logic in expand_rule()
This commit is contained in:
parent
a150ed1a72
commit
9988cfb619
@ -2754,7 +2754,7 @@ sub expand_rule( $$$$$$$$$$;$ )
|
||||
add_rule( $echainref, $exceptionrule . $target, 1 ) unless $disposition eq 'LOG';
|
||||
} else {
|
||||
#
|
||||
# No exclusions -- save original chain
|
||||
# No exclusions
|
||||
#
|
||||
my $savechainref = $chainref;
|
||||
|
||||
@ -2766,11 +2766,6 @@ sub expand_rule( $$$$$$$$$$;$ )
|
||||
$source_match = match_source_net( $inet, $restriction ) if $capabilities{KLUDGEFREE};
|
||||
|
||||
for my $dnet ( mysplit $dnets ) {
|
||||
#
|
||||
# Restore original Chain
|
||||
#
|
||||
$chainref = $savechainref;
|
||||
|
||||
$source_match = match_source_net( $inet, $restriction ) unless $capabilities{KLUDGEFREE};
|
||||
my $dest_match = match_dest_net( $dnet );
|
||||
my $predicates = join( '', $rule, $source_match, $dest_match, $onet );
|
||||
@ -2791,7 +2786,7 @@ sub expand_rule( $$$$$$$$$$;$ )
|
||||
#
|
||||
log_rule_limit(
|
||||
$loglevel ,
|
||||
$chainref = $logchainref ,
|
||||
$logchainref ,
|
||||
$chain ,
|
||||
$disposition ,
|
||||
'',
|
||||
@ -2799,7 +2794,7 @@ sub expand_rule( $$$$$$$$$$;$ )
|
||||
'add',
|
||||
'' );
|
||||
|
||||
add_rule( $chainref, $exceptionrule . $target );
|
||||
add_rule( $logchainref, $exceptionrule . $target );
|
||||
} else {
|
||||
log_rule_limit(
|
||||
$loglevel ,
|
||||
|
@ -26,6 +26,8 @@ Changes in Shorewall 4.4.5
|
||||
|
||||
13) Fix handling of SOURCE and DEST vs macros.
|
||||
|
||||
14) Remove silly logic in expand_rule().
|
||||
|
||||
Changes in Shorewall 4.4.4
|
||||
|
||||
1) Change STARTUP_LOG and LOG_VERBOSITY in default shorewall6.conf.
|
||||
|
Loading…
Reference in New Issue
Block a user