Setting up an ssh tunnel to secure your web traffic.
So you like going to your local coffee shop, mall etc, and using the free Wi-fi. Have you ever done something like pay that cellphone bill you forgot was due, or log in to your work email? It has become increasingly easier for people to sniff the traffic you are sending through those public access point. Wouldn’t it be nice to know all the traffic you are sending out is encrypted and safe from prying eyes? Well today we are going to show you how to do this with a few simple and free tools. Ready? Here we go.
What you will need.
Putty-Putty is a free telnet SSH client available for Wndows and Linux. Putty
Firefox- You can use any browser but I find it easier to have a specific browser set up for tunneling. Firefox
A server that supports SSH. You can set this up at home or if you have a hosted web server you can set it up there. If you are doing it at home, i suggest ubuntu Linux its easy to setup and get running.
Now lets fire up Putty and setup our tunnel settings.
Source Port: 7070 (this number can be pretty much anything)
Destination: localhost
Select Dynamic and Auto
Now Click ‘Open’ and log in to your box. Once you are connected we are going to open up Firefox.
In Firefox , go to Tools->Options->Advanced->Network->Settings and set the following proxy configuration
Manual Proxy Configuration
Socks Host should be set to ‘localhost’ or 127.0.0.1 with the same port you set in putty 7070 here. With Socks V4 Or V5, it does not matter. Once you are done hit OK and test it out. You can try going to a website that will show your IP like Whatsmyip You should see the ip of your server.
Recommendations: Just from my personal experience there are a few things that will make this easier if you are setting it up at your house. The first one is setup a dyndns account, or something similar. Most home internet connections have a dynamic Ip this will allow you to remember a url instead of trying to keep up with when your ip changes. The second thing is your probably need to setup port forwarding in your router. You will need to forward port 22, which is the default ssh port to the server ip at your house that is your ssh server. For that reason i recommend setting a static ip to that box.
Tags: command line, How to, linux, ssh








