Update README.md
This commit is contained in:
parent
001da057ea
commit
e952834b9b
1 changed files with 20 additions and 0 deletions
20
README.md
20
README.md
|
@ -173,6 +173,7 @@ docker pull ghcr.io/erebe/wstunnel:latest
|
|||
* [Bypass a corporate proxy](#corporate)
|
||||
* [Proxy Wireguard traffic](#wireguard)
|
||||
* [Proxy easily any traffic with transparent proxy (linux only)](#tproxy)
|
||||
* [Reverse tunneling](#reverse)
|
||||
* [How to secure access of your wstunnel server](#secure)
|
||||
|
||||
### Understand command line syntax <a name="syntax"></a>
|
||||
|
@ -321,6 +322,25 @@ cproxy --port 1080 --mode tproxy -- curl https://google.com
|
|||
|
||||
---
|
||||
|
||||
### Reverse tunneling <a name="reverse"></a>
|
||||
|
||||
Start wstunnel with
|
||||
```
|
||||
sudo wstunnel client -R 'tcp://[::]:8000:localhost:8000' wss://my.server.com:443
|
||||
```
|
||||
|
||||
In another terminal, start a simple webserver on your local machine
|
||||
```
|
||||
python3 -m http.server
|
||||
```
|
||||
|
||||
From your my.server.com machine/network you can now do
|
||||
```
|
||||
curl http://localhost:8000
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### How to secure the access of your wstunnel server <a name="secure"></a>
|
||||
|
||||
Generate a secret, let's say `h3GywpDrP6gJEdZ6xbJbZZVFmvFZDCa4KcRd`
|
||||
|
|
Loading…
Reference in a new issue