PrivateInternetAccess SOCKS Proxy Tutorial

This entry is part 2 of 2 in the series PrivateInternetAccess Using OpenVPN and Dante SOCKS Proxy

PrivateInternetAccess SOCKS Proxy Tutorial – Software Installation

In this article we are going to run through the Debian, OpenVPN and Squid proxy software installation. In this tutorial we are installing it on a virtual machine in an ESXi environment but it can obviously be installed on any PC, virtual or otherwise. We are using a dual-core CPU with 2GB of RAM which is more than enough for a light-user proxy.

Let’s get started!

1. Download the netinstall iso, burn it to CD/DVD if necessary and boot. Run through the install and make sure to specify your static IP. You only need a minimal installation, no desktop manager so select the options as shown:

OpenVPN and Squid Proxy - Software Installation

2. Once installed and logged in, update the apt repositories with apt-get update:

dante apt-get update

3. Install the OpenVPN software:

  • apt-get install openvpn

4. Install the dante software software:

  • apt-get install dante-server

Now we’re all installed, it’s time for the configuration.

PrivateInternetAccess SOCKS Proxy Tutorial

This entry is part 1 of 2 in the series PrivateInternetAccess Using OpenVPN and Dante SOCKS Proxy

PrivateInternetAccess SOCKS Proxy Tutorial – Introduction

In a previous series of articles we looked at how to use Squid Proxy to overcome the five devices maximum limit when subscribed to the PrivateInternetAccess VPN anonymising service. While this is useful when needing to browse anonymously, it doesn’t help when using other non-HTTP protocols  e.g. FTP, SMTP, SSH so to that end we present this PrivateInternetAccess SOCKS Proxy tutorial.

To this end, we need to employ a SOCKS (sockets) proxy: A SOCKS proxy is a general purpose proxy server that establishes a TCP connection to another server on behalf of a client and then routes all the traffic back and forth between the client and the server. It works for any kind of network protocol on any port.

In this tutorial we will be building on parts of the previous tutorial but using the Dante SOCKS proxy instead of Squid.

We will be using:

  • Debian Wheezy netinstall ISO
    • OpenVPN – to create our VPN connection
    • dante – to proxy specific traffic or applications through the VPN

Our network diagram for this example is as follows:

PrivateInternetAccess Using OpenVPN And Squid Proxy

The client is sitting on the 172.16.16.0 network and accessing the proxy in the DMZ 192.168.101.0 subnet. Outgoing traffic will then be routed out through the VPN interface (tun0) encrypted and anonymised.

Hosting: Digital Ocean – $5 / Month VPS – $10 Free Credit!

VPS Hosting $5 per Month @ DigitalOcean – $10 Free Credit!

Get your own private VPS hosting for $5 a month including 2 months free service with our signup code below!

Having been with DigitalOcean since the beginning of 2014, we can safely say that the service is great. Hands down the best we’ve had and very reliable to boot with 100% uptime so far.

It’s also cheap to get started – $5 a month buys you a Virtual Private Server (VPS) with 512MB of RAM and a whopping 1TB of transfer. Whilst 512MB RAM may seem skimpy, the 20GB, blisteringly fast SSD drive more than makes up for it – using Apache, 4 medium traffic web sites are running fine.

If you use the following promo code when signing up – 10TOSHIP – you get $10 credit which is enough for 2 months service!

You can of course upgrade to the next level for the price of a beer – from the website:

pricing structure

 

They have a simple, intuitive GUI allowing you to pick what you need in terms of images:

Web UI

Or applications: 

Available Applications

And an easy way to control your VM or “Droplet” as they are referred to:

droplet management

If you sign up with the promo code at the beginning of the post then we get a humble referral fee and you get $10 on top of your $5 deposit which will keep you up and running for a total of 3 months!

Less than the price of a sandwich on the train – go on, you know you want to!