分类:software,System 日期:2020-12-22 作者:admin 浏览:115
# 切换root安装
su
yum -y install wget unzip netcat
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
vmess-tcp
cat /proc/sys/kernel/random/uuid
# 生成UUID
vi config.json
# 创建配置文件
{
"log": {
"loglevel": "warning"
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
}
]
},
"inbounds": [
{
"port": 1234, //更改端口号
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "", //填写UUID
"alterId": 64
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom"
},
{
"protocol": "blackhole",
"tag": "blocked"
}
]
}
写入以上配置并启动服务即可: v2ray start
或者 sudo systemctl start v2ray
最后找了n个测试vmess+tls+websocket失败!
相关协议