Issue with Cloudflare WAF custom rule for my domain

I have encountered an issue while using Cloudflare’s WAF. I added a custom WAF rule for my domain to block access to the site for any IP addresses that are not included in a list of IPv4 and IPv6 address ranges. Therefore, I believe only the IP addresses that are in this list can access my website.

However, when I tried to access the site, I found that I was blocked. Upon checking the block page, I noticed that my IP address was within the list of allowed IPs.

Could you please help me understand why I was blocked and what I can do to resolve this issue? Thank you for your assistance.

Since new users can only put one embedded media item in a post., I’ll give the rest of images below.
Detail of custom rules:

IP range in the list:

Block page:

Related WAF log:

I think you want that to be a /48, not a /64. 2001:250:5002::/64 would be from 2001:0250:5002:0000:0000:0000:0000:0000 to 2001:0250:5002:0000:FFFF:FFFF:FFFF:FFFF, which wouldn’t contain 2001:0250:5002:8100:0000:0000:0002:14b9


That is, If I’m subnetting correctly today.

Thank you so much for pointing out my mistake regarding the IP addresses. I realize now that I had miscalculated them, which caused the issue. I appreciate your help and expertise in identifying the problem. I have corrected the IP address ranges and everything is working as expected now. Thank you again for your assistance!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.