shadowzen
shadowzen

发现分享有趣内容

How to properly use Cloudflare CDN high-speed IP to accelerate V2Ray access?

The article was first published on the personal blog of the video agency , you can read it on the move to get more exciting content.

foreword

This article will explain and explain around a center, that is, how to correctly choose the high-speed ip of Cloudflare CDN to accelerate the V2Ray ladder built by its own server.

The overall operation is a bit confusing, but it is very simple after clarifying the idea. The core operation will use the domain name configured by the Cloudflare Workers reverse proxy server V2Ray, and then speed up access to our server by selecting the Cloudflare ip suitable for local broadband access. In fact, It is a bit similar to the domestic transfer acceleration introduced earlier, and it is a bit similar.

More importantly, Cloudflare acceleration is free! No need to be white.

illustrate

The local broadband environment is 200M mobile, and other operators or regions do not guarantee it.

The server vps is the previous old man, and it is very difficult to access under mobile, especially during peak hours.

V2Ray must use the websocket transport to use this method.

IP is best confirmed by ping. The lower the delay, the less packet loss the better.

Using Cloudflare Workers Reverse Proxy

After Cloudflare registered and logged in, select Workers to enter the control panel.

Create a Worker.


Then focus on modifying the custom content in the following script according to the actual situation, pasting, saving and deploying. The sign of success is to broadcast or open the Worker URL, and see if it is the same as the original after opening, and the same is successful.

 addEventListener(
    "fetch", event => {
        let url = new URL(event.request.url);
        url.hostname = "Domain name configured by yourself";
        url.protocol = "http or https";
        let request = new Request(url, event.request);
        event.respondWith(
            fetch(request)
        )
    }
)

Cloudflare preferred high-speed ip

This step is actually the most critical. Whether to accelerate or decelerate depends on whether the selected Cloudflare CDN ip is powerful. Two ideas are provided.

  • Program tool to filter high-speed ip

Before, I used a lot of scripts to ping and run the speed test. Later, I found that it was not stable. There are a lot of such tools. It is recommended to use better-cloudflare-ip to run it properly.

The disadvantage is that there are many IPs, many of which are not stable in domestic speed, and it feels a bit like looking for a needle in a haystack.

  • Find high-quality domain names and use the IP behind them

If a website uses Cloudflare CDN, we actually assign an IP node to Cloudflare when we visit its website. In other words, if the website opens quickly, the ip ping value behind it will also be very low. Use this ip The speed is certainly not slow.

The disadvantage is that such domain names are few and sometimes unstable, such as v2ex.com, etc.

Qv2ray client configuration V2Ray

The V2Ray client used here is Qv2ray , which is strongly used by Amway. You can copy an original V2Ray configuration and then change it slowly.

The host address is changed to the obtained work website. If the high-speed address is found, it is directly changed to the found address or domain name, and the port must be changed to 443.


In addition, set host|得到的work地址in the protocol settings - request header


If the original V2Ray configuration did not enable TLS, it needs to be enabled now, because our work address is https, and the obtained work address is filled in the server column.


Then test whether the access is successful.

experience comparison

The server is Russian gcore Lao Boli, the direct connection under the mobile broadband will go around Europe, with a delay of 3 to 400 ms, and the speed of the tubing in the evening peak is at most several thousand. It is estimated that the mobile QoS is serious during the evening peak.

Using the above method, the speed has rebounded after accelerating V2Ray, which can be regarded as a rescue.


write at the end

Judging from the results, the free Cloudflare is barely usable and can have a certain acceleration effect. If it is faster, you still have to use NAT VPS for domestic transfer, so that it can be done once and for all.

refer to

How to properly use Cloudflare to accelerate proxy software such as v2ray

more recommendations:

Recommend an overseas TV live and on-demand artifact - Watched APP

Recommend an easy-to-use video streaming media download tool

How to Unblock Netflix Singapore with Bricklayer VPS?

How to Force Watch Netflix 1080P HD Quality on Chrome Browser?

Recommend 2 easy-to-use drama websites

CC BY-NC-ND 2.0

Like my work?
Don't forget to support or like, so I know you are with me..

Loading...
Loading...

Comment