mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-17 02:00:57 +01:00
Replace $1-$5 with @1-@5 in the standard actions.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
24c69f9efb
commit
eb20283a55
@ -33,7 +33,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
FORMAT 2
|
FORMAT 2
|
||||||
#
|
#
|
||||||
# The following magic provides different defaults for $2 thru $5, when $1 is
|
# The following magic provides different defaults for @2 thru @5, when @1 is
|
||||||
# 'audit'.
|
# 'audit'.
|
||||||
#
|
#
|
||||||
?BEGIN PERL;
|
?BEGIN PERL;
|
||||||
@ -66,31 +66,31 @@ COUNT
|
|||||||
#
|
#
|
||||||
# Reject 'auth'
|
# Reject 'auth'
|
||||||
#
|
#
|
||||||
Auth($2)
|
Auth(@2)
|
||||||
#
|
#
|
||||||
# Don't log broadcasts
|
# Don't log broadcasts
|
||||||
#
|
#
|
||||||
Broadcast(DROP,$1)
|
Broadcast(DROP,@1)
|
||||||
#
|
#
|
||||||
# ACCEPT critical ICMP types
|
# ACCEPT critical ICMP types
|
||||||
#
|
#
|
||||||
AllowICMPs($4) - - icmp
|
AllowICMPs(@4) - - icmp
|
||||||
#
|
#
|
||||||
# Drop packets that are in the INVALID state -- these are usually ICMP packets
|
# Drop packets that are in the INVALID state -- these are usually ICMP packets
|
||||||
# and just confuse people when they appear in the log.
|
# and just confuse people when they appear in the log.
|
||||||
#
|
#
|
||||||
Invalid(DROP,$1)
|
Invalid(DROP,@1)
|
||||||
#
|
#
|
||||||
# Drop Microsoft noise so that it doesn't clutter up the log.
|
# Drop Microsoft noise so that it doesn't clutter up the log.
|
||||||
#
|
#
|
||||||
SMB($3)
|
SMB(@3)
|
||||||
DropUPnP($5)
|
DropUPnP(@5)
|
||||||
#
|
#
|
||||||
# Drop 'newnotsyn' traffic so that it doesn't get logged.
|
# Drop 'newnotsyn' traffic so that it doesn't get logged.
|
||||||
#
|
#
|
||||||
NotSyn(DROP,$1) - - tcp
|
NotSyn(DROP,@1) - - tcp
|
||||||
#
|
#
|
||||||
# Drop late-arriving DNS replies. These are just a nuisance and clutter up
|
# Drop late-arriving DNS replies. These are just a nuisance and clutter up
|
||||||
# the log.
|
# the log.
|
||||||
#
|
#
|
||||||
DropDNSrep($5)
|
DropDNSrep(@5)
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
FORMAT 2
|
FORMAT 2
|
||||||
#
|
#
|
||||||
# The following magic provides different defaults for $2 thru $5, when $1 is
|
# The following magic provides different defaults for @2 thru @5, when @1 is
|
||||||
# 'audit'.
|
# 'audit'.
|
||||||
#
|
#
|
||||||
?BEGIN PERL;
|
?BEGIN PERL;
|
||||||
@ -62,33 +62,33 @@ COUNT
|
|||||||
#
|
#
|
||||||
# Don't log 'auth' -- REJECT
|
# Don't log 'auth' -- REJECT
|
||||||
#
|
#
|
||||||
Auth($2)
|
Auth(@2)
|
||||||
#
|
#
|
||||||
# Drop Broadcasts so they don't clutter up the log
|
# Drop Broadcasts so they don't clutter up the log
|
||||||
# (broadcasts must *not* be rejected).
|
# (broadcasts must *not* be rejected).
|
||||||
#
|
#
|
||||||
Broadcast(DROP,$1)
|
Broadcast(DROP,@1)
|
||||||
#
|
#
|
||||||
# ACCEPT critical ICMP types
|
# ACCEPT critical ICMP types
|
||||||
#
|
#
|
||||||
AllowICMPs($4) - - icmp
|
AllowICMPs(@4) - - icmp
|
||||||
#
|
#
|
||||||
# Drop packets that are in the INVALID state -- these are usually ICMP packets
|
# Drop packets that are in the INVALID state -- these are usually ICMP packets
|
||||||
# and just confuse people when they appear in the log (these ICMPs cannot be
|
# and just confuse people when they appear in the log (these ICMPs cannot be
|
||||||
# rejected).
|
# rejected).
|
||||||
#
|
#
|
||||||
Invalid(DROP,$1)
|
Invalid(DROP,@1)
|
||||||
#
|
#
|
||||||
# Reject Microsoft noise so that it doesn't clutter up the log.
|
# Reject Microsoft noise so that it doesn't clutter up the log.
|
||||||
#
|
#
|
||||||
SMB($3)
|
SMB(@3)
|
||||||
DropUPnP($5)
|
DropUPnP(@5)
|
||||||
#
|
#
|
||||||
# Drop 'newnotsyn' traffic so that it doesn't get logged.
|
# Drop 'newnotsyn' traffic so that it doesn't get logged.
|
||||||
#
|
#
|
||||||
NotSyn(DROP,$1) - - tcp
|
NotSyn(DROP,@1) - - tcp
|
||||||
#
|
#
|
||||||
# Drop late-arriving DNS replies. These are just a nuisance and clutter up
|
# Drop late-arriving DNS replies. These are just a nuisance and clutter up
|
||||||
# the log.
|
# the log.
|
||||||
#
|
#
|
||||||
DropDNSrep($5)
|
DropDNSrep(@5)
|
||||||
|
Loading…
Reference in New Issue
Block a user