4.11 Ensure 'Dynamic IP Address Restrictions' is enabled - maxConcurrentRequests

Information

Dynamic IP address filtering allows administrators to configure the server to block access for IPs that exceed the specified number of requests or request frequency.

Note: Ensure that you receive the Forbidden page once the block has been enforced.

Rationale:

IIS Dynamic IP Address Restrictions capability can be used to thwart DDos attacks. This is complimentary to the IP Addresses and Domain names Restrictions lists that can be manually maintained within IIS. In contrast, Dynamic IP address filtering allows administrators to configure the server to block access for IPs that exceed the specified request threshold. The default action Deny action for restrictions is to return a Forbidden response to the client.

Impact:

Clients will receive a forbidden response when the specified number of requests or request frequency is exceeded.

Solution

Open IIS Manager.

Open the IP Address and Domain Restrictions feature.

Click Edit Dynamic Restrictions Settings..

Check the Deny IP Address based on the number of concurrent requests and the Deny IP Address based on the number of requests over a period of time boxes. The values can be tweaked as needed for your specific environment.

OR

Enter the following command in PowerShell to configure:

Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -filter 'system.webServer/security/dynamicIpSecurity/denyByConcurrentRequests' -name 'enabled' -value 'True'

Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -filter 'system.webServer/security/dynamicIpSecurity/denyByConcurrentRequests' -name 'maxConcurrentRequests' -value <number of requests>

Default Value:

By default Dynamic IP Restrictions are not enabled.

See Also

https://workbench.cisecurity.org/benchmarks/13949

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7(8), CSCv7|9.5

Plugin: Windows

Control ID: 12adfcefe7885c3dbb5e8b334f3798c88afd60c0c5e1cbe19f424ecdb5a10c8f