Don't ACCEPT untracked packets unless UNTRACKED_DISPOSITION=ACCEPT

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-02-09 09:15:05 -08:00
parent eaa6d72a4f
commit a4297381e9

View File

@ -973,7 +973,7 @@ sub finish_chain_section ($$$) {
}
}
push @state, 'UNTRACKED' if $state{UNTRACKED};
push( @state, 'UNTRACKED' ),if $state{UNTRACKED} && $globals{UNTRACKED_TARGET} eq 'ACCEPT';
add_ijump( $chain1ref, j => 'ACCEPT', state_imatch join(',', @state ) ) if @state;
}