Hello @Raviraj Velankar ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know if ICMP protocol such as Echo Request, Echo Reply, trace-route is allowed on Azure VPN GW, Express Route GW, Azure firewall by default or not.
You can use ICMP protocol within Azure VNets.
And as of today, Inbound ICMPv4 pings are supported on Azure Load Balancer.
Now coming back to your question, traceroute will work in the following scenarios:
- VM to VM via Private IP address (this will appear as one hop if the two VMs are in the same VNet).
- VM to On-Premises via:
- VPN Tunnel
- Express Route Private Peering
- On-Premises to Azure via:
- VPN Tunnel
- Express Route Private Peering
- Traceroute to/from Internet:
- VM-to-public IP or public IP-to-VM will work, if there is an instance level public IP associated with the VM.
- ICMP pings to or from external IPs from VMs with only a pseudo-VIP will not work.
- For ICMP traceroute (via Windows or via Linux with -I specified), you need to ensure that you have an NSG created that allows ICMP and that your Windows Firewall is enabled for ICMP.
We recommend customers not to use ICMP to test Azure Firewall as it doesn't always log ICMP properly. You can use some other mechanism such as PSPING, TCPPING or RDP. But if you just want to test the exact path taken by a packet, you may be able to use tracert but with the above conditions in mind.
Refer: https://learn.microsoft.com/en-us/azure/firewall/overview#known-issues
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.