Muffinresearch Labs by Stuart Colville

SSH SOCKS Proxy | Comments (1)

Posted in Linux/Unix on 19th January 2007, 1:30 pm by Stuart

I first saw this tip a while back on the Ubuntu Blog and it’s a useful way of using SSH to set-up private web surfing. Not to mention I’ve come across several public wifi installs that leave port 22 unfiltered so providing you set firefox to run the DNS from the remote server you should be able to browse with complete success over port 22.

This should work with any openssh implementation so it’s all good on both macs, linux and windows (Though from a brief foray into the world of window you’ll need Cygwin. Download it and select and install OpenSSH as a minimum and then run the same commands below from the shell)

To set-up a SOCKS proxy on port 1080 simply run:

ssh -D 1080 user@your-ip-address

To make firefox do DNS lookups through the remote server simply set network.proxy.socks_remote_dns = true in about:config.

To use the proxy simply set-up the socks 5 proxy config (Options/Preferences -> advanced -> Network -> Settings) by selecting “Manual Proxy configuration” (or use a plugin to firefox like Proxy Switch) and set the SOCKS Host to 127.0.0.1 and the port to 1080. Lastly select “SOCKS v5″

To test the proxy is working go to http://www.whatismyip.org/ and you should find the ip addres of your server is displayed.

Post Tools

Comments: Add yours

1. On May 14th, 2008 at 3:39 pm karl said:

You can also have a SOCKS Proxy for Safari!

http://codesnippets.joyent.com/posts/show/1326







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Standalone mac battery charger|(1)

Got a spare mac battery? I’ve often wondered why up until now no-one’s produced a standalone charger so that you can charge batteries without having to plug them into the mac. Fortunately Fastmac.com have produced a standalone charger that allows you to do just that. and it’s compatible with iBooks, Powerbooks, macbooks and Macbook Pros. It’s also 110/200v. Exactly what I was looking for!

Django Admin Ominigraffle Stencil|(0)

Colleague Alex Lee has created a nice stencil for omingraffle with the Django Admin UI components, perfect for wireframing customised admin screens. For more details and to download the stencil see Alex’s Blog csensedesign.co.uk

Photos on Flickr

© Copyright 2004-08 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by 1&1 This page was baked in 0.711s.