-
-
Notifications
You must be signed in to change notification settings - Fork 773
Guide for finding a clean Cloudflare IP
The largest CDN service provider in the world is Cloudflare, and you probably know; Due to the severe filtering of the Internet in Iran, there is a lot of disruption to its services because it is not possible for the filter to completely filter it, but it can cause disruption. Here, if you also use CDN Cloudflare services; You will be affected by these disorders. To reduce the impact of these disturbances, you should find clean IPs (IPs that are not disturbed).
Here are some ways of working for this issue.
Tip: Before starting, it is emphasized that all these tests must be done on the client system without connecting to VPN.
Mr. Bashsiz is an Iranian engineer who has developed a program called CFScanner, which can be used to test the list of Cloudflare IPs on different networks and reach the clean Cloudflare IPs.
This program is published in two versions, Linux and Windows. To do this, first download the desired version from here and then follow how to run it based on the desired operating system.
Download the program files and first see Mr. Bashsiz's explanation of how to run it in the video below (persian).
This program has prerequisites that must be installed in advance. jq git tput bc curl parallel
Then first clone it on your system with the following code.
git clone https://github.com/MortezaBashsiz/CFScanner.git
Go to the app download folder and run access to it.
cd CFScanner/bash
chmod +x ../bin/*
Download the config.real file.
curl -s https://raw.githubusercontent.com/MortezaBashsiz/CFScanner/main/bash/ClientConfig.json -o config.real
It is recommended to change the config.real file based on your configuration.
If you want to have your own configuration file, save it under a different name that will not change when the script is updated.
Go to the location of the downloaded script file and then run the script as shown below.
bash cfScanner.sh SUBNET DOWN threads tryCount config.real speed custom.subnets
PICTURE
For example:
bash cfScanner.sh SUBNET DOWN 8 1 config.real 100 custom.subnets
Finally, the test result is placed in the result
folder, which you can view and use. More information on the program wiki.
For the Windows version, install it after downloading the app.
There are some important files and folders that we need to know for running. See the picture below.
PICTURE
The contents of v2ray-config
folder here is our config for testing.
PICTURE
config.real file which is the main configuration information.
The config.json.template file is the config template file.
In the generated folder, a structure corresponding to our config is created and tested for each cloudflare IP.
It should be noted that the structure of this test is based on the vmess configuration, but vless and trojan can also be tested with it.
So complete the config.real file based on a vmess_ws config in your panel.
PICTURE
Finally, to start the test, you can specify the simultaneous test of IPs and press the Start Scan button.
PICTURE
In the Fastest IP found section, it shows the fastest available IP based on the lowest delay.
Recommendations:
- Be sure to edit the config.real file based on your server. It is also recommended
- Do not set the number of IP concurrency more than 8 to give a more accurate output.
Sometimes you may open the app and scan, but nothing is displayed; In this case, there are two modes:
- Host address or SNI related to the filtered configuration.
- You did not enter the configuration information correctly. For this case, you should open one of the structures placed in the generated folder and check whether the information of this structure is the same as your configuration or not.
To see the new settings of the Windows version, see this topic.
After finding a clean IP; You can register it with a dns record without a proxy. That is, create a subdomain on Cloudflare. Turn off the proxy and enter the IP.
PICTURE
If you need more information about the domain, click here.
Then in the Hiddify panel, you can put it in the CDN domain settings in the Force to use host field in the CDN configuration
. More details
PICTURE