Does Azure Firewall See Original Client IP When Using Azure Front Door ?

$@chin 320 Reputation points
2025-11-30T18:05:50.48+00:00

Is it useful to block original client IPs at Azure Firewall when Azure Front Door is in front of it ?

Client → Azure Front Door → Azure Firewall → backends....

In this design, Azure Front Door is the public entry point. The traffic then goes to Azure Firewall and finally to backend systems. I observed that Azure Firewall only receives connections from Azure Front Door’s POP IP addresses, and the firewall logs do not show the actual client’s public IP address. Instead, they show the Front Door IP as the source

Is there any scenario where Azure Firewall can see the actual client IP when Front Door is in front of it ?

How to preserve client IP with AFD ?

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

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-30T18:06:01.51+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Azure Firewall will not see the original client IP when Azure Front Door is in front of it. In your described architecture, Azure Front Door acts as the public entry point and forwards requests to Azure Firewall. As a result, Azure Firewall only receives connections from Azure Front Door’s Point of Presence (POP) IP addresses, and the logs will reflect these IPs as the source instead of the actual client IPs.

    To preserve the original client IP when using Azure Front Door, you can utilize the X-Forwarded-For header. Azure Front Door supports this header, which includes the original client IP address in the request it forwards to your backend services. However, Azure Firewall itself does not extract this information from the X-Forwarded-For header for logging or filtering purposes. Therefore, while the original client IP can be passed to backend systems, Azure Firewall will still only log the Front Door IP as the source.

    In summary, Azure Firewall cannot see the original client IP when Azure Front Door is in front of it, and there are no scenarios where it can do so unless the architecture is modified to allow the original IP to be captured and logged appropriately by the firewall.


    References:

    0 comments No comments

Your answer

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