Intermittent outbound UDP failure from Azure Central India VM despite allowed NSG and working NAT

praveen 0 Reputation points
2026-10-26T02:58:39.15+00:00

Hello Microsoft Azure Community,

I am investigating intermittent outbound UDP connectivity failures from an Ubuntu 24.04 virtual machine hosted in Azure Central India (Pune).

The VM acts as a self-hosted WireGuard VPN gateway for a mobile client. General internet connectivity, TCP communication, and most UDP connections work normally. However, specific UDP application endpoints receive repeated requests without any observed responses.

Network configuration

  • Azure region: Central India

VM operating system: Ubuntu 24.04

VPN: WireGuard with Linux IP forwarding and iptables MASQUERADE

Public IPv4: Directly associated with the VM network interface

NAT Gateway: None

Outbound routing: Azure system route to Internet

Network Security Group: Outbound UDP allowed

Packet-capture evidence

On 26 October 2026, a failed connection to 74.225.238.56:27785 (UDP) was recorded.

39 UDP requests were observed over approximately 19 seconds.

Each request carried a 25-byte UDP payload.

Packets entered the WireGuard interface and exited the VM's external network interface.

The Linux NAT mapping preserved the observed UDP source port.

No corresponding UDP response arrived at the VM during the capture.

Other UDP endpoints responded successfully during the same session.

A separate failed connection to 20.204.88.242:23884 was also recorded with an [UNREPLIED] Linux conntrack state.

Azure Network Watcher checks showed:

Next hop: Internet (System Route)

IP Flow Verify: Outbound UDP allowed by AllowInternetOutBound

No additional subnet NAT Gateway or custom route table

Some connections to similar application services succeed, while others fail.

Questions

Is there any Azure networking behavior that could cause destination-specific outbound UDP traffic or return packets to be dropped despite an allowed NSG and normal routing?

How can I verify whether these UDP datagrams are delivered beyond the Azure VM's network interface?

Are there additional Azure diagnostics available for tracing UDP packet delivery and return-path behavior?

How can I distinguish an Azure network-path problem from a destination server that receives the datagrams but does not respond?

I understand that unanswered UDP requests do not necessarily indicate an Azure network fault.

I can provide sanitized packet captures and exact timestamps if required.

Thank you for your technical guidance.Hello Microsoft Azure Community,

I am investigating intermittent outbound UDP connectivity failures from an Ubuntu 24.04 virtual machine hosted in Azure Central India (Pune).

The VM acts as a self-hosted WireGuard VPN gateway for a mobile client. General internet connectivity, TCP communication, and most UDP connections work normally. However, specific UDP application endpoints receive repeated requests without any observed responses.

Network configuration

Azure region: Central India

VM operating system: Ubuntu 24.04

VPN: WireGuard with Linux IP forwarding and iptables MASQUERADE

Public IPv4: Directly associated with the VM network interface

NAT Gateway: None

Outbound routing: Azure system route to Internet

Network Security Group: Outbound UDP allowed

Packet-capture evidence

On 26 October 2026, a failed connection to 74.225.238.56:27785 (UDP) was recorded.

39 UDP requests were observed over approximately 19 seconds.

Each request carried a 25-byte UDP payload.

Packets entered the WireGuard interface and exited the VM's external network interface.

The Linux NAT mapping preserved the observed UDP source port.

No corresponding UDP response arrived at the VM during the capture.

Other UDP endpoints responded successfully during the same session.

A separate failed connection to 20.204.88.242:23884 was also recorded with an [UNREPLIED] Linux conntrack state.

Azure Network Watcher checks showed:

Next hop: Internet (System Route)

IP Flow Verify: Outbound UDP allowed by AllowInternetOutBound

No additional subnet NAT Gateway or custom route table

Some connections to similar application services succeed, while others fail.

Questions

Is there any Azure networking behavior that could cause destination-specific outbound UDP traffic or return packets to be dropped despite an allowed NSG and normal routing?

How can I verify whether these UDP datagrams are delivered beyond the Azure VM's network interface?

Are there additional Azure diagnostics available for tracing UDP packet delivery and return-path behavior?

How can I distinguish an Azure network-path problem from a destination server that receives the datagrams but does not respond?

I understand that unanswered UDP requests do not necessarily indicate an Azure network fault.

Thank you for your technical guidance.

Azure Virtual Network
Azure Virtual Network

An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.

0 comments No comments

3 answers

