This commit is contained in:
Prajwal Koirala 2018-12-17 15:11:52 -05:00 committed by GitHub
parent fe1df62a80
commit 6bfa9a2a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 2 deletions

View File

@ -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 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 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 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 ### If you want to add more users
1. Run cmd/keygen -u to generate a new UID 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 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 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 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 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>"`