2006-08-29 22:21:59 +02:00
|
|
|
#
|
2007-07-09 16:01:07 +02:00
|
|
|
# Shorewall version 4 - Reject Macro
|
2006-08-29 22:21:59 +02:00
|
|
|
#
|
|
|
|
# /usr/share/shorewall/macro.Reject
|
|
|
|
#
|
|
|
|
# This macro generates the same rules as the Reject default action
|
2006-09-12 21:43:37 +02:00
|
|
|
# It is used in place of action.Reject when USE_ACTIONS=No.
|
2006-08-29 22:21:59 +02:00
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
#
|
2006-10-31 20:01:23 +01:00
|
|
|
# Reject loc fw
|
2006-08-29 22:21:59 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
###############################################################################
|
2007-11-16 00:24:54 +01:00
|
|
|
#ACTION SOURCE PROTO DEST SOURCE RATE USER/
|
2007-11-29 18:46:13 +01:00
|
|
|
# PORT(S) PORT(S) LIMIT GROUP
|
2006-08-29 22:21:59 +02:00
|
|
|
#
|
|
|
|
# Don't log 'auth' REJECT
|
|
|
|
#
|
|
|
|
REJECT - - tcp 113
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
2006-09-12 21:43:37 +02:00
|
|
|
# Drop packets that are in the INVALID state -- these are usually ICMP packets
|
2006-08-29 22:21:59 +02:00
|
|
|
# and just confuse people when they appear in the log (these ICMPs cannot be
|
|
|
|
# rejected).
|
|
|
|
#
|
|
|
|
dropInvalid
|
|
|
|
#
|
2006-09-12 21:43:37 +02:00
|
|
|
# Reject Microsoft noise so that it doesn't clutter up the log.
|
2006-08-29 22:21:59 +02:00
|
|
|
#
|
|
|
|
REJECT - - udp 135,445
|
|
|
|
REJECT - - udp 137:139
|
|
|
|
REJECT - - udp 1024: 137
|
|
|
|
REJECT - - 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
|
|
|
|
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
|