Home > Software engineering >  How to set dynamicIpSecurity on Azure App Service
How to set dynamicIpSecurity on Azure App Service

Time:12-29

<security>
  <dynamicIpSecurity enableLoggingOnlyMode="false" enableProxyMode="true">
    <denyByConcurrentRequests enabled="true" maxConcurrentRequests="10" />
    <denyByRequestRate enabled="true" maxRequests="30" requestIntervalInMilliseconds="500" />
  </dynamicIpSecurity>
  <ipSecurity enableProxyMode="true" allowUnlisted="false" >
    <add allowed="true" ipAddress="1.2.3.4" subnetMask="255.255.255.255" />
  </ipSecurity>
  <requestFiltering>
    <requestLimits maxAllowedContentLength="524288000" />
  </requestFiltering>
</security>

The WebApp consists of ASP.NET 4.8. With this definition, if requests were submitted at the same time, more than 10 requests per 403 were expected to be rejected.

I would appreciate your support.

CodePudding user response:

  • I have created a app service with DynamicIpAddress by following below steps

  • Goto Advanced tools -> click on Go

enter image description here

  • Goto Site Extensions

enter image description here

  • Goto Gallery and Search for Dynamic and click on search -> click on and click on ok

enter image description here

enter image description here

  • Set the values ​​as below and click update settings

enter image description here

enter image description here

  • restart the application service, after updating the settings

enter image description here

  • Set the user and time according to the settings you updated in the app service

enter image description here

  • Copy the App link and open JMeter using the link below

enter image description here

  • I have passed 35 users only 30 users had entered the page we can adjust the number according to our needs.

enter image description here

  • Related