OpenVPN Server on Pi

These are the links to a series of posts on how I set up a Raspberry Pi 2 Model B running the OSMC operating system as an OpenVPN server. OpenVPN is an open-source VPN solution.

Running a VPN server on your Pi allows you to connect to your home network from a remote location using a mobile device (or another computer) through a secure “tunnel”. You then access the internet via your home network rather than the local network i.e. with the security of your home router and its public IP address.

Here’s a couple of practical examples of why a VPN server installed on your Pi could be useful:

  • You can do your online banking in a cafe without worrying about the security of the local wifi connection
  • If you are abroad you can watch catch-up TV services only available at home; so if you reside in the UK this means you can watch Match of the Day on BBC iPlayer!

Why am I installing OpenVPN on OSMC rather than on Raspian? Well if you want to use your Pi as a media box sitting under your TV then OSMC is a good choice of operating system; but it’s not going to be doing much when your not at home so it seems a sensible choice to utilise it as a VPN server  as well.

Setting up a VPN server on your Pi should not be confused with setting up a VPN client on your Pi. A VPN client effectively hides your home location from the rest of the internet, a VPN server makes the internet think you’re at home when you are not.


Step 1: Preparation

Step 2: Set up a free Dynamic DNS domain on

Step 3: Set up OpenVPN Server

Step 4: Set up a device to use OpenVPN Server


Make a backup of your installation

If you have found this useful then I’m glad to be of help. If you have found it REALLY useful you can send me 1 US Dollar by clicking the Donate button!

Donate Button