~rumpelsepp/homepage

b1badbe40fdde69b52963e38ea83a0350e44c765 — Stefan Tatschner 15 days ago 8c67cfd
Add socks5h hint
1 files changed, 4 insertions(+), 2 deletions(-)

M content/blog/2020-10-15-ssh-through-websocket.md
M content/blog/2020-10-15-ssh-through-websocket.md => content/blog/2020-10-15-ssh-through-websocket.md +4 -2
@@ 68,12 68,14 @@ Now this whole setup can be used like the following:
$ ssh -NT -D 127.0.0.1:1080 -o 'ProxyCommand=webcat -k 25 -t wss://webcat.example.org/ssh' user@example.org
```

Eventually, the internet can be accessed via example.org like this:
Eventually, the internet can be accessed via example.org like this[^2]:

```
$ all_proxy=localhost:1080 curl https://google.de
$ all_proxy=socks5://localhost:1080 curl https://google.de
```

[^2]: If you want to do the DNS resolution on the server side, then use `all_proxy=socks5h://localhost:1080`.

## Reverse Tunnel via SSH

With the preparation from the previous example a reverse tunnel is straightforward.