本文发布于 1540 天前,部分信息可能随时间变化。
1、准备两台服务器,一台用于中转,一台用于搭建xray。建议:中转服务器的物理距离离你比较近为首选
2、落地服务器已经搭建好xray面板
3、两台服务器分别做好域名解析并设置防火墙规则
4、配置服务器
- 更新系统
apt update
apt install screen #Debian/Ubuntu系统
yum install screen #centos系统
screen -S gost #创建新窗口
- 安装Wget
apt-get install wget
- 一键安装脚本
wget -N --no-check-certificate https://github.com/ginuerzh/gost/releases/download/v2.11.0/gost-linux-amd64-2.11.0.gz && gzip -d gost-linux-amd64-2.11.0.gz
- 将文件重命名为gost
mv gost-linux-amd64-2.11.0 gost
- 给gost文件添加可执行权限
chmod +x gost
5、中转服务器代码
./gost -L udp://:3333 -L tcp://:3333 -F relay+tls://ld001.example.com:8888 >> /dev/null 2>&1 &
6、落地服务器代码
(10)./gost -L relay+tls://:8888/127.0.0.1:443 >> /dev/null 2>&1 &
7、问题:SNI,要把落地机的域名添加上










