全球主机交流论坛
标题:
求教 VPS 中转 v2ray 配置文件写法
[打印本页]
作者:
pm3
时间:
2023-1-21 12:28
标题:
求教 VPS 中转 v2ray 配置文件写法
想用一个 San Jose 的 VPS 中转下 Toronto 的 VPS(San Jose 线路好很多 ),但是只希望其中几个 GeoIP 分流到 Toronto,好奇出站规则应该怎么写
Toronto 的 VPS 上是 vmess+ws+tls,只是不会写 San Jose VPS 上的出站规则,求教。
作者:
tobalu
时间:
2023-1-21 12:38
添加 outbounce,通过geosite分流是比较简单的
作者:
fatal
时间:
2023-1-21 14:15
v2也是lz发的吗
作者:
kimigao
时间:
2023-1-21 14:20
{
"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": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"tag": "zhuanfa",
"protocol": "vmess",
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": false
},
"wsSettings": {
"path": "ws"
}
},
"mux": {
"enabled": true,
"concurrency": 8
},
"settings": {
"vnext": [
{
"address": "yourip",
"port": 443,
"users": [
{
"id": "",
"security": "auto",
"alterId": 0
}
]
}
]
}
}
],
"policy": {
"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",
"outboundTag": "zhuanfa",
"domain": ["geosite:netflix"]
}
]
},
"stats": {}
}
欢迎光临 全球主机交流论坛 (https://443502.xyz/)
Powered by Discuz! X3.4