翻墙是个话题,今天这个话题就是利用服务器搭建自己翻墙通道,过程超简单
一、安装v/2/ray
准备:一台境外服务器
1、下载脚本安装v/2/ray
bash <(curl -L -s https://install.direct/go.sh) #执行之后开始自动下载安装
安装完成之后如下图:
默认安装好之后,会自己创建一个端口和ID,这个是随机的,可以在配置文件中自己设置
2、修改配置文件/etc/"v/2/ray"/config.json
配置如下,根据自己的需要进行修改:
{
"inbounds": [{
"port": 24806, #v/2ray监听的端口
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "cbd995b7-a780-4108-a545-a55f834c8ab7", #指定客户端填写的ID
"level": 1,
"alterId": 64 #指定客户端填写的额外的ID
}
]
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
},{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}],
"routing": {
"rules": [
{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
}
]
}
}
3、启动/v/2/ray服务
service /v/2/ray start
service /v/2/ray status
3、下载/v/2/ray客户端,图标如下
下载之后进行配置设置configure,设置如下,address是自己服务器IP,也可以做成域名,端口是/v/2/ray监听的端口,userID和alterid就是上面配置文件中索设置的,设置好之后,保存,就可以啦!
二、安装sserver