Web browsing over SSH tunnel

Max Kimambo
Thoughts of a software fundi
1 min readNov 12, 2016

There are times when you would need to apply this technique be it if you are trying to escape some draconian rules of your network admin or for testing your site from a different location to the desire of browsing anonymously.

In my case the need arose when I had to test some ip restriction rules that we added in to the app recently.

To do this I had to create a tunnel to another server and connect the browser to the tunnel, so it would appear as the traffic is originating from the server that I was connected to.

Here are the steps that I did to achieve this on Mac OS X.

1: Create SSH tunnel to the server where you have SSH access
```
ssh -D 8080 max@kimambo.de
```
2: Connect your browser

In firefox which is preferred way because you can set proxy settings just for the browser and not the whole machine. You can go to Settings > Advanced> Networking > Settings

![Browser proxy settings](/content/images/2016/11/Screen-Shot-2016–11–12-at-09.30.46.png)

3: Check your new IP by going to [www.whatismyip.com](www.whatismyip.com)

The above setup just sends your web traffic over the socket, your DNS traffic is still local, so its not totally anonymous.

Hope that helps..

--

--