Tunnel web traffic through SOCKS proxy

Posted October 19, 2015 8.3k views

I am behind a firewall on my local network. It is very restrictive and allows connections only through a few ports. Even direct ssh connections are blocked. I get around this is by editing the sshconfig file and adding the following lines:
Host my
ProxyCommand proxytunnel -p -d my
ServerAliveInterval 60
GSSAPIAuthentication no

Here is the local proxy that we have to connect to access the web. Now what I want to achieve is to tunnel all my web traffic through a socks proxy or any other solution that allows me to browse blocked websites. Please help.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

The easiest way to do this might be to set up an OpenVPN server on your droplet and set it up to listen on a port that is not blocked on your network. This way you wouldn’t have to do anything extra and could just open the openvpn client and establish a connection. Then all your communications would be routed through your droplet.

by James
OpenVPN is a full-featured open source Secure Socket Layer (SSL) VPN solution that accommodates a wide range of configurations. In this tutorial, we'll set up an OpenVPN server on a Droplet and then configure access to it from Windows, OS X, iOS and Android. This tutorial will keep the installation and configuration steps as simple as possible for these setups.
by Michael Holley
You can browse the web securely using a Droplet with SSH access as a SOCKS 5 proxy end point. In this tutorial we'll use a Ubuntu 20.04 Droplet as the proxy, and the Firefox web browser as the client application. By the end of this tutorial you should be able to browse websites securely through an SSH tunnel.