VPN技术 · 2023年11月10日

让被墙的IP复活:v2ray + websocks + tls

v2ray + websocks + tls 让被墙的ip复活

v2ray  websocks tls

本文主要以CDN + WEBSOCKS 的教程

作用:通过CDN + V2RAY WEBSOCKS + TLS 域名证书秘钥的方法可以让被墙的ip复活

下面以cloudflare cdn为列子

第一步把域名解析到解析到自己的服务器ip(记得那个小云朵要点成黑色,这个是为了给服务器添加ssl证书的时候速度快点儿)

第二步添加搭建v2ray

下面是一键脚本

bash <(curl -s -L https://git.io/v2ray.sh)

输入脚本安装,然后选择4 WebSoscket +TLS安装然后一路一路回车改按Y就按Y,直到要输入自己域名的时候记得输入下自己的域名

成功后会出现服务器配置信息,比如这样子的。

第二步,现在回到cloudflare面板

再次进入那个DNS页面的小云朵点下变成彩色的开启CDN服务

然后切换到SSL/TLS页面点击那个FULL开启全站SSL加速就可以了

现在您可以把那个服务器配置的V2RAY配置的信息导入到您自己的V2RAY客户端上面就可以使用了

这个方法理论上所有CDN网站的节点都可以实现科学上网

第二种直接使用websocks的安装方法:

第一步:运行脚本并选择 3 使用websocks方式安装,并使用80端口

第二步:cloudflare 域名解析到ip然后使用proxy模式

第三步:导入节点配置,把那个默认的ip改成您的域名然后就可以了

直接安装websock+tls+nginx+website安装/更新方式(二选一)

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  

启动方式

启动 V2ray:systemctl start v2ray

停止 V2ray:systemctl stop v2ray

启动 Nginx:systemctl start nginx

停止 Nginx:systemctl stop nginx

相关目录

Web 目录:/home/wwwroot/3DCEList

V2ray 服务端配置:/etc/v2ray/config.json

V2ray 客户端配置:~/v2ray_info.txt

Nginx 目录:/etc/nginx

证书文件:/data/v2ray.key 和 /data/v2ray.crt

OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.