mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-14 19:54:06 +01:00
Fix some rule problems
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6154 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
16c2fffc36
commit
c1d6faf509
@ -197,6 +197,7 @@ use constant { STANDARD => 1, #defined by Netfilter
|
||||
#
|
||||
our %targets = ('ACCEPT' => STANDARD,
|
||||
'ACCEPT+' => STANDARD + NONAT,
|
||||
'ACCEPT-' => STANDARD
|
||||
'ACCEPT!' => STANDARD,
|
||||
'NONAT' => STANDARD + NONAT + NATONLY,
|
||||
'DROP' => STANDARD,
|
||||
@ -209,7 +210,9 @@ our %targets = ('ACCEPT' => STANDARD,
|
||||
'REDIRECT-' => NATRULE + REDIRECT + NATONLY,
|
||||
'LOG' => STANDARD + LOGRULE,
|
||||
'CONTINUE' => STANDARD,
|
||||
'CONTINUE!' => STANDARD,
|
||||
'QUEUE' => STANDARD,
|
||||
'QUEUE!' => STANDARD,
|
||||
'SAME' => NATRULE,
|
||||
'SAME-' => NATRULE + NATONLY,
|
||||
'dropBcast' => BUILTIN + ACTION,
|
||||
|
@ -2448,7 +2448,7 @@ process_macro() # $1 = target
|
||||
esac
|
||||
|
||||
case ${mtarget%%:*} in
|
||||
ACCEPT|ACCEPT!|ACCEPT+|NONAT|DROP|DROP!|REJECT|REJECT!|DNAT|DNAT-|REDIRECT|REDIRECT-|LOG|CONTINUE|QUEUE|SAME|SAME-)
|
||||
ACCEPT|ACCEPT!|ACCEPT+|NONAT|DROP|DROP!|REJECT|REJECT!|DNAT|DNAT-|REDIRECT|REDIRECT-|LOG|CONTINUE|CONTINUE!|QUEUE|SAME|SAME-)
|
||||
;;
|
||||
*)
|
||||
if list_search ${mtarget%%:*} $ACTIONS; then
|
||||
@ -2629,7 +2629,7 @@ process_rules()
|
||||
ACCEPT|ACCEPT+|NONAT|DROP|REJECT|DNAT|DNAT-|REDIRECT|REDIRECT-|LOG|CONTINUE|QUEUE|SAME|SAME-)
|
||||
do_it No
|
||||
;;
|
||||
ACCEPT!|DROP!REJECT!|QUEUE!|CONTINUE!)
|
||||
ACCEPT!|DROP!|REJECT!|QUEUE!|CONTINUE!)
|
||||
optimize=0
|
||||
do_it No
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user