Nowadays, anything you do in the digital world is being tracked by someone. Either government agencies or the bad guys are always watching you. It’s now easy to shield your activities from these watchdogs.
- Amazon Linux Instance
SOCKS or Secure Socket is a protocol that uses SSH to tunnel your traffic from a different network. Now, if you are aware of TOR, then you must be thinking, why not use TOR and cut down the hassle. TOR although is a good alternative, but when you are concern about the privacy of your data, it is always better that you take control of the things. It’s easier to manage if you host your own server. If you have SSH enable, no another setting is required to enable SOCKS. So, let’s get started.
Shielding your activity:
So, shielding your activity is divided into two parts. First, we shall configure our Putty as SOCKS Proxy server. Secondly, we shall configure our browser to use putty as the SOCKS Proxy server. Remember, while you are using SOCKS proxy, your SSH Client, putty in our case, should be connected to the server.
Open Putty, and in the left-hand side menu, navigate to “Connections > SSH > Tunnels”. Make sure you add an unused port from your system as shown in Figure 1 and Figure 2.
Navigate to SSH > Data in the left-hand side menu. Enter your server’s username in ‘Auto-login username’ as illustrated in Figure 3
Navigate to Connection > SSH > Auth in the left-hand side menu. Make sure you don’t click on the small plus besides Auth. Add your private key file to “Private key file for authentication” as shown in figure 4.
Now in the left-hand side menu, navigate to session and enter your amazon host information as shown in figure 5
Once Saved, Click on Open and you should see a terminal as shown in Figure 6.
Minimize the terminal
For our demo, we would be using Mozilla Firefox. You are free to use any browser that you are comfortable with. Open the Options in Firefox. Navigate to Advance on the right panel > Network and click on Settings.
In Connection Settings, use “Manual proxy configurations” and in SOCKS Proxy add host as “127.0.0.1” and port as “1234”, which we had set in the Putty configurations.
You can now see that you are connected to Amazon’s network via SOCKS proxy.