OSMC VPN – Setup PPTP & OpenVPN on Raspberry Pi for OSMC

Reading Time: 6 minutes

OSMC or Raspbmc is the leading-edge video entertainment center for Raspberry Pi. Being a sophisticated platform for masses, there’re only a few good video centers available for Raspberry Pi. And OSMC stands at the top to deliver elite entertainment services. Based on Kodi/XBMC, OSMC offers sleek interface & massive media library which take Raspberrians’ entertainment experience to whole next level.

However, the hurdle that comes on your way when exploring OSMC are the imposed geo-restrictions on mainstream channels. But, in this guide, we will show you how to bypass geo-restrictions and access leading-edge channels on OSMC from anywhere. Also, you will learn how to setup OSMC VPN, add unlimited channels and explore the world of on-demand entertainment like never before.

Best OSMC VPN to Unblock Channels & Achieve One-click Access

To access the top-rated channels (BBC iPlayer, HBO Now, FOX Go, BT Sports, ESPN, Nine Network and much more) on OSMC, an OSMC VPN is required. You can select from one of the recommended OSMC VPN services from below. They will ensure a cutting-edge streaming experience on OSMC with zero interruptions or buffer:

RankProvidersPrice ($)DiscountMore Info
1
PureVPN
Editor's Choice
 $10.95 
$3.54Per Month
68% Off
2 Year Deal
2
NordVPN
 $11.95 
$3.99Per Month
66% Off
2 Years Plan
3
ExpressVPN
$8.32Per Month
35% OFF
No Exclusive Offer
4
IPVanish
 $11.99 
$4.87Per Month
60% OFF
Exclusive Offer
5
Ivacy VPN
 $8.95 
$4.08Per Month
77% OFF
2 Years Deal

Why Use OSMC VPN?

OSMC VPN is the safest option to access geo-blocked channels. While there are various freemium channels (Genesis, Extreme Sports & Football today) available, many traditional channels require paid subscription like ESPN, NBA On-demand and BBC iPlayer. But, geo-restrictions apply on both the channel types.

To get around with the geo-restrictions, an OSMC VPN spoofs your location with the country where a desired channel is available. As a result, you can unblock various geo-blocked channels instantly from anywhere. Streaming experts and user reviews suggest using best OSMC VPN services for high-speed streaming, reliable connection and robust privacy protection.

Setup PPTP VPN on OSMC for Raspberry Pi in 3 Simple Steps

OSMC VPN setup can be accomplished by following simple three step procedure. Once you’re done with choosing from one of the recommended OSMC Raspberry Pi VPN services,  you can follow these steps to setup OSMC VPN:

Here’s how to setup VPN on OSMC:

Note: We have selected PureVPN as OSMC VPN for PPTP installation. The service offers exceptional privacy features along with a  multitude of servers spread around the world 

  • First add a PPTP client by using following command:

sudo apt-get install pptp-linux

  • Now, you need to create a new file in /etc/ppp/peers and give it a name of your choice. Afterwards follow these configurations:

pty “pptp $VPNHOSTNAME –nolaunchpppd –debug”
name $USERNAME
password $PASSWORD
remotename PPTP
require-mppe-128
require-mschap-v2
refuse-eap
refuse-pap
refuse-chap
refuse-mschap
noauth
debug
persist
maxfail 0
defaultroute
replacedefaultroute
usepeerdns

  • Finally, run this command:

sudo pon $FILENAME

Congratulations, as now you can freely use OSMC Raspberry Pi VPN. With the setup competition of OSMV VPN, you can access all the channels and streaming services on OSMC that were previously blocked in your region. Also, you will be stream favorite TV shows, movies, news, sports and more media in blazing fast speed and HD playback quality.

Setup OpenVPN on Raspberry Pi using 5 Simple Steps:

Setting up OpenVPN on Raspberry Pi is an easy 5 step procedure. However, it is relatively extensive process when compared to PPTP VPN setup. To begin installing OpenVPN on Raspberry Pi, you need to follow these steps:

