- cat /etc/v2ray/config.json 打开配置文件,查看相关配置文件
- cat /proc/sys/kernel/random/uuid 再创建一个用户 id
- vi /etc/v2ray/config.json 输入 i 进入编辑模式 , 复制inbounds[ ]中的内容
- 按esc推出,输入:号,退出编辑状态,然后输入wq,保存并退出
- systemctl restart v2ray 重启V2Ray服务
{
"inbounds": [{
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "UUID",
"level": 1,
"alterId": 64
},
{
"id": "UUID",
"level": 1,
"alterId": 64
}
]
}
},
{
"port": 1235,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "UUID",
"level": 1,
"alterId": 64
},
{
"id": "UUID",
"level": 1,
"alterId": 64
}
]
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
},{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}],
"routing": {
"rules": [
{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
}
]
}
}