question

AshwinD-9028 avatar image
0 Votes"
AshwinD-9028 asked AshwinD-9028 commented

Add IP Range - Azure Front Door WAF Custom Rule

Hi,

My requirement is to block all requests from a range of IP addresses.

This range of IP addresses will be added into a new custom rule.

However, I do not know the format in which an IP range can be added into the textbox (screenshot below)

I appreciate any help with this.

188082-image.png






azure-front-doorazure-web-application-firewall
image.png (1.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ChaitanyaNaykodiMSFT-9638 avatar image
0 Votes"
ChaitanyaNaykodiMSFT-9638 answered AshwinD-9028 commented

Hello @AshwinD-9028, Welcome to the Microsoft Q&A forum.

You have to add an IP range in CIDR format as shown below.

187930-image.png

If the IP address range you have cannot be added in a CIDR format, you can use AZ CLI or PowerShell to add list of IP addresses separated by space as documented here.

188113-image.png

If you do not have AZ CLI/PowerShell set-up in your local machine, you can use the Azure Cloud Shell via portal to run these commands.

Hope this helps! Please let me know if you have any additional questions. Thank you!


​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.



image.png (4.9 KiB)
image.png (17.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you @ChaitanyaNaykodiMSFT-9638!

It was not very obvious that I must use the CIDR format (the documentation could be improved slightly).

But indeed, it was my problem and now thanks to you, it is solved!

0 Votes 0 ·