Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

socks入站无法使用路由balancers

Open clcc2019 opened this issue 1 year ago • 3 comments

socks入站无法使用路由balancers

clcc2019 avatar Dec 22 '23 05:12 clcc2019

复现方法?

chise0713 avatar Dec 22 '23 18:12 chise0713

复现方法?

机器上一个网卡添加多个IP,出站sendThrough使用这些ip,然后走socks代理入站。测试socks无法随机使用这些ip出站(随机固定一个ip),使用http代理就正常

"inbounds":[
            {
                "listen":"127.0.0.1",
                "port":10809,
                "protocol":"socks",
                "tag":"socks"
            },
            {
                "listen":"127.0.0.1",
                "port":"10808",
                "protocol":"http",
                "tag":"http"
            }
        ]
        "outbounds":[
            {
                "sendThrough":"ipa",
                "protocol":"freedom",
                "tag":"tag_6c"
            },
            {
                "sendThrough":"ipab",
                "protocol":"freedom",
                "tag":"tag_3e"
            },
            {
                "sendThrough":"ipc",
                "protocol":"freedom",
                "tag":"tag_1e"
            },
            "balancers":[
                {
                    "tag":"ro",
                    "selector":[
                        "tag"
                    ]
                }
            ]

clcc2019 avatar Dec 23 '23 02:12 clcc2019

你配了socks的规则么?我是这样配置的: { "type": "field", "balancerTag": "apric", "inboundTag": [ "go-apric", "socks5" ] },

此外你的,balancers只导入了出口标签,你让它怎么随机轮询,无论怎么随机也只能在唯一的出口出去啊!

harvey-git avatar Jan 05 '24 09:01 harvey-git

no response

Fangliding avatar Apr 14 '24 13:04 Fangliding