In the Firewall, Is it possible to allow 1 ip address from a blocked country


#1

HI,

I would like to block a complete country from accessing our website, but i would like to allow 1 IP address to access the site.

is it possible to order the firewall settings to allow that IP address first.


#2

From what I understand of their implementation, an IP allow overrides a country block because an IP has a high degree of specificity and a country doesn’t.

In normal firewalls, order matters. For example:

Allow 192.168.1.1
Block 192.168.1.0/24

In this example, a request from 192.168.1.1 would be allowed but one from 192.168.1.2 would be blocked.

Block 192.168.1.0/24
Allow 192.168.1.1

In this second example, 192.168.1.1 and 192.168.1.2 would be blocked because a matching block rule would be found and applied before the firewall ever sees the Allow.

Unfortunately, the CF firewall doesn’t have this level of verbosity, but I’m willing to bet the back end system does, and they order it logically so allows happen before blocks. That’s how I would structure it. If a CF employee could chime in to confirm or explain the actual logic happening in the CF implementation, that’d be a help.


#3

I reread some of the documentation. It’s confirmed.

Whitelist: Whitelisting a visitor excludes them from all security checks (Browser Integrity Check, I’m Under Attack Mode, the WAF, etc). This is useful if a trusted visitor is blocked by security features. Whitelists take precedence over blocks. Whitelisting a country code does not prevent the request from bypassing the WAF.

Source: https://support.cloudflare.com/hc/en-us/articles/217074967-How-do-I-control-IP-access-to-my-site-

Hope this helps.


#4

Exactly what i was looking for. thanks for confirming it.

Much appreciated!


#5

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