Fix FASTACCEPT=Yes

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5874 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-09 17:23:55 +00:00
parent 535cf5415d
commit 035c394ac8

View File

@ -1651,6 +1651,12 @@ sub generate_matrix() {
nat=> [ qw/PREROUTING OUTPUT POSTROUTING/ ] ,
filter=> [ qw/INPUT FORWARD OUTPUT/ ] );
if ( $config{FASTACCEPT} ) {
for my $chain ( @{$builtins{filter}} ) {
add_rule $filter_table->{$chain}, "-m state --state ESTABLISHED,RELATED -j ACCEPT";
}
}
if ( $config{LOGALLNEW} ) {
for my $table qw/mangle nat filter/ {
for my $chain ( @{$builtins{$table}} ) {