Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to browse the internet from work by passing my traffic via an encrypted link to my home ubuntu server and out on to the internet from there. Obviously the replies will have to go to my home server first and then back to me via the encrypted link. Can anyone point me in the right direction to get this working?

Typical use cases are

a: watching UK only websites when i am abroad on business (so i appear to be in the UK) b: bypassing the web filters at work which are so stupidly restrictive they block access to my personal blog which is about running and on which I am currently trying to raise sponsorship money for charity before the London marathon in a week!


share|improve this question
up vote 2 down vote accepted

One way is to use a SOCKS proxy. It requires you have SSH access to the server you are using as a proxy. Change your web browser's proxy settings for SOCKS Proxy to, set the Port to 8000, and also check the box for SOCKS v5

Next, create the SSH connection and send traffic for port 8000 on your machine to the server:

ssh -D 8000 your_ssh_username@your_remote_server

your_remote_server can be the name of your server in DNS ( or an IP address. Use a dynamic DNS service if your home IP address changes frequently.

Leave that SSH connection open while you surf. If you want to go back to 'regular' surfing, undo the changes you made in your web browser's proxy settings.

Verify that your web browser is using the proxy by visiting a site that shows your IP address such as - it should show the IP address of your Ubuntu server and not the IP address of the computer you are using.

share|improve this answer
Brilliant! It just works straight out of the box. Thanks so much. The hardest bit was getting WoL working over the internet (unrelated) but that is working now and now I can browse to my hearts content. Thanks so much. – Amir Apr 11 '13 at 16:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.