V2ray-core: V2Ray多用户配置的正确姿势究竟是怎样?

Created on 3 Nov 2017  ·  20Comments  ·  Source: v2ray/v2ray-core

SS目前被针对太狠,换v2ray一试,非常好用,除了json配置方式上有时候粗心会出坑,总得来说一切都很顺利就配置好使用了。包括3种不同类型的传输配置,可以说是目前科学上网工具界的先行者,唯一就是客户端生态环境稍微弱,还有就是始终不明白vmess协议的多用户究竟该如何配置,alterid究竟是个啥意思?同一个uuid,不同的email区分用户?有没有多用户管理接口?也没找到相应的文档说明。需要多用户功能,主要是想稍微配置多几个账户和朋友一起使用。

Most helpful comment

"clients": [
  {"id": "xxxx", "alterId": 64},
  {"id": "yyyy", "alterId": 64}
]

All 20 comments

如果是多用户的话,多个uuid要怎么书写呢?使用{},用,隔开?

On Sun, Nov 5, 2017 at 4:15 AM, BEN notifications@github.com wrote:

https://www.v2ray.com/chapter_02/protocols/vmess.html

https://toutyrater.github.io/basic/vmess.html


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/v2ray/v2ray-core/issues/679#issuecomment-341926632,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATfMTGrBVkhQzs0nRBTNaeY4gpDLZ8Q2ks5szMXOgaJpZM4QRUsK
.

没明白你的字面意思 画个拓扑草图看看

按照文档,uuid用来区分不同的用户,那么如果是多用户,每个用户需要一个id,此时配置文件中就会出现多个uuid。在这样的情况下,多个uuid要怎么书写呢?是{uuid1,
uuid2, uuid3,......}的形式吗?

On Mon, Nov 6, 2017 at 7:02 PM, BEN notifications@github.com wrote:

没明白你的字面意思 画个拓扑草图看看


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/v2ray/v2ray-core/issues/679#issuecomment-342116130,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATfMTHRIV3cBJX-AXqOTh11yndNebkJhks5szudSgaJpZM4QRUsK
.

"clients": [
  {"id": "xxxx", "alterId": 64},
  {"id": "yyyy", "alterId": 64}
]

OK,多谢老大

On Mon, Nov 6, 2017 at 9:52 PM, DarienRaymond notifications@github.com
wrote:

clients: [
{id: "xxxx", alterId: 64},
{id: "yyyy", alterId: 64}
]


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/v2ray/v2ray-core/issues/679#issuecomment-342154297,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATfMTB_uqFzz6JNtn4YCRcwmJsfMs1iVks5szw8VgaJpZM4QRUsK
.

"clients": [
{"id": "xxxx", "alterId": 64},
{"id": "yyyy", "alterId": 64}
]

新添加的id,无效,提示500 Internal Privoxy Error 不知道,新加id还要在哪里设置

alterid究竟是个啥意思?

alterId 参数,这个参数主要是为了加强防探测能力。理论上 alterId 越大越好,但越大就约占内存(只针对服务器,客户端不占内存),所以折中之下设一个中间值才是最好的。那么设多大才是最好的?其实这个是分场景的,我没有严格测试过这个,不过根据经验,alterId 的值设为 30 到 100 之间应该是比较合适的。alterId 的大小要保证客户端的小于等于服务器的。

config.json这个配置文件没有用,修改了里面的内容没有反应,然后我把这个文件删除都还可以正常使用

@changjiangblog
很显然是多用户共用一个端口
因为真实的web服务器都只开一个端口

如果多用户共用一个端口,可不可以分开用户统计流量出来?

config.json这个配置文件没有用,修改了里面的内容没有反应,然后我把这个文件删除都还可以正常使用

我也有这样的情况,你是怎么解决的?

create new UUID

cat /proc/sys/kernel/random/uuid

example config : multi port , multi user

{
  "inbounds": [{
    "port": 1234,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "UUID",
          "level": 1,
          "alterId": 64
        },
        {
          "id": "UUID",
          "level": 1,
          "alterId": 64
        }
      ]
    }
  },
 {
    "port": 1235,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "UUID",
          "level": 1,
          "alterId": 64
        },
        {
          "id": "UUID",
          "level": 1,
          "alterId": 64
        }
      ]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  },{
    "protocol": "blackhole",
    "settings": {},
    "tag": "blocked"
  }],
  "routing": {
    "rules": [
      {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "blocked"
      }
    ]
  }
}

添加多账户的目的是什么?

新手求问 为什么不能多个人用一个uuid。。。

添加多账户的目的是什么?

新手求问 为什么不能多个人用一个uuid。。。

开机场呗,监测限制流量,卖钱

config.json这个配置文件没有用,修改了里面的内容没有反应,然后我把这个文件删除都还可以正常使用

我也有这样的情况,你是怎么解决的?

Reload配置文件

config.json这个配置文件没有用,修改了里面的内容没有反应,然后我把这个文件删除都还可以正常使用

我也有这样的情况,你是怎么解决的?

保存完配置记得要restart v2ray

如果仅仅是和朋友共用一个v2ray,不求各类统计,需不需要使用不同的uuid?两台主机同时使用同一个uuid连接服务端会不会出现错误?

如果仅仅是和朋友共用一个v2ray,不求各类统计,需不需要使用不同的uuid?两台主机同时使用同一个uuid连接服务端会不会出现错误?

完全可以,
我理解中的uuid只是用来区分用户的, 如果不需要做区分多个终端可以用同一个

Was this page helpful?
0 / 5 - 0 ratings