Share via

Unable to Access Web Application Despite IP Whitelisting in Azure WAF Policy

Shubham Sanap 120 Reputation points
2026-03-04T14:54:04.27+00:00

We are currently facing an issue with our Azure Front Door configuration.

We have whitelisted our public IP address in the Azure WAF policy associated with Azure Front Door. However, we are still unable to access the web application through the Front Door endpoint.

Azure Firewall
Azure Firewall

An Azure network security service that is used to protect Azure Virtual Network resources.


Answer accepted by question author
  1. Thanmayi Godithi 8,310 Reputation points Microsoft External Staff Moderator
    2026-03-04T15:27:50.3733333+00:00

    Hi @Shubham Sanap ,

    Thank you for reaching out on Microsoft Q&A forum.

    When you whitelist a public IP address in an Azure Front Door WAF policy, access can still fail if other Front Door or WAF conditions are blocking the request. Azure Front Door WAF evaluates the source IP it actually sees, not necessarily the IP shown on the client side. Microsoft documents that IP restriction rules should typically use the SocketAddr match variable, which represents the source IP seen by the WAF. If traffic is coming through a proxy, VPN, or corporate firewall, the visible public IP may differ from what the WAF evaluates, causing the rule not to match as expected. [learn.microsoft.com]

    Another common cause is custom rule logic and priority. For allow‑list scenarios, Microsoft recommends using a “block all except allowed IPs” pattern (for example, Does not contain with Block action), because rule evaluation stops when a matching rule is hit. If an allow rule is used incorrectly or has a lower priority than a broader block rule, traffic can still be denied even from a whitelisted IP. [learn.microsoft.com]

    To confirm whether the block is coming from WAF, we recommend checking WAF diagnostic logs in Log Analytics. These logs show the evaluated client IP, the rule that matched, and whether the request was blocked by WAF or forwarded to the backend. This is the authoritative way to determine why a request is denied.

    If the above information isn't helpfull or if you are stuck, please share the details requested over Private message.

    If the answer is helpful,please 'Accept the answer' and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.