2008-12-07 19:17:26 +01:00
|
|
|
#
|
2015-07-28 19:59:11 +02:00
|
|
|
# Shorewall version 5 - Drop Macro
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
|
|
|
# /usr/share/shorewall/macro.Drop
|
|
|
|
#
|
|
|
|
# This macro generates the same rules as the Drop default action
|
|
|
|
# It is used in place of action.Drop when USE_ACTIONS=No.
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
#
|
|
|
|
# Drop net all
|
|
|
|
#
|
|
|
|
###############################################################################
|
2014-05-07 21:19:24 +02:00
|
|
|
?FORMAT 2
|
|
|
|
###############################################################################
|
|
|
|
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGIN RATE USER/
|
|
|
|
# PORT(S) PORT(S) DEST LIMIT GROUP
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
2014-05-07 21:19:24 +02:00
|
|
|
# Don't log 'auth' DROP
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
2014-05-07 21:19:24 +02:00
|
|
|
DROP - - tcp 113
|
2008-12-07 19:17:26 +01:00
|
|
|
#
|
|
|
|
# Drop Broadcasts so they don't clutter up the log
|
|
|
|
# (broadcasts must *not* be rejected).
|
|
|
|
#
|
|
|
|
dropBcast
|
|
|
|
#
|
|
|
|
# ACCEPT critical ICMP types
|
|
|
|
#
|
|
|
|
ACCEPT - - icmp fragmentation-needed
|
|
|
|
ACCEPT - - icmp time-exceeded
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
# rejected).
|
|
|
|
#
|
|
|
|
dropInvalid
|
|
|
|
#
|
|
|
|
# Drop Microsoft noise so that it doesn't clutter up the log.
|
|
|
|
#
|
|
|
|
DROP - - udp 135,445
|
|
|
|
DROP - - udp 137:139
|
|
|
|
DROP - - udp 1024: 137
|
|
|
|
DROP - - tcp 135,139,445
|
|
|
|
DROP - - udp 1900
|
|
|
|
#
|
|
|
|
# Drop 'newnotsyn' traffic so that it doesn't get logged.
|
|
|
|
#
|
|
|
|
dropNotSyn
|
|
|
|
#
|
|
|
|
# Drop late-arriving DNS replies. These are just a nuisance and clutter up
|
|
|
|
# the log.
|
|
|
|
#
|
|
|
|
DROP - - udp - 53
|