How to limit access to Web App with WAF (detection mode) and Azure Firewall?

Mohsen Akhavan 791 Reputation points
2023-06-09T08:37:00.4333333+00:00

Based on this reference, I used Azure Application Gateway (WAF) before Azure Firewall. This is my scenario.

User's image

I need to limit access to the web app with specific IPs. I can do with "Custome Role" in WAF policy and my WAF should be "Prevent" mode.
Is there any way to allow access to the web app based on the client's IP without switching to the "Prevent" mod on WAF? with the Firewall or App Restriction?

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
677 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,016 questions
Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,078 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,895 questions
{count} votes

Accepted answer
  1. AirGordon 7,125 Reputation points
    2023-06-09T09:20:49.08+00:00

    The simplest way is to leverage a Network Security Group on the Application Gateway subnet, create an inbound rule to specify the IP and another rule to deny other traffic.

    As you have Azure Firewall in your architecture, you could also leverage this by creating a rule.


0 additional answers

Sort by: Most helpful

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.