mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 08:03:11 +01:00
Correctly initialize $chainref->{sections} vis-a-vis FASTACCEPT.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
f7bdb71aad
commit
cfa5d86f5c
@ -223,7 +223,17 @@ sub initialize( $ ) {
|
||||
#
|
||||
sub new_rules_chain( $ ) {
|
||||
my $chainref = new_chain( 'filter', $_[0] );
|
||||
$chainref->{sections} = $config{FASTACCEPT} ? { RELATED => 1, ESTABLISHED => 1 } : {};
|
||||
|
||||
if ( $config{FASTACCEPT} ) {
|
||||
if ( $globals{RELATED_TARGET} eq 'ACCEPT' && ! $config{RELATED_LOG_LEVEL} ) {
|
||||
$chainref->{sections} = { ESTABLISHED => 1, RELATED => 1 };
|
||||
} else {
|
||||
$chainref->{sections} = { ESTABLISHED => 1 };
|
||||
}
|
||||
} else {
|
||||
$chainref->{sections} = {};
|
||||
}
|
||||
|
||||
$chainref;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user