mirror of https://github.com/cbeuw/Cloak
updated
This commit is contained in:
parent
fe1df62a80
commit
b1b08473b8
25
README.md
25
README.md
|
|
@ -17,8 +17,28 @@ Besides, Cloak allows multiple users to use one server **on a single port**. QoS
|
|||
2. Build and run cmd/keygen -k. The base64 string before the comma is the public key, the one after the comma is the private key
|
||||
3. Run cmd/keygen -u. This will be used as the AdminUID
|
||||
4. Put the private key and the AdminUID you obtained previously into config/ckserver.json
|
||||
5. Run `ss-server -c <path-to-ss-config> --plugin <path-to-ck-server-binary> --plugin-opts "<path-to-ckserver.json>"`
|
||||
5. /etc/shadowsocks-libev/config.json
|
||||
|
||||
```
|
||||
{
|
||||
"server":["[::0]","0.0.0.0"],
|
||||
"server_port":443,
|
||||
"password":"PASSWORD",
|
||||
"timeout":300,
|
||||
"user":"nobody",
|
||||
"method":"aes-128-gcm",
|
||||
"nameserver": "8.8.8.8",
|
||||
"nameserver": "8.8.4.4",
|
||||
"fast_open":false,
|
||||
"reuse_port":true,
|
||||
"no_delay":true,
|
||||
"plugin":"<path-to-ck-server-binary>",
|
||||
"plugin_opts":"<path-to-ckserver.json>"
|
||||
}
|
||||
```
|
||||
|
||||
6. screen
|
||||
7. ss-server
|
||||
### If you want to add more users
|
||||
1. Run cmd/keygen -u to generate a new UID
|
||||
2. On your client, run `ck-client -a -c <path-to-ckclient.json>` to enter admin mode
|
||||
|
|
@ -33,4 +53,5 @@ Note: the user database is persistent as it's in-disk. You don't need to add the
|
|||
1. Clone this repo and build cmd/ck-client
|
||||
2. Obtain the PUBLIC key and your UID (or the AdminUID, if you are the server admin) from the administrator of your server
|
||||
3. Put the public key and the UID you obtained into config/ckclient.json
|
||||
4. Connect to the server by running `ss-local -c <path-to-ss-config> --plugin <path-to-ck-client-binary> --plugin-opts "<path-to-ckclient.json>"`
|
||||
4. Connect to the server by running `ss-local -s SERVER_IP_ADDRESS -p 443 -k PASSWORD_HERE -m aes-128-gcm -b 127.0.0.1 -l 1080
|
||||
--plugin <path-to-ck-client-binary> --plugin-opts "<path-to-ckclient.json>"`
|
||||
|
|
|
|||
Loading…
Reference in New Issue