Disclaimer: We have selected PureVPN as a Raspberry Pi OSMC VPN in our setup guide. Currently, PureVPN stands as a leading Raspberry Pi VPN, due to a range of servers, strong encryption protocols, multi logins and wallet friendly plans.

Here’s how Setup OpenVPN on Raspberry Pi:

  • Step 1: Setup DNS forwarder on Raspberry Pi

First, you need to install DNS forwarder on your device. A DNS forwarder will protect you against DNS leaks at all times. We will use dnsmasq as a DNS forwarder in following setup process.

How to install dnsmasq on Raspberry Pi:

Sudo apt-get install -y dnsmasq

Edit/etc/dnsmasq.conf:

Sudonano/etc/dnsmasq.conf

Now, uncomment the settings of “domain-needed” and “bogus-priv”, as shown below:

# Never forward plain names (don’t use  dot or domain part) domain-needed# Never forward addresses in the non-routed address spaces.bogus-priv

Next, uncomment settings of “interface” and set it to eth0:

# If you want dnsmasq to listen for DHCP and DNS requests only on# specified interfaces (and the loopback) give the name of the# interface (eg eth0) here.# Repeat the line for more than one interface.interface=eht0

Finally, Save the file with applied changes and proceed  by restarting dnsmasq service:

sudo service dnsmasq restart

  • Step 2: Setup OpenVPN on Raspberry Pi

sudo apt-get install -y openvpn

Now, you need to download OpenVPN configuration files from here. Upon download completion, extract the files to pi users’ home folder  /home/pi/openvpn

Next, continue by copying the Certificate and WDC.key to /etc/openvpn:

sudocpopenvpn/WDC.keyopenvpn/ca.crt/etc/openvpn

Afterwards, create a file /etc/openvpn/auth.txt. This file will be used to store PureVPN login credentials.

sudo nano /etc/openvpn/auth.txt

Store your credentials as shown below:

PureVPN0s123456

Password

 

Now, make this file read/writable only by root:

sudo chmod 600 /etc/openvpn/auth.txt

Create a file /etc/openvpn/server.conf:

Sudo nano /etc/openvpn/server.conf

Next, set file contents as shown below:

client

dev tun

remote ukm1-ovpn.purevpn.net 53

proto udp

nobind

persist-key

pesist-tun

tls-auth Wdc.key 1

ca ca.crt

cipher AES-256-CBC

comp-lzo

verb 1

mute 20

float

route-method exe

route-delay 2

auth-user-pass auth.txt

auth-retry interact

explicit-exit-notify 2

ifconfig-nowarm

auth-nocache

Now, you will require to change the ownership of OpenVPN configuration file:

sudo chown www-data:www-data /etc/openvpn/server.conf

Finally, restart openvpn service and continue:

sudo service openvpn restart

In case you want to follow connection process in the logs, launch another ssh session and execute following command:

sudo tail -f /var/log/syslog

If an error occurs, it will be displayed in the above log

  • Step 3: Configure log rotate on Raspberry Pi

Surprisingly, log files occupy excess space on a disk effecting overall system performance. To overcome this issue, we will show you how to configure logrotate, save disk space and enhance your system performance.

Logrotate comes as a pre-installed app in Raspbian build. Here’s how to edit logrotate configuration file:

sudo nano /etc/logrotate.conf

Set the rotate frequency to daily and backlogs to 4, as shown below:

# see “man logrotate” for details# rotate log files dailydaily# keep 4 days worth of backlogsrotate 4

  • Step 4: Configure IPTables for Raspbian Firewall

An OSMC VPN on Raspberry Pi will work at optimum if IPTables are configured properly. The IPTables are responsible for allowing or blocking a connection as per defined rules. For this, we have allowed  forwarding of HTTP and DNS connections.

First download VPN Client Gateway project file with following command:

wget here

Extract  the downloaded files using this command:

unzip master.zip

Execute firewall script and load iptables’ rules. (Find script in folder vpn_client_gateway-master/fw):

sudo ./vpn_client_gw_script.fw

