From e952834b9bbf3da177e8700825c4f993d89cc69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A3rebe=20-=20Romain=20GERARD?= Date: Wed, 6 Dec 2023 21:05:13 +0100 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 3ae63ba..7944af7 100644 --- a/README.md +++ b/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 @@ -321,6 +322,25 @@ cproxy --port 1080 --mode tproxy -- curl https://google.com --- +### Reverse tunneling + +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 Generate a secret, let's say `h3GywpDrP6gJEdZ6xbJbZZVFmvFZDCa4KcRd`