链式代理中的选择器
#3862
Replies: 1 comment 2 replies
-
试一下 loopback 配置示例: {
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"tag": "inb-client",
"protocol": "http",
"port": 8080,
"listen": "127.0.0.1",
"settings": {}
}
],
"outbounds": [
{
// 落地节点
"tag": "outb1",
"proxySettings": {
"tag": "loopback",
"transportLayer": true
}
},
{
// 中转节点
"tag": "relay1"
},
{
"tag": "relay2"
},
{
"tag": "relay3"
},
{
"tag": "loopback",
"protocol": "loopback",
"settings": {
// 虚拟 inbound tag 只用于 routing
"inboundTag": "inb-relays"
}
}
],
"routing": {
"balancers": [
{
"tag": "relays",
"selector": [
"relay"
]
}
],
"rules": [
{
"inboundTag": [
"inb-relays"
],
"balancerTag": "relays"
}
]
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
有这样一个场景,在链式代理中,我有一个落地机,对应着多个中转代理。 请看下面配置,现在有一个问题我落地机只有一台但是我不得不创建多个出站条目来对应中专代理的数量,这大大的增加了工作量,如果能像负载均衡那样自动选择出站或者支持正则匹配来实现一个落地机随机选择出站就可以大大减少配置量。
当然如果有其他的实现方式请告诉我,我翻阅过文档实在没有找到。
目前的方式
我所期望的方式
Beta Was this translation helpful? Give feedback.
All reactions