12 July 2007
This article will take 3 minutes to read
On occasion you may find yourself developing a site for a client who during the development phase will limit access to the site to a certain set of IP Addresses. This can be a real pain to deal with if your local IP is always changing.
To deal with this I always get the client to grant access to the damagestudios.net IP address (which is fixed and located in a cage in Santa Clara)
I then create a secure ssh tunnel and configure either Firefox or Camino to use the damagestudios.net site as a proxy.
Here’s what you need to accomplish this:
ssh -D 8080 -f -C -q -N [email protected]You will then be prompted for your password, which you should enter. Your ssh tunnel is now in place. Here's a quick overview of what those switches mean: -D 8080: This basically does a lot of dynamic stuff and makes it behave as a SOCKS server. Of course you could use any non privileged port here (above 1023). -f: This will fork the process into the background after you type your password. -C: Turns on compression. -q: Quiet mode. Since this is just a tunnel we can make it quiet. -N: Tells it no commands will be sent. (the -f will complain if we don’t specify this). So now that the tunnel is made we will need to configure Firefox or Camino to use this tunnel. To do this open Firefox or Camino and type the following into the address bar: about:config This will bring up quite a bit of options but you can use the Filter: bar to filter out some of the results. To do this type in proxy into the filter bar. There are 6 line items we need to deal with.