From 7ac89276bd0fedd8e470b6ef8ce63c17c75c7e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Er=C3=A8be=20-=20Romain=20Gerard?= Date: Thu, 4 Jan 2024 15:34:32 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.