-4

I have deployed my ASP.NET application on Windows Server 2008 R2. Now, I want to block all ping requests to this server without affecting the operation of my ASP.NET application.

3
  • 1
    Why do you want to block ping? Apr 21, 2012 at 17:22
  • @ShaneMadden: want ping request disable ie(ping from cmd gives no response) Apr 21, 2012 at 17:26
  • 2
    But why? What threat do yo believe you are protecting from?
    – Zoredache
    Apr 21, 2012 at 20:19

2 Answers 2

2

Try running:

netsh firewall set icmpsetting 8 disable
1
  • The netsh firewall context is deprecated in Windows 2008 R2. However, the alternative that the warning message recommends is netsh advfirewall firewall, and netsh advfirewall firewall set icmpsetting 8 disable does not work, it says that the command was not found. Apparently the new approach is to just make a rule and treat ICMP as just another protocol: support.microsoft.com/kb/947709
    – JamesCW
    May 29, 2012 at 19:35
0

Here's the solution

Go to Start >> Administrative Tools >> Windows Firewall with Advanced Security >> Inbound Rules >> File and Printer Sharing (Echo Request – ICMPv4-IN) >> right click and select Enable Rule.

well now my application works fine and from cmd if you try to send ping request to my server u will not recieve any response. This is what i need :)

Not the answer you're looking for? Browse other questions tagged .