Como faço para permitir ou bloquear a resposta de ping no Windows?
O bloqueio de ping.exe
não interromperá as respostas de ping de entrada, pois elas são tratadas em um nível inferior pelo sistema operacional.
ping.exe
é usado para fazer solicitações de ping de saída.
Em vez disso, você precisa bloquear a Porta e Protocolo do Ping (tanto de entrada quanto de saída no seu caso.
Press the WIN key, type "windows firewall" and run it.
Click on "Advanced settings" located at the left hand sidebar.
Click on "Inbound Rules" at the left pane.
Click "Action" from the menu bar and select "New Rule".
Click on "Custom" and click "Next".
Make sure the "All programs" option is selected and click "Next".
Click on the "Protocol type" drop down menu, select "ICMPv4" and click "Next".
Make sure both "Any IP address" is selected and click "Next".
If you want to enable ping when you are connected to a public network, select "Allow the connection". If you want to block ping even when you are connected to home network, select "Block the connection" option and click "Next".
You can leave all the checkboxes ticked for the profiles and click "Next".
Give this new rule any name you like, for example "block ping" or "allow ping" and click "Finish".
The newly created firewall rule will take effect instantly without requiring a reboot.
Additional Note:
In the Windows operating system, selecting your network location as Home or Work will allow ping while the Public network profile will block ping. The above Windows Firewall rule will override the network location rule.
Fonte 4 maneiras de permitir ou Bloquear resposta de ping no Windows