This question is slightly related to "Why Block Port 22 Outbound?". I don't see how this can be a notable security risk.
6 Answers
Security is frequently thought about in a "blacklist everything, whitelist whats needed" context, aft to a tinfoil hat level of limiting outbound connections until someone complains. While its easy to ask "why block" .. a security expert will ask "why do you need" ... This is why a corporate network is very restrictive (blacklist first) vs a standard home network (whitelist everything outgoing).
A machine on your network running on a botnet providing bandwidth for ICMP PING saturation of a host is one realistic scenario.
![](../../users/profiles/14709.webp)
- 2,373
- 15
- 19
Blocking ICMP outbound and ALL other connections from your environment is a good start for building your firewall/security policy.
But there are a lot of things that you should know before hand and take into account. A good example is when blocking all ICMP packets while allowing some other protocols such as tcp port 80 (http) could lead to problems with MTU/PMTU. If you have a network connection that uses an encapsulation such as pppoe, GRE, or one of the many others you WILL run into a large number of hard to identify MTU issues.
Good area to start reading is:
![](../../users/profiles/126632.webp)
- 237,123
- 42
- 477
- 940
![](../../users/profiles/15709.webp)
- 742
- 3
- 4
-
-
4This ignores answering the real question ("why?") by simply stating that it's "a good start". Furthermore, linked "IMCP stands for trouble" is 404-ing, so that's of no use. – ironsam Feb 23 '12 at 18:28
These icmp dos attacks were useful 10 years ago. Nobody will use them now and this is stupid thing to filter all icmp packets. Books that suggest to block all icmp packets are 1) written by stupid people or 2) written by people to make your network hard for diagnostics and to make you call a company that will fix it for you :)
even icmp redirect messages are not harmful if you have only static routes...
so please don't advise people to disable the main diagnostic protocol of the internet
![](../../users/profiles/137727.webp)
- 49
- 1
I think this is not a big deal but this can be considered as a practice used in "default deny policy" used in systems administration. The reason for blocking ICMP would be avoiding ICMP DOS attacks against another host. (To be ethical)
![](../../users/profiles/3311.webp)
- 1,063
- 1
- 11
- 16
-
-
2-1: Singling out ICMP here is not the correct method. TCP/UDP/ICMP and all the others IP Protocols (http://www.iana.org/assignments/protocol-numbers/) can be used to create DoS attacks under the right conditions. What is really needed is correct filtering of acceptable packets for environment. – Jeremy Rossi Aug 19 '09 at 04:24
-
-
2How ethical is it to ignore one of the core diagnostic protocols of the internet? ICMP is not the only internet protocol subject to abuse via DOS and other attacks (hint: they all are). google.com responds even opens up *inbound* ICMP for a reason: to support a core protocol and allow diagnostics. – ironsam Feb 23 '12 at 18:41
-
ICMP attacks page seems to be down, link to the web archive: https://web.archive.org/web/20131005054532/http://www.javvin.com/networksecurity/ICMPAttacks.html – Roland Pihlakas Aug 25 '20 at 04:00
It's possible, for example, for a malicious piece of software on a compromised system to send messages "back home" via fake echo replies. This could give the remote listening system quite a bit of information that you don't necessarily want it to have, one little piece at a time. Anything the malware has access to could go right out the pipe.
![](../../users/profiles/1054.webp)
- 37,618
- 10
- 90
- 145
-
In which case one needs to focus on removing the malware rather on the data it sends. – Richard Aug 19 '09 at 09:48
-
1
Another reason to block outbound ICMP is to (attempt to) foil port scanners. Many firewalls will silently drop inbound packets denied by security policy (usually an ACL). However, if a packet is allowed through, and the destination application itself isn't running, most servers will return an ICMP Unreachable packet of some type. This difference in behavior for an unavailable port can give an attacker valuable insight into your network.
![](../../users/profiles/13658.webp)
- 6,755
- 23
- 27
-
-
1Obscurity is a poor security mechanism by itself, but it can be quite useful as part of a broader security strategy. – James Sneeringer Jul 23 '12 at 13:45