Setting up a transparent proxy for VPN via SSH using sshuttle


I found this tool and it's quite useful if you need to run VPN via SSH on Linux or Mac OS.

You can download the tool from here via git or as a zip file.
git clone https://github.com/apenwarr/sshuttle.git

Then go to your sshuttle folder and start your proxy like this:
./sshuttle –dns -vvr <user>@<host> 0/0

<user> and <host> have to be replaced of course.
The –dns flag lets you forward your DNS queries to the DNS server of your SSH host (<host>).
0/0 is a simple shortcut for 0.0.0.0/0, so for any IP addresses.

This is a very basic usage but can save you a lot of time!