Correct issue with generating ESTABLISHED rules.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-01-07 16:07:24 -08:00
parent 414a74d23c
commit a7af052d91

View File

@ -884,20 +884,15 @@ sub finish_chain_section ($$$) {
if ( $relatedchain ) {
add_ijump $chainref, g => $related_target;
$state = '';
} else {
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} ) {