全球主机交流论坛

标题: 已搞定 x-ui 如何让不同端口走不同的socks [打印本页]

作者: impolice    时间: 2024-8-19 15:22
标题: 已搞定 x-ui 如何让不同端口走不同的socks
本帖最后由 impolice 于 2024-8-19 18:54 编辑

这个是我目前用的只能一个端口。   已搞定
{
    "api": {
        "services": [
            "HandlerService",
            "LoggerService",
            "StatsService"
        ],
        "tag": "api"
    },
    "inbounds": [
        {
            "listen": "127.0.0.1",
            "port": 48316,
            "protocol": "dokodemo-door",
            "settings": {
                "address": "127.0.0.1"
            },
            "tag": "api"
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom",
            "settings": {}
        },
        {
            "protocol": "blackhole",
            "settings": {},
            "tag": "blocked"
        },
        {
            "tag": "stream",
            "sendThrough": "0.0.0.0",
            "protocol": "socks",
            "settings": {
                "servers": [
                    {
                        "address": "us.proxy.iproyal.com",
                        "port": 32325,
                        "users": [{
                            "user": "1111",
                            "pass": "xxxx_country-in",
                            "level": 0
                         }]
                    }
                ]
            }
        }
    ],
    "policy": {
        "system": {
            "statsInboundDownlink": true,
            "statsInboundUplink": true
        }
    },
    "routing": {
        "domainStrategy": "IPOnDemand",
        "rules": [
            {
                "inboundTag": [
                    "api"
                ],
                "outboundTag": "api",
                "type": "field"
            },
            {
                "ip": [
                    "geoip:private"
                ],
                "outboundTag": "blocked",
                "type": "field"
            },
            {
                "outboundTag": "blocked",
                "protocol": [
                    "bittorrent"
                ],
                "type": "field"
            },
         {
        "type": "field",
        "outboundTag": "stream",
        "network": "udp,tcp"
         }  
        ]
    },
    "stats": {}
}
作者: niic    时间: 2024-8-19 16:23
你这是实现分流吧
作者: wcg928    时间: 2024-8-19 16:26
不太明白你的意思。。

(, 下载次数: 0)
作者: impolice    时间: 2024-8-19 16:31
wcg928 发表于 2024-8-19 16:26
不太明白你的意思。。

我需要使用住宅代理。 每个端口使用不同国家的住宅代理。这种代理国内没办法直接访问所以才搭一个xui
作者: impolice    时间: 2024-8-19 16:39
niic 发表于 2024-8-19 16:23
你这是实现分流吧

是的啊 分流
作者: ray680    时间: 2024-8-19 17:15
用3xui.
作者: leglo    时间: 2024-8-19 17:31
你这个需求建议使用NPS
作者: sfss5362    时间: 2024-8-19 17:40
自己写配置文件.  
tag 关联.  1个端口 --> 1个server


作者: 等风来    时间: 2024-8-19 17:50
不是应该根据域名去分流吗,,然后落地不同的代理
作者: zsj1259    时间: 2024-8-19 17:56
sfss5362 发表于 2024-8-19 17:40
自己写配置文件.  
tag 关联.  1个端口 --> 1个server

你是正解




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4