mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-23 13:11:36 +01:00
Add AllowICMPs action and invoke from Drop and Reject
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1666 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
31f0b2dc68
commit
aeb3d2cea2
11
Shorewall2/action.AllowICMPs
Normal file
11
Shorewall2/action.AllowICMPs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# Shorewall 2.1 /usr/share/shorewall/action.AllowICMPs
|
||||||
|
#
|
||||||
|
# ACCEPT needed ICMP types
|
||||||
|
#
|
||||||
|
######################################################################################
|
||||||
|
#TARGET SOURCE DEST PROTO DEST SOURCE RATE USER/
|
||||||
|
# PORT PORT(S) LIMIT GROUP
|
||||||
|
#
|
||||||
|
ACCEPT - - icmp fragmentation-needed
|
||||||
|
ACCEPT - - icmp time-exceeded
|
@ -3,14 +3,47 @@
|
|||||||
#
|
#
|
||||||
# The default DROP common rules
|
# The default DROP common rules
|
||||||
#
|
#
|
||||||
|
# This action is invoked before a DROP policy is enforced. The purpose of the action
|
||||||
|
# is:
|
||||||
|
#
|
||||||
|
# a) Avoid logging lots of useless cruft.
|
||||||
|
# b) Ensure that 'auth' requests are rejected, even if the policy is DROP.
|
||||||
|
# Otherwise, you may experience problems establishing connections with
|
||||||
|
# servers that use auth.
|
||||||
|
# c) Ensure that certain ICMP packets that are necessary for successful
|
||||||
|
# internet operation are always ACCEPTed.
|
||||||
|
#
|
||||||
|
# IF YOU ARE HAVING CONNECTION PROBLEMS, CHANGING THIS FILE WON'T HELP!!!!!!!!!!!!
|
||||||
######################################################################################
|
######################################################################################
|
||||||
#TARGET SOURCE DEST PROTO DEST SOURCE RATE USER/
|
#TARGET SOURCE DEST PROTO
|
||||||
# PORT PORT(S) LIMIT GROUP
|
#
|
||||||
|
# Reject 'auth'
|
||||||
|
#
|
||||||
RejectAuth
|
RejectAuth
|
||||||
|
#
|
||||||
|
# Don't log broadcasts
|
||||||
|
#
|
||||||
dropBcast
|
dropBcast
|
||||||
|
#
|
||||||
|
# ACCEPT critical ICMP types
|
||||||
|
#
|
||||||
|
AllowICMPs - - icmp
|
||||||
|
#
|
||||||
|
# Drop packets that in the INVALID state -- these are usually ICMP packets and just
|
||||||
|
# confuse people when they appear in the log.
|
||||||
|
#
|
||||||
dropInvalid
|
dropInvalid
|
||||||
|
#
|
||||||
|
# Drop Microsoft noise so that it doesn't clutter up the log.
|
||||||
|
#
|
||||||
DropSMB
|
DropSMB
|
||||||
DropUPnP
|
DropUPnP
|
||||||
dropNotSyn
|
#
|
||||||
|
# Drop 'newnotsyn' traffic so that it doesn't get logged.
|
||||||
|
#
|
||||||
|
dropNotSyn - - tcp
|
||||||
|
#
|
||||||
|
# Drop late-arriving DNS replies. These are just a nuisance and clutter up the log.
|
||||||
|
#
|
||||||
DropDNSrep
|
DropDNSrep
|
||||||
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
|
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
|
||||||
|
@ -3,14 +3,44 @@
|
|||||||
#
|
#
|
||||||
# The default REJECT action common rules
|
# The default REJECT action common rules
|
||||||
#
|
#
|
||||||
|
# This action is invoked before a REJECT policy is enforced. The purpose of the action
|
||||||
|
# is:
|
||||||
|
#
|
||||||
|
# a) Avoid logging lots of useless cruft.
|
||||||
|
# b) Ensure that certain ICMP packets that are necessary for successful
|
||||||
|
# internet operation are always ACCEPTed.
|
||||||
|
#
|
||||||
|
# IF YOU ARE HAVING CONNECTION PROBLEMS, CHANGING THIS FILE WON'T HELP!!!!!!!!!!!!
|
||||||
######################################################################################
|
######################################################################################
|
||||||
#TARGET SOURCE DEST PROTO DEST SOURCE RATE USER/
|
#TARGET SOURCE DEST PROTO
|
||||||
# PORT PORT(S) LIMIT GROUP
|
#
|
||||||
|
# Don't log 'auth' REJECT
|
||||||
|
#
|
||||||
RejectAuth
|
RejectAuth
|
||||||
|
#
|
||||||
|
# Drop Broadcasts so they don't clutter up the log (broadcasts must *not* be rejected).
|
||||||
|
#
|
||||||
dropBcast
|
dropBcast
|
||||||
|
#
|
||||||
|
# ACCEPT critical ICMP types
|
||||||
|
#
|
||||||
|
AllowICMPs - - icmp
|
||||||
|
#
|
||||||
|
# Drop packets that 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
|
dropInvalid
|
||||||
|
#
|
||||||
|
# Drop Microsoft noise so that it doesn't clutter up the lot.
|
||||||
|
#
|
||||||
RejectSMB
|
RejectSMB
|
||||||
DropUPnP
|
DropUPnP
|
||||||
dropNotSyn
|
#
|
||||||
|
# Drop 'newnotsyn' traffic so that it doesn't get logged.
|
||||||
|
#
|
||||||
|
dropNotSyn - - tcp
|
||||||
|
#
|
||||||
|
# Drop late-arriving DNS replies. These are just a nuisance and clutter up the log.
|
||||||
|
#
|
||||||
DropDNSrep
|
DropDNSrep
|
||||||
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
|
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
|
||||||
|
@ -32,6 +32,7 @@ AllowSMB #Allow MS Networking
|
|||||||
AllowAuth #Allow Auth (identd)
|
AllowAuth #Allow Auth (identd)
|
||||||
AllowSMTP #Allow SMTP (Email)
|
AllowSMTP #Allow SMTP (Email)
|
||||||
AllowPOP3 #Allow reading mail via POP3
|
AllowPOP3 #Allow reading mail via POP3
|
||||||
|
AllowICMPs #Allows critical ICMP types
|
||||||
AllowIMAP #Allow reading mail via IMAP
|
AllowIMAP #Allow reading mail via IMAP
|
||||||
AllowTelnet #Allow Telnet Access (not recommended for use over the
|
AllowTelnet #Allow Telnet Access (not recommended for use over the
|
||||||
#Internet)
|
#Internet)
|
||||||
|
@ -92,6 +92,8 @@ Changes since 2.0.3
|
|||||||
|
|
||||||
44) Implememt LOGTAGONLY.
|
44) Implememt LOGTAGONLY.
|
||||||
|
|
||||||
46) Merge 'tcrules' clarification from 2.0.10.
|
45) Merge 'tcrules' clarification from 2.0.10.
|
||||||
|
|
||||||
46) Implement 'sourceroute' interface option.
|
46) Implement 'sourceroute' interface option.
|
||||||
|
|
||||||
|
47) Add 'icmps' action.
|
||||||
|
@ -520,4 +520,9 @@ New Features:
|
|||||||
interfaces. If you wish to accept source routing on an interface,
|
interfaces. If you wish to accept source routing on an interface,
|
||||||
you must specify the new 'sourceroute' interface option in
|
you must specify the new 'sourceroute' interface option in
|
||||||
/etc/shorewall/interfaces.
|
/etc/shorewall/interfaces.
|
||||||
|
|
||||||
|
20) The default Drop and Reject actions now invoke the new standard
|
||||||
|
action 'AllowICMPs'. This new action accepts critical ICMP types:
|
||||||
|
|
||||||
|
Type 3 code 4 (fragmentation needed)
|
||||||
|
Type 11 (TTL exceeded)
|
||||||
|
@ -101,6 +101,7 @@ fi
|
|||||||
%attr(0600,root,root) /usr/share/shorewall/action.AllowAuth
|
%attr(0600,root,root) /usr/share/shorewall/action.AllowAuth
|
||||||
%attr(0600,root,root) /usr/share/shorewall/action.AllowDNS
|
%attr(0600,root,root) /usr/share/shorewall/action.AllowDNS
|
||||||
%attr(0600,root,root) /usr/share/shorewall/action.AllowFTP
|
%attr(0600,root,root) /usr/share/shorewall/action.AllowFTP
|
||||||
|
%attr(0600,root,root) /usr/share/shorewall/action.AllowICMPs
|
||||||
%attr(0600,root,root) /usr/share/shorewall/action.AllowIMAP
|
%attr(0600,root,root) /usr/share/shorewall/action.AllowIMAP
|
||||||
%attr(0600,root,root) /usr/share/shorewall/action.AllowNNTP
|
%attr(0600,root,root) /usr/share/shorewall/action.AllowNNTP
|
||||||
%attr(0600,root,root) /usr/share/shorewall/action.AllowNTP
|
%attr(0600,root,root) /usr/share/shorewall/action.AllowNTP
|
||||||
|
Loading…
Reference in New Issue
Block a user