Update README.md

This commit is contained in:
Σrebe - Romain GERARD 2023-12-06 21:05:13 +01:00
parent 001da057ea
commit e952834b9b
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4

View file

@ -173,6 +173,7 @@ docker pull ghcr.io/erebe/wstunnel:latest
* [Bypass a corporate proxy](#corporate) * [Bypass a corporate proxy](#corporate)
* [Proxy Wireguard traffic](#wireguard) * [Proxy Wireguard traffic](#wireguard)
* [Proxy easily any traffic with transparent proxy (linux only)](#tproxy) * [Proxy easily any traffic with transparent proxy (linux only)](#tproxy)
* [Reverse tunneling](#reverse)
* [How to secure access of your wstunnel server](#secure) * [How to secure access of your wstunnel server](#secure)
### Understand command line syntax <a name="syntax"></a> ### 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> ### How to secure the access of your wstunnel server <a name="secure"></a>
Generate a secret, let's say `h3GywpDrP6gJEdZ6xbJbZZVFmvFZDCa4KcRd` Generate a secret, let's say `h3GywpDrP6gJEdZ6xbJbZZVFmvFZDCa4KcRd`