SCOM 2025
VPNs

Azure VPN connected but cannot ping

By Pascal Yardley · November 10, 2026 · 8 min
Azure VPN connected but cannot ping

Practical steps to diagnose and fix why an Azure VPN shows connected but ping fails.

Many users encounter a scenario where an Azure VPN shows as connected, yet ping (ICMP) fails to reach resources in the Azure VNet. This is a common pain point and usually isn’t a VPN tunnel issue at all. The fault often lies in firewall rules, network security groups (NSGs), or routing configurations that block ICMP, or in misconfigured VPN settings. Below is a practical, step-by-step guide to diagnose and fix the problem, with concrete checks you can perform.

VPN

What “connected but not pingable” typically means

  • ICMP is commonly blocked by default in Azure and many on-prem networks.
  • The VPN tunnel can be healthy while traffic is being filtered by firewall rules.
  • Routes may appear to be in place, but virtual network endpoints don’t have the expected allow rules.
  • The issue could be on the client side (PC firewall) or the server side (VM firewall or NSG).

Quick checklist to rule out common blockers

  • Check the VM’s firewall (Windows Firewall, UFW on Linux) to ensure ICMP is allowed.
  • Inspect the NSG attached to the VM’s network interface and subnet. Verify inbound/outbound ICMP rules.
  • Confirm that the VPN gateway/subnet routing is correct and that no custom route blocks ICMP.
  • Try alternative tests (TCP-based tests like ping via port 3389 is not ICMP, but you can test RDP port 3389 with a TCP connect test if allowed) to verify reachability beyond ICMP.
Azure VPN connected but cannot ping: Checklist

Verify the VPN type and the health of the connection

  • Identify the VPN type you’re using: Point-to-Site (P2S) or Site-to-Site (S2S). Each has different implications for routing and client configuration.
  • Check tunnel status in the Azure portal:
  • For S2S: ensure both tunnels are up, have no ongoing flaps, and that the local network gateway and VPN gateway are healthy.
  • For P2S: verify the client reconnects successfully, and the client VPN profile includes the correct address space and routes.
  • Look for any recent changes in the gateway configuration that could affect routing or access.

How to verify in the portal

  • Go to the VPN gateway resource, then check:
  • Tunnels: status, uptime, and last reset time.
  • Connections: active clients and their last activity.
  • Shared keys or certificate status (for S2S) if applicable.
  • Cross-check the VPN client’s assigned IP address against the VM’s subnet and route table to ensure traffic is directed correctly.

Check routing and reachability: routes, NSGs, and firewall

  • Ensure the VM’s NIC has a private IP in the VNet and that the route table (if you have a custom route table) directs traffic to the VPN gateway when appropriate.
  • Inspect NSGs:
  • Inbound rules should allow ICMP (protocol ICMP) if you want ping to work. Also ensure TCP/UDP ports you test are allowed if you’re using other probes.
  • Outbound rules should allow responses back to the client’s IP range.
  • VM Firewall:
  • Windows: check inbound rules for File and Printer Sharing (Echo Request) or a generic ICMP rule. Disable or expand as needed to test ICMP, then tighten after testing.
  • Linux: verify iptables/nftables or firewalld isn’t blocking ICMP. You can temporarily allow ICMP with appropriate rules for testing.
  • Routing tables:
  • If you have custom user-defined routes (UDRs), make sure there’s a route for the VPN client network to the VPN gateway and not to a wrong path.

Test methods that help pinpoint the problem

  • Ping from a host behind the VPN (another VM in the VNet, or from the on-prem side if S2S) to the target VM:
  • If ping fails but a TCP test to a known open port works, the issue is likely ICMP filtering.
  • Use TCP-based tests:
  • Try to establish a TCP connection to a port you know is open (RDP 3389, SSH 22) to test general reachability.
  • If TCP works and ICMP does not, focus on ICMP permissions rather than routing.
  • Use traceroute/tracert:
  • See where the traffic drops. If it stops at the VPN gateway or a particular hop, you may have a firewall or routing misconfiguration.

A practical, small table: common blockers and how to fix them

Blocker What to check How to fix Impact
ICMP blocked on VM VM firewall rules, iptables, ufw Allow ICMP echo requests; for Windows enable ICMPv4 Inbound; remove overly strict rules High, ICMP ping becomes possible
NSG blocks ICMP Inbound NSG on NIC/subnet Add or adjust rule: Allow ICMP from VPN client address space Medium-High, enables ping from VPN clients
VPN routing misconfigured Custom routes, user-defined routes Ensure routes send VPN client network traffic to the VPN gateway, not to LAN High, can break connectivity entirely
VPN gateway/firewall issues Gateway tunnel status, last reset Reset tunnel, verify shared keys/certificates; check gateway SKU and capacity Medium-High, tunnel health restored
On-host firewall on client or server Local firewall on client or test VM Temporarily allow ICMP; ensure not blocked by client OS Low-Medium, affects testing
IP addressing mismatch IP overlap, wrong subnets Verify VPN client IP pool, VNet address space, and VM IPs do not overlap High, routing confusion can occur
Azure VPN connected but cannot ping: Key points

