Enable ICMP (Ping) with the Server 2008 Firewall

File this under "things I always forget how to do, and then find on my own site when I search for it".

If you want to ping your Server 2008 machine and receive a response, open a command prompt or Run dialog and use the following commands:

Allow incoming ICMPv4 echo requests

netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow

Allow all incoming ICMPv4 requests

netsh advfirewall firewall add rule name="All ICMP V4" protocol=icmpv4:any,any dir=in action=allow

Old Deprecated Syntax

netsh firewall set icmpsetting 8

This will allow your server to reply to ICMP requests.

To disable this and block ICMP requests, run:

netsh firewall set icmpsetting 8 disable

Updated 5/27/2011: Changed to use newer netsh advfirewall firewall instead of deprecated netsh firewall.

 

Tags: , , ,

3 Responses to “Enable ICMP (Ping) with the Server 2008 Firewall”

  1. r4i software Says:

    One of the major pains of managing such a GUI-stripped installation is the configuration of the any Windows settings, mostly because we, Windows-based and Windows-accustomed administrators, have very little in common with non-GUI-based operating systems.

  2. Thank You Says:

    Kicks total ass! Thank you!

  3. Surender Says:

    Thanks for ur Answer.

Leave a Reply


© 2007-2012, Corey Gilmore | Posts RSS Feed | Comments RSS Feed | Contact

 

The views expressed on these pages are mine alone and not those of any past or present employer. All information presented on this site was obtained lawfully and not through disclosure under the terms of an NDA.