Sshuttle ssh/VPN tunnel

Today I’ve discovered the sshuttle (GitHub - sshuttle/sshuttle: Transparent proxy server that works as a poor man's VPN. Forwards over ssh. Doesn't require admin. Works with Linux and MacOS. Supports DNS tunneling.) tool and it does exactly what I needed!

My use case is that I have a Windows machine which connects to a VPN where the VPN software only functions on Windows and I need to access resources which are on that VPN network but from my Linux box. Using sshuttle I’m able to easily effectively forward all requests to the IP addresses that are on the VPN network through the Windows machine, regardless of protocol.

On my Windows 11 box I had to enable OpenSSH server and install python from the Microsoft Store (officially downloaded python installer did not work). Then with a recent version of sshuttle on my Linux box (I’m using version 1.3.1) I can easily setup the tunnel through the Windows box with a single command.

1 Like