Next, save the rules to make them load automatically at boot time. Use IPtables persistent utility.

Install iptables-persistent:

sudo apt-get install -y iptables-persistent

When installation is running, you will be asked to store current iptables rules (ipV4 and ipV6). Proceed by acknowledging prompts and iptables’ rules.

  • Step 5: Disable IPV4 & Enable IP Forwarding

sudo nano /etc/sysctl.conf

Next, uncomment below-mentioned settings:

net.ipv4.ip_forward = 1

Now, add following code:

net.ipv6.conf.all.disable_ipv6=1

Finally, run this command to activate the chances:

sudo sysctl -p /etc/sysctl.conf

Adios! You’ve successfully installed OpenVPN for Raspberry Pi. With an OSMC VPN running on your Raspberry Pi device, you achieve the best out of leading entertainment platform.

How to Add Channels on OSMC & Enjoy Limitless Entertainment

OSMC or Open Source Media Center doesn’t come with a pre-stored channel library. Having that said, viewers need to add various channels by following a simple process. Here’s how you can add channels on OSMC:

  1. From home screen of OSMC, click on Settings>File Manager

 OSMC VPN

  1. Click on Add Source

02

  1. You will be asked to enter the path or browse to media location, enter http://kodi.metalkettle.co in the box

OSMC VPN

  1. Next, enter any name for the specified media source as shown below

OSMC VPN

  1. Now go back to home screen, click on Settings

OSMC VPN

  1. Go to Add-ons

OSMC VPN

  1. Choose Install from zip file

OSMC VPN

  1. From the list of zip files, select MK REPO

OSMC VPN

  1. Now select Recommended Repositories

OSMC VPN

  1. Choose lambada-1.1.0.zip to install

OSMC VPN

  1. After installing zip file, you will be notified with an Add-on enabled notification as shown below

OSMC VPN

  1. Now, click on Get Add-ons

OSMC VPN

  1. Next, select lambda Add-on repository

OSMC VPN

  1. Click on Video Add-ons

OSMC VPN

  1. From the list of Video Add-ons, install Genesis

OSMC VPN

  1. Now, go back to home screen and click on Videos>Video Add-ons

OSMC VPN

  1. You will find Genesis over there, proceed by clicking on it

OSMC VPN

In addition, you can setup endless channels on OSMC by following above procedure. Just make sure you’re connected to one of the OSMC VPN to evade the imposed geo-restrictions. Also, with a VPN on OSMC, you achieve top-notch data protection while accessing media from a remote device through OSMC.

5 Reasons You Should Always Use OSMC VPN

To get the best out of OSMC media streaming platform, an OSMC VPN is essential. A VPN on OSMC will ensure that you achieve every bit of entertainment that lacks in the video platform. Here’re the main advantages of using OSMC VPN:

  • One-touch access to unlimited channels
  • Top-grade data privacy
  • Protection against eyes of state-sponsored surveillance agencies
  • Bypass ISP throttling speed & limitations and achieve fast streaming experience
  • Enable installation of geo-blocked addons

Final Words

OSMC is the mainstream entertainment platform available on Raspberry Pi. Excellent features, smooth navigation, appealing interface, flawless streaming makes OSMC a preferred platform for superior entertainment. But, with the imposed geo-restrictions on leading broadcasting channels on OSMC, netizens are left with no other option except to watch what is available in their region.

But with a VPN on OSMC, you can freely access endless channels with zero restrictions or limitations. Also, share your unblocking experience with OSMC Raspberry Pi VPN in the comment box below.

Related Articles

Saad Qureshi

Saad Qureshi

Author
All Posts by Saad Qureshi

Saad Qureshi's Biography :


Saad is a privacy advocate by day and a Dota 2 player by night. He loves to share his knowledge, experience, and insights about internet freedom and online privacy. When he is not busy blogging about the latest trend in the tech world, he is engaged in killing noobs on Dota.


Leave a Reply

Your email address will not be published. Required fields are marked *

By submitting this form you agree to our Terms of service and Privacy Policy