Update README.md
This commit is contained in:
parent
0001afc6af
commit
7ac89276bd
1 changed files with 2 additions and 2 deletions
|
@ -200,12 +200,12 @@ You can take reference to [this article](https://iximiuz.com/en/posts/ssh-tunnel
|
||||||
### Simplest one <a name="simple"></a>
|
### Simplest one <a name="simple"></a>
|
||||||
On your remote host, start the wstunnel's server by typing this command in your terminal
|
On your remote host, start the wstunnel's server by typing this command in your terminal
|
||||||
```bash
|
```bash
|
||||||
wstunnel server ws://[::]:8080
|
wstunnel server wss://[::]:8080
|
||||||
```
|
```
|
||||||
This will create a websocket server listening on any interface on port 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
|
On the client side use this command to forward traffic through the websocket tunnel
|
||||||
```bash
|
```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.
|
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.
|
`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.
|
||||||
|
|
Loading…
Reference in a new issue