Azure Firewall DNAT rules - SNAT

Peter Stieber 245 Reputation points
2025-08-13T10:39:40.98+00:00

I am looking at this example on the right where the firewall applies SNAT when a DNAT rule is matched. How does it decide whether to change the source IP to its public or private IP address?

Diagram of asymmetric routing and the workaround solution.

If the load Balancer was internal then it would change the source IP to its private IP address. Is it based on the IP address I am translating it to ? If translated IP is public then FW changes source to its public and if it is private then FW changes source to its private IP address (address from firewall subnet) ?

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
{count} votes

Your answer

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