forked from extern/shorewall_code
Correctly initialize $chainref->{sections} vis-a-vis FASTACCEPT.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
819c8bf492
commit
2217f89902
@ -232,7 +232,17 @@ sub initialize( $ ) {
|
|||||||
#
|
#
|
||||||
sub new_rules_chain( $ ) {
|
sub new_rules_chain( $ ) {
|
||||||
my $chainref = new_chain( 'filter', $_[0] );
|
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;
|
$chainref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user