Tech - Windows Server 2022 - Allowing ICMP (Ping) Blocked?

Tech - Windows Server 2022 - Allowing ICMP (Ping) Blocked?

Honorable Mention: Alistair M!

Note: All this is done at your own risk!

Ever had that typical issue when troubleshooting?

Ah lets try and ping it!

Pinging -.-.-.- with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for -.-.-.-:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)

Bugger. BUT what about SMB?

Let's try good old \\-.-.-.-\c$

Bingo! Bango! We're off the races. Why can't I ping?

But due to Group Policy you can't edit/temporally turn off the firewall?

Open Command Prompt (As Administrator)

Execute:

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

Using netsh to allow ICMP on any protocol.

Pinging -.-.-.- with 32 bytes of data:
Reply from -.-.-.- : bytes=32 time<1ms TTL=128
Reply from -.-.-.- : bytes=32 time<1ms TTL=128
Reply from -.-.-.- : bytes=32 time<1ms TTL=128
Reply from -.-.-.- : bytes=32 time<1ms TTL=128

Ping statistics for -.-.-.- :
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms


Tags:

#windows #server #networking #ping #icmp