The answer depends on which load balancer you're using (Standard vs Gateway) and how it's configured.
Option 1: Standard Public Load Balancer → NVA - you're using a Standard SKU Public Load Balancer with an NVA (e.g., firewall) in the backend pool:
Inbound Traffic (From Internet to NVA)
- Destination NAT (D-NAT): Yes The load balancer maps the public frontend IP to the NVA's private backend IP.
- Source NAT (SNAT): No The original source IP (i.e., the client's public IP) is preserved for inbound connections. This allows the NVA to see the real client IP.
- Return path consideration: Return traffic must go back through the Load Balancer, or Azure will drop the packets due to asymmetric routing. Use User-Defined Routes (UDRs) to ensure symmetric traffic flow.
Option 2: Gateway Load Balancer (GWLB) → NVA - you're using a Gateway Load Balancer to insert an NVA transparently in the data path:
Traffic Handling
- No NAT (No D-NAT, No SNAT) GWLB does not modify source or destination IPs. Instead, it encapsulates packets using VXLAN and sends them to the NVA.
- The NVA receives original packets (inside the VXLAN envelope), meaning:
- Source IP is preserved
- Destination IP is preserved
- Return traffic path: Must go back through the GWLB, so the VXLAN headers can be removed and the connection preserved.
To summarize:
Feature | Standard Public Load Balancer | Gateway Load Balancer |
---|---|---|
Packet forwarding | Yes, via D-NAT | Yes, via VXLAN encapsulation |
Source NAT (SNAT)? | No (inbound traffic) | No |
Destination NAT (D-NAT)? | Yes | No |
Source IP preserved? | Yes | Yes |
Destination IP preserved? | No (it's NATed to backend IP) | Yes |
NVA receives original packet? | No (modified destination IP) | Yes |
Use case | Public IP → NVA (with NAT) | Transparent NVA insertion |
- Standard Public Load Balancer performs Destination NAT, preserves source IP, and requires symmetric routing.
- Gateway Load Balancer does not perform any NAT — it forwards encapsulated packets transparently to the NVA with both source and destination IPs intact.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin