Really Simple Proxy using SSH
Sometimes it’s useful to exist on the Internet as though you were in a different country. The reasons for this can vary: maybe you’re want to use a website that’s only available in your home country; or, like happened to me today, maybe you need to see how your clients in another country experience geo-targetted ads served onto their website.
There are many ways to achieve this, many of which either don’t work, involve some expense, or are complicated.
Here’s a simple solution. Or at least a simple solution if you already have SSH access to a host in the country you want to appear to be coming from.
First, from the command line on your local computer:
ssh -Nf -D 8080 email@example.com
Replace firstname.lastname@example.org with your username and host name of the remote host you’re going to use, the one that’s in Moldova or Berlin or wherever you need to virtually need to appear to be at.
Next, in Firefox, call up the Preferences dialog, and then navigate to Advanced | Network | Connection Settings, select Manual proxy configuration and in the SOCKS Host field enter localhost as the hostname and 8080 as the port number.
That’s it. You should appear to the world at large as though you are browsing the web from the remote host to connected to via SSH. You can test this by visiting WhatIsMyIP.com, which will report your IP address back to you (it should be the IP of your remote host, not of your local machine).