Last Updated: February 25, 2016
· mrkschan

sshuttle "on" Windows

Poor man's VPN, sshuttle, depends on iptables, how could we use it "on" Windows?


  • Vagrant
  • cmd.exe with Administrator access

What we can really do is to create a Linux VM with Vagrant (or simply Virtualbox if you like). In the Vagrant settings, remember to turn on bridged NIC. Then, run sshuttle inside the VM like below.

sshuttle -l -x -x 0/0 excludes NAT traffics of Vagrant and excludes traffics to my router.

Assuming the default gateway is and the VM has the IP obtained on the bridge NIC (we can configure that in Vagrantfile), we can then ask Windows to route all its traffic via the VM by running the following in cmd.exe with admin right...

route change mask metric 2
route add mask metric 1


1 Response
Add your response