Bobcares

How to let Azure Allow ICMP

by | Jun 23, 2022

Azure allow ICMP echo requests within no time with this step-by-step guide by our experts. 

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Services.

Let’s take a look at how our Support Team helped our customers by demonstrating how to allow Azure ICMP echo requests.

How to let Azure Allow ICMP echo requests

Recently we had a few inquiries from our customers on how to enable ping or ICMP on an Azure virtual machine’s public IP address.

By default, Azure denies and blocks public inbound traffic to an Azure VM. Furthermore, this includes ICMP traffic. In fact, this improves security considerably.

Azure Allow ICMP

However, our Support Team has come up with a way to ping our Azure virtual machines. This involves the following steps:

  • Configure the NSG or Network Security Group to permit ICMP traffic.
  • Set up the OS to reply to ICMP echo or Ping requests.

How to configure NSG for Azure to allow ICMP echo requests

  1. To begin with, click Add a new inbound port rule for NSG.
  2. Then, change the Protocol to ICMP. Additionally, we can change the name and description of the rule. We can also limit the sources that can use this rule.
  3. Next, add the inbound security rule to the NSG with these commands:
    Get-AzNetworkSecurityGroup -Name "AzureVM-WIN01-nsg" | Add-AzNetworkSecurityRuleConfig -Name ICMP-Ping -Description "Allow Ping" -Access Allow -Protocol ICMP -Direction Inbound -Priority 100 -SourceAddressPrefix * -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange * | Set-AzNetworkSecurityGroup

How to set up the OS to answer the Azure ICMP echo request

By default, Windows Server does not allow Azure ICMP traffic. We can change this by running the following commands:

# For IPv4
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

Alternatively, we can enable Echo Request – ICMPv4-In or Echo Request ICMPv6-In rules under Advanced Security in Windows Firewall

This will enable us to ping out Azure Virtual Machine via a public IP address.

[Need assistance with a different issue? We are available 24/7.]

Conclusion

In brief, we observed how to allow Azure ICMP echo requests or ping requests by configuring the NSG and setting up the OS as well. Our skilled Support Engineers at Bobcares demonstrated how to set up our OS to answer ICMP requests with ease.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.