The linuxbox that we are going to use, has a ssh server up and running and connected to internet. So the tunneling that we are going to make can route any applications that supports SOCKS5 proxy.
So let's connect to our ssh server by using terminal:
sudo ssh email@example.com -D 8080
- root should be your remote linuxbox user
- 220.127.116.11 should be your remote linuxbox ip. you can put a domain name if it has one.
- -D 8080 makes a secure tunneling to your linuxbox ssh server by local port 8080
Now we can setup any applications that supports SOCKS5 proxy to use this secure ssh tunneling.
Setting up Firefox browser to use our SOCKS5 proxy connection.
We open up firefox and go to preferences: edit->preferences or tools->options, which is different by your version of Firefox. We go to Advanced tab and then Network and we click Settings.
We can check now that we are using ssh tunneling by running a website that shows our ip adress, like http://www.ip-adress.com and we should see the linuxbox ip adress.
The video that inspired me to make this tutorial:
Resources: ssh man page, 101 uses of openssh, hak5