Forum Discussion
lafrankhu
Feb 02, 2024Copper Contributor
NAT GW operation
In a course, the below image is used to illustrate the operation of NAT GW. What I don't understand here is how asymmetric traffic is avoided. If an Azure resource is accessed over its associate...
- Feb 04, 2024I think this is explained briefly here: https://learn.microsoft.com/en-us/azure/architecture/networking/guide/well-architected-network-address-translation-gateway
So if the direction of the traffic is originally outbound, it will use the NAT GW. If it is inbound like connecting to LB FE this will use the LB FE to reply and avoid asymmetric routing.
anas86
Feb 04, 2024MCT
I think this is explained briefly here: https://learn.microsoft.com/en-us/azure/architecture/networking/guide/well-architected-network-address-translation-gateway
So if the direction of the traffic is originally outbound, it will use the NAT GW. If it is inbound like connecting to LB FE this will use the LB FE to reply and avoid asymmetric routing.
So if the direction of the traffic is originally outbound, it will use the NAT GW. If it is inbound like connecting to LB FE this will use the LB FE to reply and avoid asymmetric routing.
- lafrankhuFeb 04, 2024Copper Contributor
Thank you anas86 , this explains the operation clearly.
For completeness sake the article referenced puts it this way:
"NAT gateway will take precedence over a load balancer with or without outbound rules, and over public IP addresses assigned directly to VMs. Azure tracks the direction of a flow, and asymmetric routing will not occur. Inbound originated traffic will be translated correctly, such as a load balancer frontend IP, and it will be translated separately from outbound originated traffic through a NAT gateway. This separation allows inbound and outbound services to coexist seamlessly."