Allow Ping in Windows Server 2019/2016 – GUI
1) Go to control panel and clear ‘Windows Firewall’. There are enough of ways to reach manipulate empanel on a Windows server. 2) Click on ‘Advanced Settings’. additionally, you can search for ‘Firewall’ in Windows search to reach the advance Firewall settings as under. 3) In the earlier Operating Systems, we need to create a firewall principle to allow ICMP echo packets. fortunately the rule is already there and we barely need to enable it. To enable the inbound principle that allowing ICMP packets, choose ‘Inbound Rules’. Locate the ‘File and Printer Sharing (Echo Request –ICMPv4-In’), right-click on it and blue-ribbon Enable Rule. That will allow incoming ping requests and answer to them without completely disabling Windows firewall servicing. As we enabled this predominate merely for IPv4 packets, we need to enable the separate similar rule for ICMPv6-In for IPv6 network. Below screenshot shows a Windows server started responding to ping request one the above rule was enabled.
In a like scenario, if a server is responding to ping/ICMP requests, but you need to stop it for fast security, you can just disable the lapp convention. Visit the Windows firewall advances settings and disable ‘File and Printer Sharing (Echo Request –ICMPv4-In’) rule .
Enable/Disable Ping by PowerShell Commands
Geeks like control lines, particularly Windows OS admins love PowerShell. Below commands can be used to enable/disable ping on Windows Server and Client Operating Systems. specially if you work on distant systems via PowerShell or you have the Server Core OS without GUI. Make sure to run below commands ‘as administrator’ on command immediate or PowerShell. Enable IPv4 – This will create an exception in the default Windows firewall rule .
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol="icmpv4:8,any" dir=in action=allow
For IPv6:
netsh advfirewall firewall add rule name="ICMP Allow incoming V6 echo request" protocol="icmpv6:8,any" dir=in action=allow
To disable ping on IPv4:
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=block
For IPv6:
netsh advfirewall firewall add rule name="ICMP Allow incoming V6 echo request" protocol=icmpv6:8,any dir=in action=block
As ping is a utilitarian utility to troubleshoot and find the presence of a network device, it is completely depending on the network security policies of your environment to enable or disable it. We mentioned the easy steps you can do by GUI and control prompt in this lead.