Sort by: Oldest
  1. AI answer

    2026-10-26T02:59:12.33+00:00

    Yes. An allowed NSG rule and a system route to Internet only confirm that Azure is permitting the flow at the NSG and routing layers. They do not prove that the destination replied or that the return path is healthy.

    For this scenario, the supported Azure checks are:

    1. Confirm routing and NSG behavior
      • Next hop = Internet indicates Azure routing is sending the traffic toward the internet.
      • IP Flow Verify / AllowInternetOutBound indicates the NSG is not blocking the outbound UDP flow.
      • If there are no UDRs, NAT gateway, firewall, or NVA in the path, Azure-side policy blocking is less likely.
    2. Validate end-to-end connectivity from the VM Azure guidance for outbound connectivity is to test from the workload itself:
      • For Linux, use application-specific UDP tests.
      • Also perform TCP connection tests and application-layer tests where possible.
      • If some UDP endpoints succeed during the same session while specific endpoints remain unanswered, that pattern points more strongly to a destination-side issue, upstream filtering, or application behavior than to a general Azure outbound failure.
    3. Use packet capture and flow logging Azure guidance recommends:
      • Guest OS packet captures, or Network Watcher packet capture.
      • Virtual network (VNet) flow logs to analyze outbound traffic flows. These help confirm that packets are leaving the VM and whether Azure observed the connection flow. VNet flow logs provide source IP/port, destination IP/port, connection state, direction, and packet/byte counts. For NAT scenarios, the logged source IP and port are for the VM, not the NAT gateway.
    4. Check for intermediate filtering or routing issues Azure troubleshooting guidance calls out these common causes when expected replies do not return:
      • Routing issues
      • Upstream firewall restrictions
      • UDRs redirecting traffic to an unexpected next hop
      • NVA or firewall behavior if such a device exists in the path
    5. Differentiate Azure path issues from destination non-response The strongest practical distinction is:
      • If packet capture shows the UDP datagrams leaving the VM NIC, NSG/routing checks show allowed and Internet, and other outbound UDP flows work, then Azure VM local egress is functioning.
      • If no reply is seen back at the VM, the remaining likely causes are destination application behavior, destination-side firewalling, upstream filtering outside the VM, or asymmetric/failed return path.
      • If a simultaneous trace across source, middle device, and destination is available, Azure guidance says that when packets are not seen arriving at the destination trace, an NSG, UDR, or routing issue is likely; if packets arrive but no response is generated, the issue is more likely the destination application or firewall.
    6. Important UDP-specific limitation Azure documentation explicitly states that some two-way UDP protocols do not work through NAT without extra logic elements such as an ALG, because UDP does not establish a long-lived connection for return traffic. If any address translation exists anywhere between client and server, that can explain repeated outbound UDP with no return traffic.

    For the evidence already collected, the most useful next Azure-side diagnostics are:

    1. Run Network Watcher packet capture on the VM during a failing test.
    2. Review VNet flow logs for the VM/subnet to confirm outbound flow records and whether return traffic is observed.
    3. Re-check Effective routes on the NIC to ensure no unexpected route is present.
    4. If any firewall/NVA/VPN device is in the broader path, inspect its logs for denied or missing return packets.
    5. Compare one working UDP destination and one failing UDP destination at the same time window. If Azure routing and NSG results are identical but only one destination never returns traffic, that is strong evidence against a general Azure networking fault.

    A concise conclusion from the described data:

    • Azure NSG and routing checks support that outbound UDP is permitted.
    • Packet capture showing packets leaving the external interface supports that the VM is transmitting them.
    • The absence of replies for only certain destinations is more consistent with destination-side behavior, upstream filtering, or return-path issues than with a broad Azure outbound networking problem.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. praveen 0 Reputation points
    2026-10-26T18:42:52.86+00:00

    I have collected additional evidence using Azure Virtual Network Flow Logs (version 4) during a failed UDP application connection on 26 October 2026.

    The following connection was recorded:

    Source: 172.16.0.4:62082

    Destination: 74.225.201.74:16037

    Protocol: UDP (17)

    First recorded: 18:28:57 UTC

    NSG rule: DefaultRule_AllowInternetOutBound

    Continuing-flow statistics: 116 packets sent, 7,772 bytes sent, 0 packets received, 0 bytes received

    End record: No additional packets recorded

    During the same period, Azure recorded bidirectional UDP traffic on the WireGuard VPN and successful exchanges with other UDP endpoints, including port 9031.

    The evidence shows that Azure permitted the outbound flow and recorded outgoing traffic without corresponding return traffic.

    Could Microsoft networking specialists advise how to determine whether these UDP packets were delivered beyond Azure's network infrastructure, and whether Azure provides a diagnostic that can distinguish network-path loss from destination-side filtering or non-response?

    I understand that the absence of UDP responses does not by itself establish an Azure networking fault.

    Was this answer helpful?

    0 comments No comments

  3. Hemant Bharadwaj 340 Reputation points Microsoft Employee
    2026-10-27T05:28:44.6066667+00:00

    Your evidence already narrows this well: because other UDP destinations succeed from the same VM/session, this is less likely to be a broad NSG/routing problem and more likely destination/path-specific behavior.

    What is confirmed vs possible:

    • Confirmed from your data: outbound path is allowed (IP Flow Verify), next hop is Internet, packets leave the VM interface, and failures are destination-specific.
    • Possible causes: remote endpoint drops/filters, asymmetric return path, upstream middlebox behavior, or intermittent internet-path issues outside your VNet.

    Recommended diagnostics (safe, no disruptive changes):

    1. Keep VM-side captures on both interfaces (WireGuard + external NIC) with UTC timestamps.
    2. Run Network Watcher IP flow verify for the exact 5-tuple to reconfirm NSG/admin-rule decision.
    3. Run Connection troubleshoot from the VM to destination IP/FQDN to identify route/DNS/socket-level issues (note: this is not a full UDP packet-delivery proof).
    4. Correlate with destination-side logs (if you control it): did it receive the datagrams at the same UTC time?
    5. Test the same destination from a second source IP/region. If only one source path fails, that points to path/filtering rather than app logic.

    How to distinguish Azure-path vs destination behavior:

    • If packet capture shows egress from Azure VM and destination logs show no receive, problem is likely beyond guest firewall but not necessarily inside Azure fabric.
    • If destination receives packets but no replies are emitted, it is destination-side application/firewall behavior.
    • If destination emits replies but VM never sees them, investigate return-path filtering/asymmetry.

    Operational suggestions:

    1. Capture failed-flow tuple + request IDs + exact UTC windows for support.
    2. Open a support case with packet captures and Network Watcher outputs to request platform-side path correlation.
    3. For production resilience, add endpoint redundancy (alternate endpoints/regions) because UDP paths can be destination-sensitive.

    References:

    “If you find this answer helpful, please upvote it. If this resolves your issue, please mark it as the accepted answer so that it can help others in the community.”

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.