**在这个xray 配置中,可以实现: 单节点 多用户(根据xui用户邮箱判断) 指定socks全局路由出口(适用于tk直播,1拖N,或者反gpt钓鱼真实ip) 单节点 分流多域名,走多socks出口(用于解锁gpt、奈菲) 单节点 分流多ip,走多socks出口(用于解锁某些特定基于ip地址访问系统和网站) 也可以将默认出栈(最底部代码) 修改为ipv6或自适应出栈 { "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": [ { "tag": "ipv4-out", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv4" } }, { "tag": "ipv6-out", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv6" } }, { "tag": "ipv4and6-out", "protocol": "freedom", "settings": { "domainStrategy": "UseIP" } }, { "protocol": "freedom", "settings": {} }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" }, { "tag": "VPS1", "protocol": "socks", "settings": { "servers": [ { "address": "173.242.126.255", "port": 65531, "users": [ { "user": "admin", "pass": "pass1234567890." } ] } ] } }, { "tag": "VPS2", "protocol": "socks", "settings": { "servers": [ { "address": "47.242.17.255", "port": 65531, "users": [ { "user": "admin", "pass": "pass1234567890." } ] } ] } }, { "tag": "VPS3", "protocol": "socks", "settings": { "servers": [ { "address": "192.236.231.255", "port": 65531, "users": [ { "user": "admin", "pass": "pass1234567890." } ] } ] } }, { "tag": "tiktokvps1", "protocol": "socks", "settings": { "servers": [ { "address": "173.242.126.255", "port": 65531, "users": [ { "user": "admin", "pass": "pass1234567890." } ] } ] } }, { "tag": "tiktokvps2", "protocol": "socks", "settings": { "servers": [ { "address": "38.46.26.255", "port": 65531, "users": [ { "user": "admin", "pass": "pass1234567890." } ] } ] } } ], "policy": { "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "rules": [ { "inboundTag": ["api"], "outboundTag": "api", "type": "field" }, { "protocol": [ "bittorrent" ], "outboundTag": "blocked", "type": "field" }, { "ip": ["geoip:private"], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": ["bittorrent"], "type": "field" }, { "type": "field", "outboundTag": "tiktokvps1", "user": ["[email protected]"] }, { "type": "field", "outboundTag": "tiktokvps2", "user": ["[email protected]"] }, { "type": "field", "outboundTag": "VPS1", "domain": ["ipinfo.io","geosite:openai","openai.com","oaistatic.com","geosite:paypal","paypal.com","geosite:bing","geosite:adobe","bard.google.com","geosite:tiktok","geosite:paypal"] }, { "type": "field", "outboundTag": "VPS2", "domain": ["ip.sb"] }, { "type": "field", "outboundTag": "VPS3", "domain": ["ip.bi"] }, { "type": "field", "outboundTag": "VPS1", "ip": ["1.1.1.10","1.1.1.20"] }, { "type": "field", "outboundTag": "VPS2", "ip": ["2.2.2.20","2.2.2.20"] }, { "type": "field", "outboundTag": "VPS3", "ip": ["3.3.3.10","3.3.3.20"] }, { "type": "field", "outboundTag": "ipv4-out", "network": "tcp,udp" } ] }, "stats": {} }
除非定制, 不然geoip只支持国家代码
完整的是有的,但你用的是否有,就不好说了,一般可能你用的都是阉割定制版,你可以自己打包定制
xray网上一堆分流教程吧
geoip:所有欧洲国家
规则加进去
**在这个xray 配置中,可以实现:
单节点 多用户(根据xui用户邮箱判断) 指定socks全局路由出口(适用于tk直播,1拖N,或者反gpt钓鱼真实ip)
单节点 分流多域名,走多socks出口(用于解锁gpt、奈菲)
单节点 分流多ip,走多socks出口(用于解锁某些特定基于ip地址访问系统和网站)
也可以将默认出栈(最底部代码) 修改为ipv6或自适应出栈
{
"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": [
{
"tag": "ipv4-out",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv4"
}
},
{
"tag": "ipv6-out",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv6"
}
},
{
"tag": "ipv4and6-out",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
}
},
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"tag": "VPS1",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "173.242.126.255",
"port": 65531,
"users": [
{
"user": "admin",
"pass": "pass1234567890."
}
]
}
]
}
},
{
"tag": "VPS2",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "47.242.17.255",
"port": 65531,
"users": [
{
"user": "admin",
"pass": "pass1234567890."
}
]
}
]
}
},
{
"tag": "VPS3",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "192.236.231.255",
"port": 65531,
"users": [
{
"user": "admin",
"pass": "pass1234567890."
}
]
}
]
}
},
{
"tag": "tiktokvps1",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "173.242.126.255",
"port": 65531,
"users": [
{
"user": "admin",
"pass": "pass1234567890."
}
]
}
]
}
},
{
"tag": "tiktokvps2",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "38.46.26.255",
"port": 65531,
"users": [
{
"user": "admin",
"pass": "pass1234567890."
}
]
}
]
}
}
],
"policy": {
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": ["api"],
"outboundTag": "api",
"type": "field"
},
{
"protocol": [
"bittorrent"
],
"outboundTag": "blocked",
"type": "field"
},
{
"ip": ["geoip:private"],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": ["bittorrent"],
"type": "field"
},
{
"type": "field",
"outboundTag": "tiktokvps1",
"user": ["[email protected]"]
},
{
"type": "field",
"outboundTag": "tiktokvps2",
"user": ["[email protected]"]
},
{
"type": "field",
"outboundTag": "VPS1",
"domain": ["ipinfo.io","geosite:openai","openai.com","oaistatic.com","geosite:paypal","paypal.com","geosite:bing","geosite:adobe","bard.google.com","geosite:tiktok","geosite:paypal"]
},
{
"type": "field",
"outboundTag": "VPS2",
"domain": ["ip.sb"]
},
{
"type": "field",
"outboundTag": "VPS3",
"domain": ["ip.bi"]
},
{
"type": "field",
"outboundTag": "VPS1",
"ip": ["1.1.1.10","1.1.1.20"]
},
{
"type": "field",
"outboundTag": "VPS2",
"ip": ["2.2.2.20","2.2.2.20"]
},
{
"type": "field",
"outboundTag": "VPS3",
"ip": ["3.3.3.10","3.3.3.20"]
},
{
"type": "field",
"outboundTag": "ipv4-out",
"network": "tcp,udp"
}
]
},
"stats": {}
}