镖师 发表于 2024-8-19 18:32:59

有偿 x-ui 如何让不同端口走不同的socks

这个是我目前用的只能一个端口。   已搞定
{
    "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": {}
}

婷姐 发表于 2024-8-19 18:33:06

你这是实现分流吧

独家记忆 发表于 2024-8-19 18:33:35

不太明白你的意思。。

QQ截图20240819162518.png(32.87 KB, 下载次数: 0)3 小时前 上传
点击文件名下载附件

IT618发布 发表于 2024-8-19 18:34:02

我需要使用住宅代理。 每个端口使用不同国家的住宅代理。这种代理国内没办法直接访问所以才搭一个xui

Crystαl 发表于 2024-8-19 18:34:59

是的啊 分流

IT618发布 发表于 2024-8-19 18:35:20

用3xui.

拾光 发表于 2024-8-19 18:35:49

你这个需求建议使用NPS

拾光 发表于 2024-8-19 18:36:41

自己写配置文件.
tag 关联.1个端口 --> 1个server

IT618发布 发表于 2024-8-19 18:37:35

不是应该根据域名去分流吗,,然后落地不同的代理

IT618发布 发表于 2024-8-19 18:38:13

你是正解
页: [1]
查看完整版本: 有偿 x-ui 如何让不同端口走不同的socks

创宇盾启航版免费网站防御网站加速服务