How to make webapp access private

Syed Farhan Ahmed 0 Reputation points
2023-03-23T06:49:01.0466667+00:00

Hi All,

My Scenario is to make a single webapp as frontend and rest as a backend

Example: My website has 8 webapps all are publicly accessible, but I want to make the frontend app public and rest 7 to connect in a private way and no external user or link needs to access it except the public webapp. what are all the networking rules needed to be placed for my scenario?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,865 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
761 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 13,080 Reputation points
    2023-03-23T08:51:47.13+00:00

    To achieve your scenario, you can use Azure Private Link or Azure Private Endpoint, along with Azure Application Gateway, to create a secure and private connection between your frontend web app and the backend web apps.

    Here's a high-level overview of the steps to follow:

    1. Set up Azure Private Link or Private Endpoint for your backend web apps:
      • In each backend web app, create a Private Endpoint in the same virtual network as your frontend web app.
      • The Private Endpoint will establish a private IP address for each backend web app within the virtual network.
    2. Restrict access to your backend web apps:
      • In each backend web app, configure the Access Restrictions to allow traffic only from your virtual network.
      • You can add the frontend web app's outbound IP addresses to the allowed list as well, to ensure it can access the backend web apps.
    3. Set up Azure Application Gateway with a Web Application Firewall (WAF) for your frontend web app:
      • Create an Azure Application Gateway instance in the same virtual network as your frontend and backend web apps.
      • Configure the Application Gateway to use the private IP addresses of your backend web apps as the backend pool.
      • Set up the frontend listener and the routing rules to forward traffic to the appropriate backend web app based on the request.
      • Enable the WAF to protect your frontend web app against common web vulnerabilities.
    4. Update your DNS settings:
      • Configure your custom domain to point to the public IP address of the Azure Application Gateway.
      • Update the DNS settings of your backend web apps to use their private IP addresses.
    5. Test your setup:
      • Verify that your frontend web app can access the backend web apps using their private IP addresses.
      • Ensure that the backend web apps are not accessible from the public internet.

    By following these steps, you will create a secure and private connection between your frontend web app and your backend web apps, allowing only the frontend web app to access the backend web apps.

    0 comments No comments