v2ray websocks tls
This article is mainly a tutorial on CDN + WEBSOCKS.
Purpose: using CDN + V2RAY WEBSOCKS + TLS domain certificate key
can bring blocked IPs back to life.
Below, cloudflare cdn is used as an example.
Step one: point the domain name to your own server IP.
(Remember to click that little cloud so it turns black; this is to make adding the SSL
certificate to the server a bit faster.)
Step two: install and set up v2ray.
Below is the one-click script.
bash <(curl -s -L https://git.io/v2ray.sh)
Enter the script to install, then choose 4 WebSoscket +TLS for installation.
Then just keep pressing Enter; if it asks for Y, press Y, until it asks you to enter your domain name.
Remember to enter your own domain name there.
After success, the server configuration information will appear, something like this.
Step two: now go back to the cloudflare panel.
Go into that DNS page again and click the little cloud to turn it colored, enabling the CDN service.
Then switch to the SSL/TLS page and click FULL to enable site-wide SSL acceleration.
Now you can import the V2RAY configuration information from that server into your own V2RAY client to use it.
This method can theoretically enable access through all CDN website nodes.
The second method: install directly using websocks:
Step 1: Run the script and choose 3 to install using websocks, and use port 80
Step 2: Point the cloudflare domain name to the IP, then use proxy mode
Step 3: Import the node configuration, change the default IP to your domain name, and that’s it
Direct installation/update method for websock+tls+nginx+website (choose one of two)
Vmess+websocket+TLS+Nginx+Website
bash <(curl -L -s https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh) | tee v2ray_ins.log
Vmess + HTTP2 over TLS
bash <(curl -L -s https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install_h2.sh) | tee v2ray_ins_h2.log
How to start
Start V2ray: systemctl start v2ray
Stop V2ray: systemctl stop v2ray
Start Nginx: systemctl start nginx
Stop Nginx: systemctl stop nginx
Related directories
Web directory: /home/wwwroot/3DCEList
V2ray server configuration: /etc/v2ray/config.json
V2ray client configuration: ~/v2ray_info.txt
Nginx directory: /etc/nginx
Certificate files: /data/v2ray.key 和 /data/v2ray.crt





