forked from extern/shorewall_code
Enable OPT 16 in check -r; Suppress duplicate rules
This commit is contained in:
parent
90e03e1833
commit
613e41c25a
@ -2945,6 +2945,8 @@ sub combine_dports {
|
||||
last RULE unless $key eq 'multiport' && $multi_sports eq get_multi_sports( $ruleref );
|
||||
}
|
||||
|
||||
next RULE if $ports1 eq $ports2;
|
||||
|
||||
last if ( $ports += port_count( $ports2 ) ) > 15;
|
||||
|
||||
if ( $comment2 ) {
|
||||
|
@ -868,7 +868,7 @@ sub compiler {
|
||||
#
|
||||
generate_matrix;
|
||||
|
||||
if ( $config{OPTIMIZE} & 0xE ) {
|
||||
if ( $config{OPTIMIZE} & 0x1E ) {
|
||||
progress_message2 'Optimizing Ruleset...';
|
||||
#
|
||||
# Optimize Policy Chains
|
||||
@ -877,7 +877,7 @@ sub compiler {
|
||||
#
|
||||
# Ruleset Optimization
|
||||
#
|
||||
optimize_ruleset if $config{OPTIMIZE} & 0xC;
|
||||
optimize_ruleset if $config{OPTIMIZE} & 0x1C;
|
||||
}
|
||||
|
||||
enable_script if $debug;
|
||||
|
Loading…
Reference in New Issue
Block a user