NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
Hello Nickson,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that your VTAP not working when NAT Gateway is enabled.
Your test show that this is not an NDR-specific issue: the same result occurs with multiple NDR products and an independent Windows collector, an any-to-any NSG rule does not change the result, and removing NAT Gateway restores bidirectional mirrored traffic. The evidence therefore points to a vTAP and NAT Gateway datapath-interoperability issue, but the exact Azure platform root cause has not yet been proven. vTAP is intended to stream traffic from a VM NIC to a collector, while NAT Gateway provides subnet-level SNAT for outbound connections and their return traffic. - https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-tap-overview, https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview
The best practice method is to:
- Disassociate NAT Gateway from the monitored VM’s subnet, or move the monitored VM to a dedicated subnet without NAT Gateway.
- Keep the existing vTAP source NIC and collector configuration unchanged and confirm that bidirectional capture is restored.
- If NAT Gateway must remain, use Azure Network Watcher packet capture on the source VM or a supported host-based NDR sensor as the temporary source of complete packet visibility. - https://learn.microsoft.com/en-us/azure/network-watcher/packet-capture-overview
- Perform synchronized packet captures on the source VM and vTAP collector, first without NAT Gateway, then with NAT Gateway, and finally after removing it again.
- Escalate the synchronized captures and exact UTC test times to Azure Support for vTAP backend investigation and Product Group confirmation. Azure Support can collect advanced resource diagnostics that are not accessible to the customer. - https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
Do not add Azure Firewall, UDRs, broad NSG rules, or additional NAT rules as a speculative fix. NAT Gateway does not require a UDR, and the customer has already demonstrated that relaxing the NSG does not restore the missing return copies. - https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview
After removing NAT Gateway from the monitored subnet, bidirectional vTAP visibility should return based on your existing A/B test. If NAT Gateway and vTAP must coexist, the permanent resolution requires Microsoft Internal Support to confirm and correct the Azure-managed replication behavior. Until that confirmation is received, the affected design should not be approved for production NDR monitoring.
I hope this is helpful. Please! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please do not close the thread by upvoting and accepting the answer if any part of it is helpful.