Thursday, February 21, 2008

SOCKS proxy using SSH

I've just seen and used a brilliant ssh option.

The command:
sudo ssh -D localport user@externalhost
will set up a local SOCKS proxy listening on localport which will route all your traffic (including privledged ports) via external host.


Anonymous said...

Be careful about using this with Firefox -- your DNS queries will still go to the non-proxied network interface until you make some configuration changes.

Set the config preference "network.proxy.socks_remote_dns" to true. (See about:config)

Simon Wittber said...

Thanks for the tip, I had assumed DNS would be proxied, but I was wrong.

Anonymous said...

ssh -CfgN -d 9999
This will open SOCKS proxy without a ssh shell, and data is compressed

Anonymous said...

If you use Firefox you might want to check out the FoxyProxy addon. It gives you control about what URLs to use which proxy (including SOCKS).

alex smith said...
This comment has been removed by a blog administrator.

Popular Posts