mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-31 09:59:59 +01:00
Correct issue with generating ESTABLISHED rules.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
414a74d23c
commit
a7af052d91
@ -884,20 +884,15 @@ sub finish_chain_section ($$$) {
|
|||||||
|
|
||||||
if ( $relatedchain ) {
|
if ( $relatedchain ) {
|
||||||
add_ijump $chainref, g => $related_target;
|
add_ijump $chainref, g => $related_target;
|
||||||
|
$state = '';
|
||||||
} else {
|
} else {
|
||||||
add_ijump $chainref, g => $related_target, state_imatch 'RELATED';
|
add_ijump $chainref, g => $related_target, state_imatch 'RELATED';
|
||||||
}
|
|
||||||
|
|
||||||
$state =~ s/,?RELATED//;
|
$state =~ s/,?RELATED//;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ( $state && ! $config{FASTACCEPT} ) {
|
|
||||||
if ( $relatedchain ) {
|
|
||||||
add_ijump $chainref, j => 'ACCEPT';
|
|
||||||
} else {
|
|
||||||
add_ijump $chainref, j => 'ACCEPT', state_imatch $state;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $state ) {
|
||||||
|
add_ijump $chain1ref, j => 'ACCEPT', state_imatch $state unless $config{FASTACCEPT};
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($sections{NEW} ) {
|
if ($sections{NEW} ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user