diff --git a/README.md b/README.md index 63be869..9db5f7d 100644 --- a/README.md +++ b/README.md @@ -200,12 +200,12 @@ You can take reference to [this article](https://iximiuz.com/en/posts/ssh-tunnel ### Simplest one On your remote host, start the wstunnel's server by typing this command in your terminal ```bash -wstunnel server ws://[::]:8080 +wstunnel server wss://[::]:8080 ``` This will create a websocket server listening on any interface on port 8080. On the client side use this command to forward traffic through the websocket tunnel ```bash -wstunnel client -L socks5://127.0.0.1:8888 --connection-min-idle 5 ws://myRemoteHost:8080 +wstunnel client -L socks5://127.0.0.1:8888 --connection-min-idle 5 wss://myRemoteHost:8080 ``` This command will create a socks5 server listening on port 8888 of the loopback interface and will forward traffic dynamically. `connection-min-idle 10` is going an optimization to create a pool of 10 connection connected to the server, to speed-up the establishement of new tunnels.