mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 15:18:53 +01:00
Correct handling of audited dispositions.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
c68d4c6e27
commit
cc1054be66
@ -5348,7 +5348,7 @@ sub get_configuration( $$$$ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $val = $config{INVALID_DISPOSITION} ) {
|
if ( $val = $config{INVALID_DISPOSITION} ) {
|
||||||
if ( $val =~ /^(?:A_)?(?:DROP|ACCEPT)$/ ) {
|
if ( $val =~ /^(?:A_)?DROP$/ ) {
|
||||||
$globals{INVALID_TARGET} = $val;
|
$globals{INVALID_TARGET} = $val;
|
||||||
} elsif ( $val eq 'REJECT' ) {
|
} elsif ( $val eq 'REJECT' ) {
|
||||||
$globals{INVALID_TARGET} = 'reject';
|
$globals{INVALID_TARGET} = 'reject';
|
||||||
|
@ -950,6 +950,8 @@ sub finish_chain_section ($$$) {
|
|||||||
delete $state{ESTABLISHED};
|
delete $state{ESTABLISHED};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$target = ensure_audit_chain( $target ) if ( $targets{$target} || 0 ) & AUDIT;
|
||||||
|
|
||||||
add_ijump( $chainref, g => $target, state_imatch $_ );
|
add_ijump( $chainref, g => $target, state_imatch $_ );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user