Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
User avatar
SmallBrother
Site Admin
Posts: 3726
Joined: Sun Mar 04, 2012 12:59 pm
Location: Somewhere on this globe

Setting up KODI with a VPN

Tue Dec 10, 2019 10:00 pm

Thanks to Ian Garland for making this tutorial (sorry, no links)

Installing a VPN on OpenELEC systems

OpenELEC is a Linux-based operating system and as a result, setting up a VPN is a bit more complicated than simply installing a program. Instead, we have to set up an addon called VPN Manager for OpenVPN that will allow us to enter VPN account information directly. To get this addon, we have to install the Zomboided repository, so we’ll walk you through that first.

Installing the Zomboided repository

Unfortunately, installing the Zomboided repository isn’t as simple as just entering its web address. Instead, we’ll be connecting to the OpenELEC device remotely from another computer using the Secure Shell (SSH) protocol.

Begin by downloading PuTTY here. This is the program we’ll be using to communicate with the OpenELEC system. It’s also worth noting that the OpenELEC system will have to be connected to the same network as the machine running PuTTY. Once PuTTY is installed, open it and set the Connection Type to SSH.

Next we have to change some settings in OpenELEC to allow this kind of connection to happen. From Kodi’s main page, click the gear icon and then click the OpenELEC option on the far right.

Image

Select the Services tab from the list on the left, then find SSH in the list and click the Enable SSH option. The slider should now be white, so if it’s grey, click it again.

Image

Next, go back to the settings page. This time, we’re going to click the System Settings option. Select the Add-ons tab, then Unknown sources. You’ll see a popup warning you about the risks of installing addons from unknown sources, but the VPN Manager is trustworthy, so click Yes.

Finally, return to the settings page and click the System information button. You’ll see various pieces of information, but the one we need is the IP address of your OpenELEC device. Enter this IP address in the Host Name field in PuTTY, then click the Open button at the bottom of the program.

Image

Image

Now you’ll be asked for login information. By default, the username is “root” and the password is “openelec” — make sure not to type the quotation marks. Also, while Linux systems don’t show asterisks as you type, rest assured that you are entering the details. When you’re done, hit Enter, and you’ll be greeted with a prompt you can use to control the OpenELEC system.

Once you’ve connected, enter the following text:

Code: Select all

wget https://github.com/Zomboided/service.vpn.manager/archive/master.zip
Once this file has been downloaded, go back to your OpenELEC device and return to Kodi’s home screen. Click the Add-ons tab, followed by the box icon in the top-left of the next screen that appears. Next, select Install from zip file and in the list that appears, choose Home folder, then master.zip. This should install the VPN Manager for OpenVPN addon and if all goes well, you’ll see a notification in the top-right.

Configuring the VPN Manager for OpenVPN addon

There is a little bit left to do before you can browse and stream in privacy. The VPN Manager for the OpenVPN addon still has to be configured, so go back to the Kodi home page, hover over the Add-ons tab and right-click the VPN Manager for OpenVPN addon. Click Settings and you’ll be able to select your VPN provider from a list. Next, enter your VPN login information.

Image

Select the VPN Connections tab and click the option to select your first preferred server. The VPN Manager will attempt to connect to your VPN provider using the credentials you entered, and if successful, will list all the available servers to choose from.

Image

These can be changed whenever you like, so don’t worry too much about choosing the right ones. Once this is done, all that remains is to test the connection to see if your VPN is working properly.

Importing a VPN with the User Defined Wizard

While the most common VPN providers are already accounted for, the VPN Manager also allows you to manually set up a less popular one. First, you’ll need to find specific files that will allow you to connect to your VPN’s network. Usually, these files are mentioned in the Linux installation guides provided by your VPN service.

We’ll need a .crt file, and one or more .ovpn files, which correspond to the servers you’d like to connect to. In the following example, we’ll be using our VPN provider, but be sure to find the correct location for your own VPN provider.

From the Kodi main menu, click the gear icon in the top-left. Next, select the File Manager option and click Add source. Type the location of your VPN’s configuration files into the box that appears and give the source a name. In our example, we’ve used the location of our VPN provider's files, but the location of this will vary by provider.

Image

On Kodi’s addons page, right click the VPN Manager for OpenVPN addon. Select the Settings option and choose the User Defined value under VPN Provider. Scroll down and click on the User Defined import wizard option.

Image

Image

This is where we tell the VPN Manager where to find your provider’s files. They should have been downloaded to your Home folder, so navigate there and be sure to upload all of them.

You’ll be asked if you want the VPN Manager to update the server files. This automatically fixes any broken link. Since manually editing them is complex, we recommend clicking the Yes button. After the wizard has finished, you can navigate back to the VPN Manager’s settings page and select your preferred VPN servers from the VPN Connections tab.

Testing your VPN on OpenELEC

Because OpenELEC systems don’t come with a web browser, we can’t rely on IP tracking sites to see if our VPN is working or not. However, there is another way that not only can confirm this, but provides a high-quality library of content too — the TUBITV addon.

To make testing easier, make sure you have at least one American and one British VPN server in your connections list. Select the American one, then navigate to the settings menu by clicking the gear icon on Kodi’s home screen. Click File Manager and at the bottom of the list, click Add source. Enter http://toptutorialsrepo.co.uk/kodi/ and give the source a name. Now, go back to the home screen and click the Add-ons tab, followed by Install from zip file.

You’ll see a long list of files, so find the one named “repository.bg.plugins.zip”. Once this is installed, click Install from repository and find Bg Add-ons. Scroll down the list until you see TUBITV and click it to install.

Image

This is what happens when you search for “Peep Show” with an American IP address

Because TUBITV has different media libraries for different parts of the world, certain titles will only show up if you have an IP address from the right location. For instance, Peep Show is only available in the US. Click the Search option at the top of the addon’s main menu and search for Peep Show. If it shows up, your US VPN server is working properly. Next, switch over to your British server and try again. If everything is working as expected, Peep Show should not appear in the list of results.

Image

Searching for “Peep Show” with a British IP address – no matches found

Conclusion

OpenELEC may require some tweaks before it works as well as the traditional desktop versions of Kodi, but it isn’t as difficult to use as it appears. With your VPN properly installed, you can now watch content from all over the world safely and securely.


Additional topics to check:

viewtopic.php?f=1&t=16872
viewtopic.php?f=1&t=16926
Nowadays a VPN is a must for everyone. A VPN allows you safe surfing and protects you against spying governments and companies.
I advise AirVPN - from € 2,75 per month. Click the below banner for more info.


Image

Return to “General talk”

Who is online

Users browsing this forum: No registered users and 54 guests