13 C
Texas

How to enable and disable PING ICMP in Windows 10 Firewall

Hello! This time I’m going to talk to you about security in Windows 10. It is well known that the system offers multiple layers of security to keep the privacy of our information safe. Certainly, this entails control over network connections. These are really useful for exchanging information and sending data. However, sometimes these connections can fail and so it is imperative to get the error. One of the resources used for this task is PING. It is a basic Internet program that allows a user to verify that a particular IP address exists and can accept requests. This app verifies whether the IP address of a host is currently operational, and how long it takes to respond. Ping works by sending an Internet Control Message Protocol (ICMP) Echo Request to a specified interface on the network and waiting for a reply.

Additionally, it can be used for troubleshooting to test connectivity and determine response time. However, most administrator users consider the ICMP protocol to be potentially unsafe and prefer to block these calls. For this reason, the Windows 10 firewall by default has a security policy of blocking such requests. This is easy to check, trying to ping our computer from a remote machine, we’ll see the following message:

failed ping from a remote computer
failed ping from a remote computer

However, it is not advisable to completely block these calls. Therefore, here I show you how to enable and disable ping in Windows 10.

Enable ping in windows 10. Command line mode.

The first thing we need to do is to open a Command Prompt as administrators. Once there, we have to create a rule for IPv4 addressing and another for IPv6. All right, to create the first rule you just have to type the following command in the console:

- Advertisement -
netsh advFirewall Firewall add rule name="OSRadar Rule PING IPv4" protocol=icmpv4:8,any dir=in action=allow 

If everything was done correctly, the CMD should look like this:

Creating the exception for IPv4 addressing
Creating the exception for IPv4 addressing

Next, we will create the rule for IPv6 addressing:

netsh advFirewall Firewall add rule name="OSRadar Rule PING IPv6" protocol=icmpv6:8,any dir=in action=allow 
Creating the exception for IPv6 addressing
Creating the exception for IPv6 addressing

We have correctly applied the rules for the ping command. We can check that it works, pinging from a remote computer:

Ping successful
Ping successful

To disable the exception for IPv4 addresses, just type the following commanding in the CMD:

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

In the case of IPv6 addressing, the command to write will be the following:

netsh advFirewall Firewall add rule name="OSRadar Rule IPv6" protocol=icmpv6:8,any dir=in action=block 

Please note that you can choose the name you want for the rules. If you want to see every rule in the system in detail, just write the following in the terminal:

 netsh advFirewall Firewall show rule name=all 
CMD showing firewall rules
CMD showing firewall rules

Enable ping in windows 10. Graphic mode.

It is also possible to create specific rules to enable and disable ping by entering the Windows 10 Firewall Advanced Security Configuration. With this intention, just type Firewall on the search bar:

Open firewall with advanced security
Open firewall with advanced security

Immediately the Firewall options will be displayed. As we did before, we have to create a rule for IPv4 and another for IPv6.

Windows Firewall with advanced security options
Windows Firewall with advanced security options

So first, select the Inbound Rules option in the left column and right-click the mouse to create a New Rule:

Creating a new firewall rule
Creating a new firewall rule

A rule creation wizard will start. Please select Custom in the rule type and press Next to continue.

Select custom rule
Select custom rule

On the next screen select All programs and press Next to continue.

Select All programs
Select All programs

In the protocol type, select ICMPv4 and then click on customize.

Define protocol and Ports
Define protocol and Ports

In the pop-up screen activate the Specific ICMP types box and navigate until you activate the Echo Request option. Press accept to apply the changes.

Select Echo Request in Specific ICMP types
Select Echo Request in Specific ICMP types

Next, we can define which specific IP addresses this rule will apply, on the contrary, we will allow the requests of all the addresses. Once the selection is made, press next to continue.

Define IP direction to apply the rule
Define IP direction to apply the rule

Now select Allow the connection and press Next to continue

Choose Allow the connection
Select Allow the connection

In the following screen, we have to select when the new rule will be applied. Please check the 3 available options and press next to continue.

Select profile to apply the rule
Select profile to apply the rule

Finally, we only have to assign a name to the rule and press Finish to close the wizard.

Sets the name of the rule
Sets the name of the rule

Finally, we can see the rule created correctly. To create the exception for IPv6 addressing, we have to repeat the same process but in the protocol and ports window, we have to select ICMPv6.

Inbound rule correctly created
Inbound rule correctly created

To disable any of the created rules, just right-click on it and choose Disable Rule.

Disable rule in Windows Firewall
Disable rule in Windows Firewall

Conclusion

Finally, we have seen how to enable and disable ping in Windows 10. This will allow us to manage and administer our connections using this command. Finally, we have seen how to enable and disable ping in Windows 10. This will allow us to manage and administer our connections using this command. Consequently, we will be able to monitor the levels of security and data protection on our computers. This is all for now, before saying goodbye I invite you to review our tutorial on bash in Windows 10

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article