diff --git a/README.md b/README.md index 96dfe3a..771b04d 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,21 @@ 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 --plugin --plugin-opts ""` - +5. { + "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":"", + "plugin_opts":"" +} ### 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 ` to enter admin mode @@ -33,4 +46,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 --plugin --plugin-opts ""` +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 --plugin-opts ""`