Why do companies block 'ping'?

13

2

I can browse all the websites in my company work station, but not open the command prompt and ping any website. This has happened in 2 of my previous companies too. Do companies block ping?Why do companies do that ?

Vinoth Kumar C M

Posted 2011-08-04T06:44:43.937

Reputation: 313

Could you clarify what you mean, please? Does ping not return anything or can't you execute ping (This program has been blocked or something like this). – Tex Hex – 2011-08-04T06:51:07.000

"Ping request could not find host google.com. Please check the name and try again" – Vinoth Kumar C M – 2011-08-04T07:04:33.797

do you browse via a company squid proxy ? – Sirex – 2011-08-04T07:29:00.810

2

Because the sysadmins are either ignorant, or being overly cautious. I sure hope they haven't completely blocked ICMP since that breaks PMTUD.

– Zoredache – 2011-08-04T08:05:07.020

Can you ping Google's ip address directly - ping 74.125.93.104? If so, then it's a name resolution issue of some sort. – Joe Internet – 2011-08-04T08:09:14.663

2It's probably not blocking ping, but rather blocking name resolution requests. Your company is using a proxy, other "direct" internet access is disabled (HTTP / ping / name resolution / ...). – Konerak – 2011-08-04T12:33:50.797

Answers

12

It has to do with the issues caused by it in the past ("Ping of death"), so some sites block it at the firewall level to avoid them:

On the Internet, ping of death is a denial of service (DoS) attack caused by an attacker deliberately sending an IP packet larger than the 65,536 bytes allowed by the IP protocol.

One of the features of TCP/IP is fragmentation; it allows a single IP packet to be broken down into smaller segments. In 1996, attackers began to take advantage of that feature when they found that a packet broken down into fragments could add up to more than the allowed 65,536 bytes. Many operating systems didn't know what to do when they received an oversized packet, so they froze, crashed, or rebooted.

Source: ping of death



Edit: There's even an issue called "Ping flood":

Ping flood is a simple denial-of-service attack where the attacker/s overwhelms the victim with ICMP Echo Request (ping) packets. It is most successful if the attacker has more bandwidth than the victim (for instance an attacker with a DSL line and the victim on a dial-up modem).

The attacker hopes that the victim will respond with ICMP Echo Reply packets, thus consuming both outgoing bandwidth as well as incoming bandwidth. If the target system is slow enough, it is possible to consume enough of its CPU cycles for a user to notice a significant slowdown.

TFM

Posted 2011-08-04T06:44:43.937

Reputation: 4 243

7afaik most modern OS are immune to Ping of Death – Sathyajith Bhat – 2011-08-04T07:47:27.143

2"Modern" being "1998 or newer", for that matter. – user1686 – 2011-08-04T14:27:42.683

This is old school man. . . – surfasb – 2011-08-10T06:12:57.957

Quite fortuitous that Ivan updated the other post today. the same day that the news that the ping of death is still lingering around

– Scott Chamberlain – 2011-08-10T06:32:32.870

5

You may try the tracert command, but that is probably blocked too.

The system administrators probably see ping as a security issue for some reason. AKA 99% of their users are inexperienced and have no use for the ping command, and the 1% that know it are most likely to be capable of compromising security.

Potentially, someone's malware might send pings to a remote server in order for that server to log the IP of the pinging machine.

Alex Waters

Posted 2011-08-04T06:44:43.937

Reputation: 1 216

1It can be used to change the BSOD to PSOD for people so inclined... – Alex Waters – 2011-08-04T06:56:20.480

"Ping request could not find host google.com. Please check the name and try again" – Vinoth Kumar C M – 2011-08-04T07:03:12.753

Try: tracert google.com – Alex Waters – 2011-08-04T07:03:59.227

I can ping google just fine - maybe ping is blocked somewhere closer to your local network? – jw013 – 2011-08-04T07:07:16.320

2I'm getting this message: "'pink' is not recognized as an internal or external command, operable program or batch file." – TFM – 2011-08-04T07:07:29.767

2@TFM Maybe your LAN cable is a different colour or you are on wireless? – Linker3000 – 2011-08-04T07:55:46.560

2@TFM - you have to spraypaint the hard drive pink in order for the command to work. The optical drive has sensors that only trigger the correct message if the pink spectrometer is triggered... They do this so that you do not call the command unless it is absolutely necessary. Also, it lets any sys admins know that you have at some point tried to issue the pink command. – Alex Waters – 2011-08-04T10:02:09.587

1The "Pink" command is a new one: It determines if the company supports breast cancer. :) – KCotreau – 2011-08-04T11:25:57.673