Fix some rule problems -- Take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6155 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-30 15:25:07 +00:00
parent c1d6faf509
commit e596c92d74
2 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,7 @@ use constant { STANDARD => 1, #defined by Netfilter
# #
our %targets = ('ACCEPT' => STANDARD, our %targets = ('ACCEPT' => STANDARD,
'ACCEPT+' => STANDARD + NONAT, 'ACCEPT+' => STANDARD + NONAT,
'ACCEPT-' => STANDARD 'ACCEPT-' => STANDARD,
'ACCEPT!' => STANDARD, 'ACCEPT!' => STANDARD,
'NONAT' => STANDARD + NONAT + NATONLY, 'NONAT' => STANDARD + NONAT + NATONLY,
'DROP' => STANDARD, 'DROP' => STANDARD,

View File

@ -912,6 +912,8 @@ sub process_rule1 ( $$$$$$$$$ ) {
$action = 'reject'; $action = 'reject';
} elsif ( $action eq 'CONTINUE' ) { } elsif ( $action eq 'CONTINUE' ) {
$action = 'RETURN'; $action = 'RETURN';
} elsif ( $actiontype & LOGRULE ) {
fatal_error 'LOG requires a log level' unless defined $loglevel and $loglevel ne '';
} }
# #
# Isolate and validate source and destination zones # Isolate and validate source and destination zones