CloudFlare series--Customize the IP of the CDN node

Original URL: CloudFlare Series--Customizing the IP of CDN Nodes_IT Blog-CSDN Blog

Introduction

illustrate

        This article describes how CloudFlare manually specifies the CDN as CloudFlare's IP address.

Why manually specify the CDN IP?

Self-selected nodes are important for the following reasons:

  • The speed of accessing different CDN nodes in China varies greatly, and specifying a fast CDN IP can increase the speed.
  • CloudFlare's nodes are often blocked in China and cannot be accessed.

CloudFlare's custom CDN node IP can solve the problem of free tier line congestion to a certain extent, but there are also many risks that come with it. For example, the custom IP may fail, and some inexplicable errors may occur. It has been observed that the IP 1.0.0.1 is currently the most stable.

1. Register and log in to cloudflare and add a domain name

Generally, it is enough to use free ones, and those who have money can use paid packages.

2. Add or import parsing

3. Go to the domain name management office to modify the DNS of cloudflare

4. Change the domain name DNS back to the original DNS

The above is the normal access process of CloudFlare, and then we wait for CloudFlare to verify the access, and then we change the DNS of the domain name back to the original DNS. The reason for this is that we can choose the IP resolution below.

5. Select the appropriate cloudflare IP node

CloudFlare uses anycast (Anycast) technology CDN, so no matter which node your domain name resolves, it can be accessed normally and universally. So we only need to know the IP library of CloudFlare, and then choose a node that we think has better speed stability.

Cloudflare's IP segment whitelist address: https://www.cloudflare.com/ips-v4

173.245.48.0/20
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
141.101.64.0/18
108.162.192.0/18
190.93.240.0/20
188.114.96.0/20
197.234.240.0/22
198.41.128.0/17
162.158.0.0/15
104.16.0.0/13
104.24.0.0/14
172.64.0.0/13
131.0.72.0/22

For example, if we choose node 172.67.209.188, the ping value of local telecom test is around 180MS

6. Choose the IP of CloudFlare

After the selection is successful, we enter the original domain name resolution and directly resolve the selected CloudFlareIP.

7. Test results

After parsing, we wait for about 1 hour, and then ping locally, we can find that it can be directly parsed to the specified IP

other urls

cloudflare self-selected designated IP node tutorial - host it

Guess you like

Origin blog.csdn.net/feiying0canglang/article/details/128015254
cdn