Score:1

Disable ping in Windows Server 2008 R2

in flag

my seniors and professionals, I know this issue is already listed on serverfault but I am again asking this question as none of the provided solutions worked for me. I have tried the following options.

  1. 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.
  1. Number "1" solution with changed that rule's setting from "Allow" to "Block the connection".
  1. Using IIS Open the application pool from IIS Manager and navigate to “Advanced Settings” from the context menu of the selected application pool. This will open the “Advanced settings” dialog window. Move to the “Process Model” section. From there select ping enables to false.

I am using Windows Server 2008 R2 and IIS 7.5.

bjoster avatar
cn flag
Do you want to "disable" inbound ICMP/ping (so that youre machine will no longer answer to ping requests) or outbound ICMP/ping (so that your machine can no longer request ping from other machines) oder do you want to disable the `ping`command itself?
Shahid Amin avatar
in flag
I just want that people cannot ping my server.
Score:1
cn flag

Try to add a firewall rule:

netsh advFirewall Firewall add rule name="block PING IPv4" protocol=icmpv4:8,any dir=in action=block

And make sure the firewall is enabled on the profile/adapter you are using.

This can be done in the Firewall GUI, too:

Open Advanced Firewall SnapIn > Inbound Rules > New Rule > Custom Rule (with "All Programs") > Protocol Type IPv4 > Set "Specific ICMP types" to "Echo Request" > Any/Any > Block.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.