You may think you want to use VPN software on your server to route all your browser traffic through the server. This would certainly work, but is overkill for simply routing your traffic through the server. On a linux server, you can simply use SSH and configure your browser to browse the internet as if connecting from your server.
How to configure an SSH tunnel in PuTTY
- Download PuTTY from [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe]
- Open PuTTY and enter “firstname.lastname@example.org” for the Host Name and your SSH Port (email@example.com works too, if you do not have root access, but can still access SSH on another user)
- On the left pane, scroll down and navigate to Connection > SSH > Tunnels
- On the “Options controlling SSH port forwarding” menu, enter “8888″ in the Source Port and select Dynamic. Click Add
- After you click Add, “D8888″ will be added to the list of “Forwarded ports:” above. Click Open
- After you click Open, a terminal window will pop up and prompt you for a password. You will copy your password and right click to paste (the text is hidden to protect you, but trust me, it pasted). Hit enter.
- You should now be logged into your server as the root user. If you followed the steps correctly, you should also now have a tunnel from your computer to your server.
How to configure the browser to use the tunnel
Then configure your browser. I recommend using Firefox with FoxyProxy:
- First, go get yourself hooked up with the FoxyProxy extension for Firefox. Once that is set up and installed, you will see a new link for FoxyProxy in the bottom-right part of Firefox’s status bar.
- Right-click that link and choose “Options”.
- Click “Add new proxy”. On the “General” tab, make sure all checks are enabled. You can give this new proxy connection a name if you want to.
- On the “Proxy Details” tab, check “Manual Proxy Configuration”.
- In “Host or IP” enter: localhost
- Choose a port number, such as 8888 for the Port field. Remember that number.
- Click the “SOCKS Proxy?” checkbox.
- Click OK to close the settings tab. If you receive a warning about URLs, click OK to accept it.
You can use any browser that supports SOCKS Proxy. You don’t need a program like FoxyProxy, it’s just easier to manage the connection.
Checking if it worked
To see if everything worked, navigate to http://www.hostdime.com/ip