Update README.md

This commit is contained in:
skyper
2023-04-27 10:58:25 +01:00
committed by GitHub
parent 5f5ee92a69
commit d981f2520a
+7 -6
View File
@@ -384,30 +384,31 @@ ssh -R80:0:8080 -o StrictHostKeyChecking=accept-new nokey@localhost.run
### Or using cloudflared
cloudflared tunnel --url http://localhost:8080 --no-autoupdate
```
Either tunnel will generate a new HTTPS-URL for you. Use this URL from your workstation (see below).
Either tunnel will generate a new HTTPS-URL for you. Use this URL on your workstation (see below).
Convert the requests to a simple TCP pipe:
A simple STDIN/STDOUT pipe via HTTPS:
```sh
websocat -s 8080
### and on the workstation use this command to connect:
websocat wss://<HTTPS-URL>
```
Or run a Socks5 Proxy behind the HTTPS tunnel (using Gost instead of websocat):
Or run a Socks-Proxy (via HTTPS):
```sh
### On the server
gost -L mws://:8080
```
On the workstation:
Forward 2222 to server's 22.
Forward port 2222 to the server's port 22.
```sh
gost -L tcp://:2222/127.0.0.1:22 -F 'mwss://<HTTPS-URL>:443'
```
or make it a Socks5 Proxy:
or use it as a Socks-Proxy:
```sh
gost -L :1080 -F 'mwss://<HTTPS-URL>:443'
### Test the Socks5 proxy:
### Test the Socks-proxy:
curl -x socks5h://0 ipinfo.io
```