-
比如说,想要同时使用 IPIfNonMatch 和 负载均衡器,使用如下配置: 客户端配置{
"outbounds": [
{
"tag": "proxy-1"
},
{
"tag": "proxy-2"
},
{
"tag": "direct",
"protocol": "freedom"
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{ "type": "field", "ip": ["geoip:cn"], "outboundTag": "direct" },
{ "type": "field", "domain": ["geosite:cn"], "outboundTag": "direct" }
],
"balancers": [
{
"tag": "proxy-balancer",
"selector": ["proxy"],
"strategy": { "type": "leastLoad" }
}
]
},
"observatory": {
"subjectSelector": [
"proxy"
],
"probeUrl": "https://www.google.com/generate_204",
"probeInterval": "1m",
"enableConcurrency": false
}
} 预期行为是没有规则被匹配的请求过 我的想法是 |
Beta Was this translation helpful? Give feedback.
Answered by
monkeylab
Mar 10, 2025
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
DHR60
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{ "type": "field", "ip": ["0.0.0.0/0", "::/0"], "balancerTag": "proxy-balancer" }
试试把这条放到rules最后