Using Wi-fi in public hotspots can be dangerous when packet sniffers are readily available. You’d want to encrypt and protect what you are sending and receiving over the network. Even at home if you don’t want people on the network logging your activity (for whatever reason) you would want to encrypt your traffic. An excellent way to do this is to set up a proxy over an SSH connection. You will need the following to do this (works for any platform):

That’s it! First set up PuTTY to connect to your SSH server but also set the following Tunnel settings:

Putty SSH Tunnel Config

  • Source Port: 7070 (this number can be pretty much anything)
  • Destination: localhost
  • Select Dynamic and Auto

Then click Add and it should show up as D7070. Select Open and log-in. Your traffic can now be forwarded once you configure your applications to use the proxy.

In Firefox (2.x), go to Tools->Options->Advanced->Network->Settings and set the following proxy configuration:

  • Manual proxy config
  • SOCKS Host: localhost
  • Port: 7070
  • SOCKSv5 (or v4, doesn’t matter)

Then hit OK and you’re done. To make sure the proxy is working, you can go to a site that will display your IP address or location. You can also encrypt your BitTorrent traffic or your MSN connection by changing connection/proxy settings to point to localhost port 7070 using either SOCKS v4 or v5.

An easy way to switch proxy settings in Firefox is to install the Switchproxy add-on — change proxy settings with just a click. Enjoy your secure browser session!