一元网络论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 292|回复: 0

Help, Xray分流总是乱跳IP.

[复制链接]

2万

主题

2万

帖子

6万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
60861
发表于 2024-7-1 02:02:49 | 显示全部楼层 |阅读模式
Problem: I have two vmess protocols (ports 10001, 10002), corresponding to two SK5 exit nodes. For instance, when I connect to port 10001, the exit IP is assigned from the one of 10002. Seeking help.
{
  "inbounds": [
    {
      "port": 10001,
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "123",
            "alterId": 0
          }
        ],
        "streamSettings": {
          "network": "tcp"
        },
        "tag": "vmess-in-1"
      },
      ...
      {
        "port": 10002,
        "protocol": "vmess",
        "settings": {
          "clients": [
            {
              "id": "456",
              "alterId": 0
            }
          ],
          "streamSettings": {
            "network": "tcp"
          },
          "tag": "vmess-in-2"
        }
      }
    ],
    ...
  ],
  "outbounds": [
    {
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "address": "8.217.161.4",
            "port": 29308,
            "users": [
              {
                "user": "123",
                "pass": "123"
              }
            ]
          },
          ...
        ],
        "tag": "socks-out-1"
      },
      ...
    },
    {
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "address": "128.1.97.145",
            "port": 5001,
            "users": [
              {
                "user": "123",
                "pass": "123"
              }
            ]
          },
          ...
        ],
        "tag": "socks-out-2"
      }
    ]
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "inboundTag": ["vmess-in-1"],
        "outboundTag": "socks-out-1"
      },
      {
        "type": "field",
        "inboundTag": ["vmess-in-2"],
        "outboundTag": "socks-out-2"
      }
    ]
  }
}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|一元网络论坛

GMT+8, 2024-9-29 03:34 , Processed in 0.085129 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表