Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

[Bug]vlesss-ws多用户根据uuid分流失败 #83

Closed
qzydustin opened this issue May 12, 2022 · 7 comments
Closed

[Bug]vlesss-ws多用户根据uuid分流失败 #83

qzydustin opened this issue May 12, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@qzydustin
Copy link
Contributor

qzydustin commented May 12, 2022

Describe the bug【描述 bug】
vlesss-ws多用户
根据uuid分流失败

**Config file
服务端

[[listen]]
tag = "vlesss-1"
protocol = "vlesss"
users = [ 
    {user = "AAAAA"}, 
    {user = "BBBBB"} 
    ]
host = "0.0.0.0"
port = 443
insecure = false
fallback = ":80"
cert = "cert.pem"
key = "cert.key"
advancedLayer = "ws"
path = "/*****"

[[dial]]
tag = "direct"
protocol = "direct"
fullcone = true

[[dial]]
tag = "warp"
protocol = "socks5"
host = "127.0.0.1"
port = 40000

[[route]]
user = ["BBBBB"]
toTag = "warp"

客户端时v2rayN

当使用BBBBB连接时,并没有走warp通道

@qzydustin qzydustin added the bug Something isn't working label May 12, 2022
@qzydustin
Copy link
Contributor Author

qzydustin commented May 12, 2022

{"L":"INFO ","T":"220512 143451.492","M":"New Accepted Conn","connid":262663,"from":"*****","handler":"tcp+tls+ws+vless://0.0.0.0:443"}
{"L":"DEBUG","T":"220512 143451.561","M":"Try routing","connid":262663,"source":{"Addr":{"Network":"","Name":"ping.pe","IP":"","Port":80},"InTag":"vlesss-1","UserIdentityStr":"BBBBBBBB"}}
{"L":"DEBUG","T":"220512 143451.562","M":"Default Route","connid":262663,"source":"ping.pe:80","client":"direct","addr":""}

一直是走的Default route

@e1732a364fed
Copy link
Owner

收到。

这个我没测过,只是写了代码然后想了一下认为可行所以就发布了。果然我好垃圾啊!

@e1732a364fed
Copy link
Owner

不过,你测的是1.2.2 还是最新代码?最新代码可能解决了?
不过还是要我自己测一下。。。

@e1732a364fed
Copy link
Owner

啊 ,果然不好使,最新代码也一样。

我一下子就想到了原因: 没加任何 网络层过滤。

现在的代码的逻辑是,必须加什么 ip、域名 之类的限制,才会生效,否则仅仅 按 一个 fromTag 或者 user 都是不好使的。

@e1732a364fed
Copy link
Owner

e1732a364fed commented May 12, 2022

这回最新代码ok了。

@qzydustin
Copy link
Contributor Author

qzydustin commented May 14, 2022

[[route]]
domain = ["geosite:google"]
toTag = "warp"

[[route]]
user = ["BBBBB"]
toTag = "warp"

在这种情况下,上面的那个根据domain分流不生效。

好像是docker状态下无geosite文件造成的,我再测试一下

@qzydustin
Copy link
Contributor Author

确实是上面的问题,Dockerfile需要再改一下

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants