How to check if Cloudflare is blocked in my country or not?

I don’t know if you are aware or not, but there are some reports that the government of Iran is actively blocking Cloudflare IP Adresses in some regions of Iran. For instance you can have a look here on Github:

  • https://github.com/net4people/bbs/issues/172

So, as a counter-measure I wanted to develop an app to check if Cloudflare IP Addresses, https://www.cloudflare.com/ips/ are blocked or not, something simple not a big project like OONI https://en.wikipedia.org/wiki/OONI.

And here is my problem. When I want to check the IPs in a specific subnet, for examlpe:

103.21.244.0/22

Some of them are already not pingable (or reachable), like:

103.21.245.0
103.21.245.1
103.21.245.2
103.21.245.3
103.21.245.4
103.21.245.5
103.21.245.6
103.21.245.7
103.21.245.8
103.21.245.9
...

So, how I can check Cloudflare availability in a specific network?

How are you testing? Pinging them wouldn’t be a good test as the blocks can often just be traffic to them over 80/443 is blacklisted rather than ICMP.

1 Like

My problem is the not all subnet is reachable via ICMP Pinging.

I pinged them using this command:

$ fping -gn 103.21.244.0/22

Which is accessible here: https://pastebin.com/raw/bquy6kNp

Yes, and like I said, there was never a guarantee they’ll be listening for ICMP traffic or responding to it.

The IPs on the /ips/ page are mostly for outgoing traffic to origins, not always for inbound traffic.

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