mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 08:03:11 +01:00
Add MARK and CONNMARK to the %targets table
- Also, sort the table entries Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2adec0eb65
commit
818628138b
@ -2908,40 +2908,42 @@ sub initialize_chain_table($) {
|
|||||||
%targets = ('ACCEPT' => STANDARD,
|
%targets = ('ACCEPT' => STANDARD,
|
||||||
'ACCEPT+' => STANDARD + NONAT,
|
'ACCEPT+' => STANDARD + NONAT,
|
||||||
'ACCEPT!' => STANDARD,
|
'ACCEPT!' => STANDARD,
|
||||||
|
'ADD' => STANDARD + SET,
|
||||||
|
'AUDIT' => STANDARD + AUDIT + OPTIONS,
|
||||||
'A_ACCEPT' => STANDARD + AUDIT,
|
'A_ACCEPT' => STANDARD + AUDIT,
|
||||||
'A_ACCEPT+' => STANDARD + NONAT + AUDIT,
|
'A_ACCEPT+' => STANDARD + NONAT + AUDIT,
|
||||||
'A_ACCEPT!' => STANDARD + AUDIT,
|
'A_ACCEPT!' => STANDARD + AUDIT,
|
||||||
'NONAT' => STANDARD + NONAT + NATONLY,
|
|
||||||
'AUDIT' => STANDARD + AUDIT + OPTIONS,
|
|
||||||
'DROP' => STANDARD,
|
|
||||||
'DROP!' => STANDARD,
|
|
||||||
'A_DROP' => STANDARD + AUDIT,
|
'A_DROP' => STANDARD + AUDIT,
|
||||||
'A_DROP!' => STANDARD + AUDIT,
|
'A_DROP!' => STANDARD + AUDIT,
|
||||||
'REJECT' => STANDARD + OPTIONS,
|
|
||||||
'REJECT!' => STANDARD + OPTIONS,
|
|
||||||
'A_REJECT' => STANDARD + AUDIT,
|
'A_REJECT' => STANDARD + AUDIT,
|
||||||
'A_REJECT!' => STANDARD + AUDIT,
|
'A_REJECT!' => STANDARD + AUDIT,
|
||||||
'DNAT' => NATRULE + OPTIONS,
|
'NONAT' => STANDARD + NONAT + NATONLY,
|
||||||
'DNAT-' => NATRULE + NATONLY,
|
'CONNMARK' => STANDARD + OPTIONS,
|
||||||
'REDIRECT' => NATRULE + REDIRECT + OPTIONS,
|
|
||||||
'REDIRECT-' => NATRULE + REDIRECT + NATONLY,
|
|
||||||
'LOG' => STANDARD + LOGRULE + OPTIONS,
|
|
||||||
'CONTINUE' => STANDARD,
|
'CONTINUE' => STANDARD,
|
||||||
'CONTINUE!' => STANDARD,
|
'CONTINUE!' => STANDARD,
|
||||||
'COUNT' => STANDARD,
|
'COUNT' => STANDARD,
|
||||||
'QUEUE' => STANDARD + OPTIONS,
|
|
||||||
'QUEUE!' => STANDARD,
|
|
||||||
'NFLOG' => STANDARD + LOGRULE + NFLOG + OPTIONS,
|
|
||||||
'NFQUEUE' => STANDARD + NFQ + OPTIONS,
|
|
||||||
'NFQUEUE!' => STANDARD + NFQ,
|
|
||||||
'ULOG' => STANDARD + LOGRULE + NFLOG + OPTIONS,
|
|
||||||
'ADD' => STANDARD + SET,
|
|
||||||
'DEL' => STANDARD + SET,
|
'DEL' => STANDARD + SET,
|
||||||
'WHITELIST' => STANDARD,
|
'DNAT' => NATRULE + OPTIONS,
|
||||||
|
'DNAT-' => NATRULE + NATONLY,
|
||||||
|
'DROP' => STANDARD,
|
||||||
|
'DROP!' => STANDARD,
|
||||||
'HELPER' => STANDARD + HELPER + NATONLY, #Actually RAWONLY
|
'HELPER' => STANDARD + HELPER + NATONLY, #Actually RAWONLY
|
||||||
'INLINE' => INLINERULE,
|
'INLINE' => INLINERULE,
|
||||||
'IPTABLES' => IPTABLES,
|
'IPTABLES' => IPTABLES,
|
||||||
|
'LOG' => STANDARD + LOGRULE + OPTIONS,
|
||||||
|
'MARK' => STANDARD + OPTIONS,
|
||||||
|
'NFLOG' => STANDARD + LOGRULE + NFLOG + OPTIONS,
|
||||||
|
'NFQUEUE' => STANDARD + NFQ + OPTIONS,
|
||||||
|
'NFQUEUE!' => STANDARD + NFQ,
|
||||||
|
'QUEUE' => STANDARD + OPTIONS,
|
||||||
|
'QUEUE!' => STANDARD,
|
||||||
|
'REJECT' => STANDARD + OPTIONS,
|
||||||
|
'REJECT!' => STANDARD + OPTIONS,
|
||||||
|
'REDIRECT' => NATRULE + REDIRECT + OPTIONS,
|
||||||
|
'REDIRECT-' => NATRULE + REDIRECT + NATONLY,
|
||||||
'TARPIT' => STANDARD + TARPIT + OPTIONS,
|
'TARPIT' => STANDARD + TARPIT + OPTIONS,
|
||||||
|
'ULOG' => STANDARD + LOGRULE + NFLOG + OPTIONS,
|
||||||
|
'WHITELIST' => STANDARD,
|
||||||
);
|
);
|
||||||
|
|
||||||
for my $chain ( qw(OUTPUT PREROUTING) ) {
|
for my $chain ( qw(OUTPUT PREROUTING) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user