set email for user & dynamic port not supported in V5 config
What version of V2Ray are you using?
5.23.0
What's your scenario of using V2Ray?
updating my old v4 config to v5
What problems have you encountered?
in v4 config i can route traffic based on email. but in v5 config, only user id has been kept for vmess. there is no way to set email for a user
seems like it also unable to configure dynamic port in v5 config
also https://github.com/v2fly/v2ray-core/discussions/1944
What's your expectation?
keep the same fields as v4 for vmess
Please attach your configuration here
{
"inbounds": [
{
"port": 1000,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "id",
"email": "email"
}
],
"detour": {
"to": "dynamicPort"
}
},
"streamSettings": {
"network": "tcp"
},
"tag": "tcp"
},
{
"protocol": "vmess",
"port": "1000-2000",
"tag": "dynamicPort",
"allocate": {
"strategy": "random",
"concurrency": 3,
"refresh": 5
},
"streamSettings": {
"network": "tcp"
}
}
]
}
Client configuration:
not relevant
Please attach error logs here
no error
Please attach access log here
not relevant
Other configurations (such as Nginx) and logs here
not relevant
If V2Ray cannot start up, please attach output from --test command
not relevant
If V2Ray service is abnormal, please attach journal log here
not relevant
在v5中配置email是可用的,起码在我所使用的版本中是可用的。 我以前撰写的一个discussion可以证明email是可用的。 https://github.com/v2fly/v2ray-core/discussions/3357 而你提到的dynamic port的问题,我想你先得确保email在你的v2ray之中可用,然后才去查明dynamic port是否可用。
在v5中配置email是可用的,起码在我所使用的版本中是可用的。 我以前撰写的一个discussion可以证明email是可用的。 #3357 而你提到的dynamic port的问题,我想你先得确保email在你的v2ray之中可用,然后才去查明dynamic port是否可用。
are you sure about the config format you are using is v5? routing object (instead of router in v5 config) indicated that you are using v4 config
在v5中配置email是可用的,起码在我所使用的版本中是可用的。 我以前撰写的一个discussion可以证明email是可用的。 #3357 而你提到的dynamic port的问题,我想你先得确保email在你的v2ray之中可用,然后才去查明dynamic port是否可用。
are you sure about the config format you are using is v5?
routingobject (instead ofrouterin v5 config) indicated that you are using v4 config
As you said, I mixed v4 format with v5 format in my config file, because I once updated my v2ray to v5 from old version. Maybe you meant that I used v4 objects, so my v2ray ran in v4 mode. I read the v2fly documentation, and it shows that "allocate" is also a v4 object. I guess you had to mix v4 object in your config to meet your needs.So I don't think my last reply was a mistake.I mean, making the program work fine is most important, no matter which config version you use.
By the way, I tested your config on my server(of course, v5.28.0), which I guess is what you really wanted me to do.
# /bin/v2ray/v2ray api stats --server=127.0.0.1:48965
Value Name
1 1.73KB inbound>>>api>>>traffic>>>downlink
2 963.00B inbound>>>api>>>traffic>>>uplink
3 0 inbound>>>dynamicPort>>>traffic>>>downlink
4 0 inbound>>>dynamicPort>>>traffic>>>uplink
5 71.51MB outbound>>>freedom>>>traffic>>>downlink
6 6.40MB outbound>>>freedom>>>traffic>>>uplink
7 21.21KB user>>>[email protected]>>>traffic>>>downlink
8 16.86KB user>>>[email protected]>>>traffic>>>uplink
9 71.49MB user>>>[email protected]>>>traffic>>>downlink
10 6.39MB user>>>[email protected]>>>traffic>>>uplink
Total: 155.83MB
The results show that email works fine, but dynamic ports don't work. That's all.
在v5中配置email是可用的,起码在我所使用的版本中是可用的。 我以前撰写的一个discussion可以证明email是可用的。 #3357 而你提到的dynamic port的问题,我想你先得确保email在你的v2ray之中可用,然后才去查明dynamic port是否可用。
are you sure about the config format you are using is v5?
routingobject (instead ofrouterin v5 config) indicated that you are using v4 configAs you said, I mixed v4 format with v5 format in my config file, because I once updated my v2ray to v5 from old version. Maybe you meant that I used v4 objects, so my v2ray ran in v4 mode. I read the v2fly documentation, and it shows that "allocate" is also a v4 object. I guess you had to mix v4 object in your config to meet your needs.So I don't think my last reply was a mistake.I mean, making the program work fine is most important, no matter which config version you use.
By the way, I tested your config on my server(of course, v5.28.0), which I guess is what you really wanted me to do.
/bin/v2ray/v2ray api stats --server=127.0.0.1:48965
Value Name1 1.73KB inbound>>>api>>>traffic>>>downlink 2 963.00B inbound>>>api>>>traffic>>>uplink 3 0 inbound>>>dynamicPort>>>traffic>>>downlink 4 0 inbound>>>dynamicPort>>>traffic>>>uplink 5 71.51MB outbound>>>freedom>>>traffic>>>downlink 6 6.40MB outbound>>>freedom>>>traffic>>>uplink 7 21.21KB user>>>[email protected]>>>traffic>>>downlink 8 16.86KB user>>>[email protected]>>>traffic>>>uplink 9 71.49MB user>>>[email protected]>>>traffic>>>downlink 10 6.39MB user>>>[email protected]>>>traffic>>>uplink
Total: 155.83MB
The results show that email works fine, but dynamic ports don't work. That's all.
seems like you are confused with what "v5" is. the v5 i mentioned is means jsonv5 v2ray config fomat (v2ray run -format jsonv5 -c 1.json). there is no v4 mode or v5 mode.
your config is totally a v4 config to me. it works fine in v2ray version 5. the only problem is lacking new protocol support (such as mekya/httpupgrade). if you can really mix v4 and v5 config. can you tell me how can i "mix" a mekya inbound with other v4 config?
5.x内核不支持动态端口了,你可以看到配置再监控,但你查端口的实时流量,是都为0,都是走主端口,要用这个功能,得回退4.x内核
5.x内核不支持动态端口了,你可以看到配置再监控,但你查端口的实时流量,是都为0,都是走主端口,要用这个功能,得回退4.x内核
你是不是误解了什么?我和楼主是两个不同的人,我不用动态端口。楼主说现在5.x不支持动态端口,那他肯定知道4.x是支持的。不明白你说给谁看的。
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days