Hacker News new | ask | show | jobs
by bnegreve 4190 days ago
> only downside anyone else on your ip or range you specified can use that proxy too.

If you have ssh access, you can set up a proxy on the remote server, and use ssh dynamic port forwarding (-D) to forward the proxy connections on your local machine.

Using this trick you can safely use any ssh capable machine as a proxy. It works like a charm.

2 comments

And if your 'ssh capable machine' runs Linux, OSX, or any other *nix, you can use sshuttle [1]. It's a layer on top of SSH dynamic port forwarding that allows you to proxy any application, even those that don't support proxies out of the box.

[1] https://github.com/apenwarr/sshuttle

Yes that too :) I remember doing this more than a dozen years ago in university to a local research unix machine we could make accounts on in order to bypass the stupid firewall. In hindsight i think the network admins knew about our trick but put blind eye to it since it required people to muck around with command line and learn stuff :D