An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
Hello @David
If the WireGuard tunnel is established but ICMP (ping) isn't forwarded, the issue is typically related to routing, IP forwarding, or firewall policies, rather than WireGuard itself.
I'd recommend checking the following:
1. IP forwarding
- Ensure IP forwarding is enabled on the WireGuard gateway.
- On Linux, verify: sysctl net.ipv4.ip_forward It should return 1.
2. AllowedIPs configuration
- Confirm that the peer's AllowedIPs includes the remote subnet you're trying to reach, not just the WireGuard tunnel IPs.
- An incorrect AllowedIPs entry is one of the most common causes of traffic not being routed through the tunnel.
3. Routing
- Verify that both sides have routes for the remote network pointing to the WireGuard interface.
- Check the routing tables (ip route on Linux or route print on Windows).
4. Firewall / NSGs
- If Azure VMs are involved, ensure:
- Network Security Groups (NSGs) allow ICMP (or test with TCP if ICMP is intentionally blocked).
- The guest OS firewall (Windows Firewall or iptables/nftables) permits ICMP.
- Azure blocks some ICMP scenarios by default depending on the networking configuration, so a TCP connectivity test (Test-NetConnection or nc) can sometimes be a better validation.
5. Source/Destination Check (Azure)
If the WireGuard VM is acting as a router, verify that IP forwarding is enabled on the Azure NIC, otherwise Azure drops forwarded packets.
Could you provide a bit more information?
- Where is WireGuard running (Azure VM, Linux appliance, Windows, pfSense, etc.)?
- Which direction is failing?
- Client → Server
- Server → Client
- LAN ↔ LAN through the tunnel
- Can the peers successfully complete the WireGuard handshake (wg show)?
- Are only ICMP packets failing, or does TCP traffic (SSH, RDP, HTTP) also fail?
That will help determine whether this is a routing issue, a firewall issue, or an Azure networking configuration issue.
Please "Accept the Answer" if this information helped you. This will help us and others in the community as well.