Workarounds and solutions to various tech related issues encountered from day to day. Plus, a little of this and a little of that on the side for variety.

Thursday, October 11, 2007

OS X: Secure Browsing Through ssh and SOCKS Proxy

I don't like snoops. And I don't like people controlling and/or monitoring me. So, I searched around online to come up with a solution for safe and secure web browsing from unsafe connections such as an open wifi zone at a cafe or an airport or even a supposed "secure" connection elsewhere. I have played around in the past with an ssh server for Windows called WinSSHD by the company Bitvise and found it to work very well. In those days I simply used putty as my client. Now that I've primarily gone the way of the Mac, I can do this through the terminal and built-in ssh client.

After setting up WinSSHD as my ssh server at home on my Windows XP machine, I can create a secure SOCKS5 tunnel with the following terminal command:

ssh -ND 3300 myhomeipaddress.com

This will stay up and running until I kill or break out of the process. Now it's just a matter of configuring any web based app to use a SOCKS proxy and give it the address of "localhost" and port 3300. NOTE: It's important to also make sure your DNS traffic flows through this tunnel as well otherwise whoever/wherever will still see where you are going. I found FoxyProxy to make this really easy for me in FireFox.

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home