Manually allow ping.exe through the Windows 7 firewall

3

To improve my feeling of security I recently switched my Windows 7 firewall to block all outbound connections. The only thing I can't seem to get to work is ping.exe.

I tried by creating custom rules to allow everything through from cmd.exe to ping.exe (both versions in the system32 and SysWOW64), but I had no luck so far.

Remko

Posted 2012-11-20T11:44:02.010

Reputation: 133

Answers

5

The option that should be changed is protocol, not program. The steps are:

  1. Select all programs

  2. Select ICMPv4 from protocol

  3. Apply for any IP address.

Hans Chen

Posted 2012-11-20T11:44:02.010

Reputation: 409

After step (2) you should Select "Specific ICMP types" and select only "Echo Request" to avoid opening up all ICMP types. I edited the answer adding the step (3). – Marco Demaio – 2016-11-25T11:33:56.130

But that would essentially open up my entire outbound connection again. The main reason I set it up this way was to prevent unwanted programs from constantly contacting all kinds of services. – Remko – 2012-11-20T11:57:28.070

No it will only open up ICMP protocol connections. Actually that protocol is almost same as Ping program, no another programs use it. – Hans Chen – 2012-11-20T12:00:53.903

Learned something today. Didn't knew the exact specifications of that protocol. Thanks! – Remko – 2012-11-20T12:08:32.193

You are welcome. Good to hear the solution works. – Hans Chen – 2012-11-20T12:24:12.583