Hi EL YACOUBI Mounir,
Thanks for reaching out in Microsoft Q&A forum,
I need to understand the traffic flow for an Azure load balancer. my concern it's about the return traffic(reply from the backend), witch IP the client will see from the reply of the server? it's the backend server IP or the frontend IP address?
For an Azure Load Balancer (both Public and Internal), the client sees the frontend IP address (VIP) as the source of the server’s reply, not the backend VM’s private IP. This is true for normal configurations as well as for Internal Load Balancer‑only scenarios.
How traffic flows
- Inbound: The client sends traffic to the Load Balancer frontend IP. The load balancer performs DNAT, changing the destination IP to the backend VM’s IP.
- Backend processing: The VM receives the packet with the frontend IP as the original destination, but the target at the OS level is its own IP.
- Return path: On the way back, Azure’s SDN stack rewrites the source IP back to the frontend IP (VIP). From the client’s perspective, the reply always appears to come from that frontend IP, not from the backend VM’s IP.
Effect of Floating IP (DSR)
- When Floating IP is disabled, the return traffic is SNAT’d so the client clearly sees the frontend IP as source and the backend IP stays hidden.
- When Floating IP is enabled, the backend VM can respond directly using the frontend IP (Direct Server Return), but the client still sees the frontend IP as the source of the reply; only the path may bypass the load balancer.
Official documentation references
Kindly let us know if the above helps or you need further assistance on this issue.
Please do not forget to
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.