注册账号#
打开 Serv00 官网 https://www.serv00.com/ 注册账号,登录管理后台。
获取 IP#
绑定域名#
不使用 CF 加速可以跳过” 绑定域名 “和 “配置反向代理 “
进入 CF 的管理后台,绑定一个域名至服务器 IP,开启小云朵。
添加端口#
配置反向代理#
不使用 CF 加速可以跳过” 绑定域名 “和 “配置反向代理 “
1. 添加一个端口
2. 添加 CF 上绑定服务器 IP 域名,开启反向代理到你自己申请的端口。
开启权限#
第一步需要做的就是开启可以运行自己应用的权限。Additional services -> Run your own applications -> Enabled 如果不开启这一项,自己的用户目录下的所有文件都无法添加可执行权限。
配置 xray#
进入 xray 主页:https://github.com/XTLS/Xray-core/releases/latest
下载解压:Xray-freebsd-64.Zip
创建一个配置文件 config.json
修改 8964 至你自己申请的端口
修改成你自己的 UUID,可以用 https://1024tools.com/uuid 生成
{
"log": {
"loglevel": "info"
},
"dns": {
"servers": [
{
"address": "119.29.29.29",
"port": 53,
"domains": [
"geosite:cn"
]
},
{
"address": "1.1.1.1",
"port": 53,
"domains": [
"geosite:geolocation-!cn"
]
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 8964,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "fecc0ba6-f68e-408d-ae8e-fe27c25223fc",
"alterId": 0
}
],
"disableInsecureEncryption": false
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"acceptProxyProtocol": false,
"path": "/64",
"headers": {}
}
},
"sniffing":{
"enabled": false,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"outboundTag": "blocked",
"domain": [
"geosite:category-ads"
]
},
{
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "direct"
}
]
}
}
进入 File manager,在用户目录下新建一个名为 xray 的文件夹,并下载的 xray 和配置文件 config.json 都上传到此文件夹内。
SSH 登录#
使用任意 SSH 客户端登录,如 Termius
运行 xray#
根据你的上传的 xray 的路径,运行 xray
nohup ./xray/xray -c ./xray/config.json &
自动启动#
听说 Serv00 的主机会不定时重启,所以需要添加自启任务。
在 Panel 中找到 Cron jobs 选项卡,使用 Add cron job 功能添加任务,Specify time 选择 After reboot,即为重启后运行。Form type 选择 Advanced,Command 写 xray 文件的绝对路径,比如:
nohup /usr/home/username/xray/xray -c /home/username/xray/config.json > /dev/null 2>&1 &
务必按照你的实际路径进行填写。
配置小火箭#
直接连接
不使用 CF 加速可以跳过” 绑定域名 “和 “配置反向代理 “
CF 加速#
地址 可以修改为 CF 优选域名
原标题:Serv00 运行 Xray 代理,套 CF 加速
作者 :Derrick
链接接 👉→地址