Secure Browsing via SSH Tunnel + SOCKS Proxy

by merrick on February 25, 2007

How often do you find yourself on a network with unknown or questionable security? When was the last time you browsed the web at Starbucks or a Conference? If you are like me, you cringe when you have to enter a password on a non-SSL site.

The solution is to browse the web through a secured network like your office or home. You need one computer with an SSH server (Mac OS X, Linux, Unix…) and any other computer with an SSH Client (Mac OS X, Linux, Windows with Putty).

Once you can access your computer on your secured network over SSH you can proceed. If you are behind a firewall you can port forward port 22 to the IP of your SSH Server enabled computer.

From your SSH Client / terminal just enter the code below.

ssh -D 9999 username@SecureComputerIPorDomain

You should be prompted for a password before you connect. Then simply tell your browser (Firefox) to use a SOCKS Proxy with the connection settings set to: localhost and port 9999. On Firefox on a Mac you enter the settings by clicking Firefox -> Preferences -> Advanced -> Network -> Settings.

{ 0 comments… add one now }

Leave a Comment

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