A short, practical checklist you can follow now

  1. Confirm VPN tunnel health:
    • In Azure, check that the VPN gateway shows tunnels up and there are no errors.
    • If needed, reset the tunnel from both ends (Azure side and on-prem/client side).
  2. Validate network security:
    • Check NSGs attached to the VM NIC and subnet. Ensure ICMP is allowed from the VPN client subnet.
  3. Inspect VM-side firewall:
    • Windows: allow ICMP (Echo Request) inbound or disable the firewall temporarily for testing.
    • Linux: ensure ICMP is not blocked by iptables/nftables/firewalld.
  4. Confirm routing:
    • Ensure there is a route for the VPN client network to the VPN gateway.
    • If you’re using split-tunnel, verify that only desired traffic goes through the VPN and that the rest uses the normal route.
  5. Test with multiple methods:
    • Ping the VM from a VPN-connected client.
    • Use a TCP port test (e.g., RDP 3389 or SSH 22) to confirm reachability.
    • Run traceroute to see where the traffic stops.
  6. Review recent changes:
    • Any updates to NSGs, firewall rules, or VPN configuration can reintroduce ping failures.

When you might see “connected but ping fails” in common scenarios

  • P2S VPN with a client that has no route to the Azure VNet: the tunnel can stay up but you’re not routing traffic correctly.
  • S2S VPN where the on-prem firewall or router blocks ICMP or has a mismatch in networks that prevents translating the VPN’s address space to the on-site network.
  • A VM with a firewall that blocks ICMP even though the OS allows most traffic, making it seem like the VPN is failing when it’s actually the host firewall.

A quick comparison: ping vs other checks

Test type What it proves Typical blockers Quick fix example
ICMP ping Basic reachability (layer 3) ICMP blocked by firewall/NSG Allow ICMP in NSG and VM firewall
TCP connect (e.g., to 3389) Port-level reachability Port blocked by firewall, service not listening Open port and ensure service is listening; adjust NSG
Traceroute Path and hops, where traffic stops Routing or gateway block Fix route, or remove misconfigured firewall rules at offending hop
SSH/RDP session Application-level connectivity Service not started, firewall block, or authentication issues Enable/start service, verify credentials and port

Final recommendation

If your Azure VPN shows as connected but you cannot ping resources, start by methodically ruling out ICMP-specific blocks (firewalls and NSGs) while also validating that routing is correct for your VPN type. The most common culprits are:

  • ICMP being blocked by the VM’s firewall or NSG
  • Misconfigured or overly restrictive NSGs or route tables
  • A VPN tunnel health issue that masks as “connected” but isn’t carrying traffic to the right destinations

By following the steps above, you can isolate whether the issue is client-side, VM-side, or network-side, and apply the appropriate fix. If you’re still stuck after all checks, collect the gateway/tunnel logs, test results (including traceroutes and port tests), and share them in Azure support forums or with your network team to get targeted help.

VPN prices compared
VPNFrom / monthPlanFree planRefundAlipayWeChatUnionPayCryptoWebsite opens in ChinaTrustpilot
ZoogVPN$2.49/mo27 months: $59.99Yes7 days✓✓✓✓✓ Yes (2.5 s)4.2/5 (195 reviews)
NordVPN$3.49/mo27 months: $94.23No30 days?✗✓✓✗ Blocked4.2/5 (51,628 reviews)
ExpressVPN$3.00/mo28 months: $84No30 days✗✗✓✗✗ Blocked4.4/5 (29,706 reviews)
SurfsharkSee siteSee siteNo30 days✗✗✗✓✗ Blocked4.3/5 (31,823 reviews)
Proton VPN$2.99/mo12 months: $35.88Yes30 days✗✗✗✓✓ Yes (2.5 s)2.1/5 (1,040 reviews)
Astrill VPN$12.50/mo24 months: $300NoSee site✗✗✗✓✗ Blocked1.3/5 (110 reviews)
Private Internet Access$2.03/mo40 months: $81.2No30 days✗✗✗✗✗ Blocked4.2/5 (11,033 reviews)
CyberGhost$2.19/mo28 months: $61.32No45 days✗✗✗✓✗ Blocked4.0/5 (24,178 reviews)
PureVPN$1.69/mo60 months: $101.55No31 days?✗✗✓✓ Yes (2.6 s)4.4/5 (17,994 reviews)
AdGuard VPN$2.99/mo24 months: $71.76Yes30 days✓✗✓✓Official site blocked; our special link opens (2.3 s)4.3/5 (290 reviews)
Mullvad$5.61/mo€5/moNo14 days✗✗✗✓✗ Blocked3.2/5 (192 reviews)
Windscribe$5.75/mo12 months: $69YesSee site✗✗✗✓✗ Blocked4.7/5 (13,355 reviews)
StrongVPNSee siteSee siteNo30 days✓✗✗✗✗ Blocked4.4/5 (2,695 reviews)
LightXtreme 闪连$7.08/mo12 months: $84.99Yes30 days✓✓✓✓✓ Yes (2.3 s)No page

Prices checked 2026-11-10 on each vendor's pricing page (cheapest long plan, USD). Check the vendor's checkout for the final price.

Payment methods checked 2026-11-10 on each vendor's payment pages: all 14 take cards and PayPal; ✗ = not listed, ? = the vendor's own pages disagree.

China access: whether the official website opens from mainland China networks (tests the website only, not the VPN connection). Last checked 2026-11-11 04:07 Beijing time.

Trustpilot score and review count checked 2026-11-10.

© 2026 SCOM 2025 Media LLC. All rights reserved.