Using PrivatVPN on Ubuntu Linux

After the Hide My Ass fallout and niggling doubts about AceVPNs logging policies, I’m trying out some recommended VPN services I found via TorrentFreak. The great thing about VPN providers is most of them allow you to purchase a limited time from 1-12 months, I decided to try out PrivatVPN who state apart from username and password, they don’t log anything.

PrivatVPN appears to be a small outfit operating out of Sweden offering servers in Sweden, US, UK, Switzerland and the Netherlands. I can’t tell if they are owned by anyone or just hosted by iLandsgruppen however their service is very barebones, with a small control panel, software download and instructions. The service is relatively cheap to – about £4 for 30 days.

They technically don’t have a Linux client, only configuration files to download, which seem to be outdated. Unlike that ‘other’ OS – where they offer a full client and countries to connect to, Linux only contains the address of their Swedish server and the wrong port number (21003). I found this out after the OpenVPN connection not working on Ubuntu so instead fired up my Windows VM just to see if it worked and it did. A quick gander at connection logs showed me the different port.

I notified their tech support, but for anyone who had problems like me with the following error,

read UDPv4 [ECONNREFUSED]: Connection refused (code=111)

Here are the correct IP address and Port numbers to connect to PrivatVPN servers. Let’s hope they update their documentation and config files:


PrivatVPN provide instructions for starting from the CLI, however if you prefer the GUI (I do purely for the networking icon to remind me I’m connected with a tiny lock) simply follow these steps:

  • Go to Network Manager, VPN Connections, Configure VPN…
  • Click on Import
  • Navigate to “/etc/openvpn” and select “privatevpn.conf”.
  • Then add your username and password
  • Check the IP address is the same as the one above and the port no. (under “Advanced” option)
  • You may want to configure multiple vpns so change the name too, to something like “PrivatVPN Sweden/US/UK…”
That’s it, you’re done. Enjoy your anonymity and freedom!

Why I’m Now Using A VPN

If you keep on top of tech news (The Register is a very good site for this), you will have noticed a growing campaign by many politicians and even some media to seize control of the internet and monitor your activity online.

This is quite unsettling for me. For one, I think that ISPs should effectively be a dumb pipe. Just like the post office, your water, gas and energy suppliers, they bring the internet to your home and charge you for it – no glamour or value added services – I just want my internet, thanks. Imagine if the postman opened all your letters before he delivered them through your door? This is effectively what the government wants ISPs to do with your packets. Furthermore it’s one big slippery slope to facism. Today, they’re monitoring for pirates, tomorrow they’re reading your emails for signs of political dissent.

On the other hand there are new services like BBC iPlayer, Hulu and Spotify which block traffic from certain countries. Even if you’re a TV Tax payer, you still can’t access iPlayer from abroad!

I’ve used a blocklist since 2003 and a web proxy for hiding my IP address whilst casually browsing, but I consider these no longer adequate for either the threat to our privacy or accessing media services online. So I tried out a couple of free VPN services and I’ve settled on one now which is paid for, and I’ve now budgeted in as part of our broadband costs. I will blog about this later.

A VPN (Virtual Private Network) tunnels all your internet traffic through an alternate network of servers, usually encrypted, so that whoever, or whatever, is at the other end sees that server and it’s IP address and not your own. Traditionally VPNs have been used by companies to provide a virtual network for employees to sign into from insecure home computers, but there are now many services springing up all over the internet offering free or cheap VPN services for private use.

The anonymous part is important. If the VPN company keeps records, they can be subpoenaed to provide your account information – so you’re not protected. It’s also important that the VPN is encrypted, or your ISP can view your traffic – we want them to be a dumb pipe and not trouble themselves over our online habits!

If you want to try out an easy to set up and free VPN service, check out It’s Hidden – though they have recently restricted their free connections to 20 minutes. There are others with clients you can download, but some of them inject their own pop-up adds – a small price to pay for the free privacy.

Whether VPN services will be the future, is anyone’s guess. I suspect that when the government finally catches up and realises that everyone is surfing over an encrypted, anonymous connection they will try to crack down on these services too – by then I imagine pirates will already have created or found new tech to stay anonymous and be moving on to that, which is how it should be.