|

楼主 |
发表于 2023-4-29 18:38:26
|
显示全部楼层
X-UI的协议我问了GPT,是下面这么写的,但是我没弄明白,本地的V2RAY,如何设置,按道理本地的v2ray,应该有配置3个服务器配置才对,分别对应3个不同的落地机
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "your_vps_ip_1",
"port": your_vps_port_1,
"users": [
{
"id": "your_vps_uuid_1",
"alterId": 64,
"security": "auto"
}
]
}
]
},
"tag": "vps1"
},
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "your_vps_ip_2",
"port": your_vps_port_2,
"users": [
{
"id": "your_vps_uuid_2",
"alterId": 64,
"security": "auto"
}
]
}
]
},
"tag": "vps2"
},
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "your_vps_ip_3",
"port": your_vps_port_3,
"users": [
{
"id": "your_vps_uuid_3",
"alterId": 64,
"security": "auto"
}
]
}
]
},
"tag": "vps3"
},
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"policy": {
"levels": {
"0": {
"handshake": 10,
"connIdle": 100,
"uplinkOnly": 2,
"downlinkOnly": 3,
"statsUserUplink": true,
"statsUserDownlink": true,
"bufferSize": 10240
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
},
{
"type": "field",
"network": "tcp,udp",
"domain": [
"domain1.example",
"domain2.example"
],
"outboundTag": "vps1"
},
{
"type": "field",
"network": "tcp,udp",
"domain": [
"domain3.example",
"domain4.example"
],
"outboundTag": "vps2"
},
{
"type": "field",
"network": "tcp,udp",
"domain": [
"domain5.example",
"domain6.example"
],
"outboundTag": "vps3"
}
]
},
"stats": {}
} |
|