全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 3177|回复: 20

[疑问] 如何实现通过中转机连接多台落地鸡?

[复制链接]
发表于 2023-4-29 18:31:30 | 显示全部楼层 |阅读模式
由于经常要用到不同的IP,比如我现在有3台落地VPS(VPS新加坡,VPS韩国,VPS英国), 1台速度快的中转机(日本鸡), 用x-ui 如何实现通过日本机想连哪个落地鸡就连哪个落地鸡啊。谢谢大佬指点, 日本鸡连本地想用vless协议,  日本鸡连3台落地的应该可以用vmess协议吧。
发表于 2023-4-29 18:32:26 来自手机 | 显示全部楼层
自定义outbounds了解下
 楼主| 发表于 2023-4-29 18:38:26 | 显示全部楼层
gupo 发表于 2023-4-29 18:32
自定义outbounds了解下

X-UI的协议我问了GPT,是下面这么写的,但是我没弄明白,本地的V2RAY,如何设置,按道理本地的v2ray,应该有配置3个服务器配置才对,分别对应3个不同的落地机
{
  "api": {
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ],
    "tag": "api"
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 62789,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "127.0.0.1"
      },
      "tag": "api"
    }
  ],
  "outbounds": [
    {
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "your_vps_ip_1",
            "port": your_vps_port_1,
            "users": [
              {
                "id": "your_vps_uuid_1",
                "alterId": 64,
                "security": "auto"
              }
            ]
          }
        ]
      },
      "tag": "vps1"
    },
    {
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "your_vps_ip_2",
            "port": your_vps_port_2,
            "users": [
              {
                "id": "your_vps_uuid_2",
                "alterId": 64,
                "security": "auto"
              }
            ]
          }
        ]
      },
      "tag": "vps2"
    },
    {
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "your_vps_ip_3",
            "port": your_vps_port_3,
            "users": [
              {
                "id": "your_vps_uuid_3",
                "alterId": 64,
                "security": "auto"
              }
            ]
          }
        ]
      },
      "tag": "vps3"
    },
    {
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "handshake": 10,
        "connIdle": 100,
        "uplinkOnly": 2,
        "downlinkOnly": 3,
        "statsUserUplink": true,
        "statsUserDownlink": true,
        "bufferSize": 10240
      }
    },
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  },
  "routing": {
    "rules": [
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked",
        "type": "field"
      },
     {
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ],
        "type": "field"
      },
      {
        "type": "field",
        "network": "tcp,udp",
        "domain": [
          "domain1.example",
          "domain2.example"
        ],
        "outboundTag": "vps1"
      },
      {
        "type": "field",
        "network": "tcp,udp",
        "domain": [
          "domain3.example",
          "domain4.example"
        ],
        "outboundTag": "vps2"
      },
      {
        "type": "field",
        "network": "tcp,udp",
        "domain": [
          "domain5.example",
          "domain6.example"
        ],
        "outboundTag": "vps3"
      }
    ]
  },
  "stats": {}
}
 楼主| 发表于 2023-4-29 18:44:09 | 显示全部楼层
gupo 发表于 2023-4-29 18:32
自定义outbounds了解下

我感觉应该在inbound那里要设置一下,设置3个端口,创建3个服务器配置,分别对应outbound那里的vps1 vps2 vps3
发表于 2023-4-29 18:44:56 | 显示全部楼层
只能域名分流连不同的落地,做不到想连哪个就连哪个
发表于 2023-4-29 18:46:55 | 显示全部楼层
楼上正解,当然你用ss的话可以用mmp-go靠密码分流。不论如何,你客户端是要配三个节点的。
发表于 2023-4-29 18:47:17 | 显示全部楼层
最简单的就是日本装个gost 3个端口中转3台鸡
 楼主| 发表于 2023-4-29 18:53:56 | 显示全部楼层
damoo 发表于 2023-4-29 18:47
最简单的就是日本装个gost 3个端口中转3台鸡

谢谢,我来学习下,还没用过gost
 楼主| 发表于 2023-4-29 19:35:44 | 显示全部楼层
colla 发表于 2023-4-29 18:44
只能域名分流连不同的落地,做不到想连哪个就连哪个

谢谢大佬指点,那就不用折腾这个方向了
 楼主| 发表于 2023-4-29 19:36:44 | 显示全部楼层
yuanyuexiaoni 发表于 2023-4-29 18:46
楼上正解,当然你用ss的话可以用mmp-go靠密码分流。不论如何,你客户端是要配三个节点的。 ...

谢谢指点
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-7 16:54 , Processed in 0.123106 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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