Skip to content

Commit d042bc4

Browse files
committed
Make tun device notes a tad better
1 parent 0de6cda commit d042bc4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -400,18 +400,12 @@ As an additional note, please use the `/slack` endpoint if connecting this to di
400400
401401
RSSH and SSH support creating tuntap interfaces that allow you to route traffic and create pseudo-VPN. It does take a bit more setup than just a local or remote forward (`-L`, `-R`), but in this mode you can send UDP and ICMP.
402402
403-
First set up a tun (layer 3) device on your local machine.
404-
```sh
405-
sudo ip tuntap add dev tun0 mode tun
406-
sudo ip link set dev tun0 up
407-
408-
# This will defaultly route all non-local network traffic through the tunnel
409-
sudo ip route add 0.0.0.0/0 dev tun0
410-
```
411-
412403
Install a client on a remote machine, this will not work if you have your RSSH client on the same host as your tun device.
413404
```sh
414405
sudo ssh -J your.rssh.server.internal:3232 user.wombo -w 0:any
406+
407+
sudo ip link set dev tun0 up
408+
sudo ip route add 0.0.0.0/0 dev tun0
415409
```
416410
417411
This has some limitations, it is only able to send `UDP`/`TCP`/`ICMP`, and not arbitrary layer 3 protocols. `ICMP` is best effort and may use the remote hosts `ping` tool, as ICMP sockets are privileged on most machines. This also does not support `tap` devices, e.g layer 2 VPN, as this would require administrative access.

0 commit comments

Comments
 (0)