![]() |
[Tutorial] Poor-man'VPN via SSH with sshuttle
sshutle is a transparent proxy server that works as a poor man's VPN. Forwards over ssh. Doesn't require admin access. Works with Linux and MacOS, now including 10.6.
Pretty neat for the N900 considering how inconvenient it is to change socks or proxy settings. Project homepage: https://github.com/apenwarr/sshuttle NEWS: Version 0.50a adds support for DNS proxying (new --dns switch). So now both TCP packets and DNS requests are sent over the tunnel Requirements:
There is also a new switch on 0.50a for addressing latency issues. --no-latency-control: disable the "check_fullness" feature that prevents a bandwidth-intensive sshuttle channel, like a huge rsync, from killing the latency of other channels. If your network is very fast but has high latency, the latency control prevented you from using all your bandwidth, and sometimes you just don't care about latency. TIPS1: RSA keys and alternate ports For that you either need to use sshagent or a /root/.ssh/config file. Here is how to do it with a SSH config file: Code:
Host myremoteSSH Code:
# ./sshuttle -r myremoteSSH 0.0.0.0/0 -vv Latest version of sshuttle now autodetects installed Python versions and adjust its settings to select the Python interpreter (i.e. ArchLinux). |
Re: [Tutorial] Poor-man'VPN via SSH with sshuttle
It works great, thanks. I searched the repositories a long time ago and didn't see it... I should have searched here on TMO. :)
|
Re: [Tutorial] Poor-man'VPN via SSH with sshuttle
I works great, I wish I found this thread earlier, I will try to experiment something useful with it (maybe using Qt mobile hotspot + this to bypass mobile operator restrictions ?)
|
Re: [Tutorial] Poor-man'VPN via SSH with sshuttle
Just tested Qt Mobile Hotspot + sshuttle: it doesn't work for now.
Qt Mobile Hotspot messes iptables rules by flushing everything when you start it or stop it (not needed I think) Entering manually the rules that sshuttle create, let the N900 use the tunnel again but other devices can't access anything. I don't know anything about iptables for now but I will try to find how we can make this working and eventually make scripts to manage it more easily. |
Re: [Tutorial] Poor-man'VPN via SSH with sshuttle
I will try something useful with it (maybe using Qt mobile hotspot + this to bypass mobile operator restrictions ?
|
Re: [Tutorial] Poor-man'VPN via SSH with sshuttle
It works great, thanks. I searched the repositories a long time ago and didn't see it.
|
All times are GMT. The time now is 11:12. |
vBulletin® Version 3.8.8