trevcan@internets /dev/human $

Lazy man's VPN or Simple VPN through SSH

Posted on: 03/16/22 16:00:48
Last edited: 05/25/22 21:44:35

It works like a VPN, acts like a VPN, feels like a VPN; but it kinda isn’t a VPN.

Would you like to access your local network ?

Are you too lazy to set up a real VPN server like me ? Do you like security ? Well, now you can use a virtual private network through ssh and route all requests from one machine to another, using sshuttle.



sshuttle -x -r --dns
sshuttle -x -r addresses/subnet --dns

WHERE: is your (ssh-enabled) server’s domain name.

-x means, exclude the domain from being routed through your server (, the wiki says some problems occur on some linux machines - it will recursively resolve to itself and the ssh session will crash.

use on SUBNET to route ALL requests through ssh server.

use 24 for subnet and use on addresses to route requests starting with 192.168.1. through the ssh server.

e.g. sshuttle --dns -x -r


Tags: vpn ssh security short linux