Correct handling of audited dispositions.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-02 09:30:25 -08:00
parent c68d4c6e27
commit cc1054be66
2 changed files with 3 additions and 1 deletions

View File

@ -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';

View File

@ -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 $_ );
} }