cbeuw / Cloak

A censorship circumvention tool to evade detection by authoritarian state adversaries
GNU General Public License v3.0
3.29k stars 293 forks source link

can multiple users use same UID? #46

Open alexkatanda opened 5 years ago

alexkatanda commented 5 years ago

I tested openvpn+ck In one mobile it is normally worked, however in two mobile it can not work simultaneously.

cbeuw commented 5 years ago

A UID is supposed to be used across multiple devices by the same user, although each device needs its own ck-client instance. Did you connect both mobiles to the same instance or are there two separate clients running?

alexkatanda commented 5 years ago

Two client is using the same configuration and UID.

alexkatanda commented 5 years ago

Of course, in both mobiles are running two separate client. These are using the same configuration(server ip, domain, uid, public key...)

alexkatanda commented 5 years ago

Can i get current active UID list in ck-server?

cbeuw commented 5 years ago

So somehow 9 months ago when I first started this project I imported math/rand instead of crypto/rand in ck-client.go. That maybe intentional back then but later whenever i called rand.Read in ck-client.go it's actually the deterministic pseudo random generator being called. This caused the sessionId generated in ck-client.go being constant on startup. I've fixed it in https://github.com/cbeuw/Cloak/commit/d9d8be12dc92c436503fb570229030789464ad2b and it should solve the issue.

As for a list of active users, it's on the TODO list, though there's no time frame as to when I'll implement it

malikshi commented 5 years ago

can you share config openvpn server and cloak server? i dont really understand it,