Deploy and configure an Azure Utility Gateway for load balancing and web site safety.


Azure Utility Gateway offers layer 7 load balancing with built-in Net Utility Firewall (WAF) capabilities, enabling site visitors distribution throughout backend servers whereas defending towards widespread net exploits like SQL injection and DDoS assaults. This information walks by way of deploying an Utility Gateway to front-end two Home windows Server IIS situations in an availability set.

 

 

Community Infrastructure Configuration

Step one you must take is to arrange your Azure community infrastructure for Azure Utility Gateway deployment. You are able to do this by performing the next steps:

Create Utility Gateway Subnet

  1. Navigate to Digital Networks and choose your IIS VNet
  2. Choose Subnets > Add Subnet
  3. Configure the subnet:
    • Title: app-GW-subnet
    • Beginning tackle: 10.0.1.0 (or subsequent out there subnet vary)
    • Depart different settings at defaults (no personal endpoint insurance policies or subnet delegation required)app-gateway-iis-vms-narrated-itopstalk.txt​

Configure NSG Guidelines for Backend Site visitors

  1. Choose the primary IIS VM’s Community Safety Group
  2. Create an inbound rule:
    • Supply: Utility Gateway subnet (10.0.1.0/24)
    • Service: HTTP
    • Present precedence and descriptive title
  3. Repeat for the second IIS VM’s NSG to permit site visitors from the Utility Gateway subnet on port 80app-gateway-iis-vms-narrated-itopstalk.txt​

Utility Gateway Deployment

As soon as the Azure community infrastructure is ready, you’ll be able to then deploy the applying gateway and configure community site visitors safety insurance policies.

Fundamental Configuration

  1. Seek for Utility Gateways within the Azure Portal
  2. Click on Create > Utility Gateway
  3. Configure fundamental settings:
    • Useful resource Group: Identical as IIS VMs
    • Title: (e.g., ZAVA-app-GW2)
    • Area: Identical as IIS VMs
    • Tier: Customary V2
    • IP Handle Sort: IPv4 solely
  4. Choose Configure Digital Community and select the IIS VNet
  5. Choose the Utility Gateway subnet created earlier
  6. Create a brand new public IPv4 tackle for the gateway frontend.

Backend Pool Configuration

  1. On the Backends web page, choose Add a backend pool
  2. Present a pool title
  3. Add each IIS VM personal IP addresses to the pool.

Routing Rule Configuration

  1. On the Configuration web page, choose Add a routing rule
  2. Configure the listener:
    • Present a rule title
    • Create a listener with a descriptive title
    • Protocol: HTTP
    • Port: 80
    • Listener sort: Fundamental
  3. Configure backend targets:
    • Goal sort: Backend pool
    • Backend pool: Choose the pool created within the earlier step
    • Create new backend settings with port 80
    • Configure elective settings (cookie affinity, connection draining) as wanted
  4. Specify a precedence for the routing rule
  5. Full the wizard to deploy the gatewayapp-gateway-iis-vms-narrated-itopstalk.txt​

Verification and Testing

  1. Navigate to Utility Gateways and choose your deployed gateway
  2. Copy the Public IP Handle from the overview web page
  3. Entry the general public IP in a browser and refresh a number of instances to look at load balancing between IIS-1 and IIS-2
  4. Navigate to Backend Swimming pools to view backend well being standing for troubleshooting.

Net Utility Firewall Safety

  1. In your Utility Gateway, navigate to Net Utility Firewall
  2. Choose Create an online software firewall coverage
  3. Present a coverage title
  4. Allow Bot Safety for enhanced safety
  5. Save the coverage
  6. Overview the coverage’s Managed Guidelines to verify OWASP Core Rule Set and bot safety guidelines are lively.

The Utility Gateway now distributes site visitors throughout your IIS availability set whereas offering enterprise-grade safety safety by way of built-in WAF capabilities.

Discover out extra at: https://be taught.microsoft.com/en-us/azure/application-gateway/overview

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles