Jump to content
Not connected, Your IP: 18.188.69.167

Recommended Posts

Hey guys I do not really understand what to put where in the openvpn openelec section to get airvpn to work. Does anyone have experience in that field and can help me?

 

I would be really gratefull for any tip :-)

 

Tank you in advance

Share this post


Link to post

Hey guys I do not really understand what to put where in the openvpn openelec section to get airvpn to work. Does anyone have experience in that field and can help me?

 

I would be really gratefull for any tip :-)

 

Tank you in advance

 

 

You need to use a terminal to ssh to your openelec box & FTP (or ssh)to copy files across..

 

Using AirVPN_United-Kingdom_UDP-443.ovpn in this example. Download from Client Area/Config Generator.

 

Copy AirVPN_United-Kingdom_UDP-443.ovpn, ca.crt, user.crt & user.key to /storage/.config/vpn-config/ via FTP.

 

In a ssh terminal:

 

Create pass.txt in /storage/.config/vpn-config/.  This is a simple text file with yourusername & password.

 

 

cd /storage/.config/vpn-config
nano pass.txt
 

pass.txt.....

myusername
mypassword
 

 

 

 

 

 

Create autostart.sh in /storage/.config....

cd /storage/.config/ 
nano autostart.sh
 

 

Paste as below..

 

#! /bin/sh

(sleep 30; \
/sbin/hwclock -w; \

openvpn /storage/.config/vpn-config/AirVPN_United-Kingdom_UDP-443.ovpn


)&
 

 

Make it executable....

 

chmod +x autostart.sh
 

 

Reboot & it should work.

 

Above was cobbled together with info I found on the openelec forum and a bit of trial & error..

 

Hope that helps.

Share this post


Link to post

 

Hey guys I do not really understand what to put where in the openvpn openelec section to get airvpn to work. Does anyone have experience in that field and can help me?

 

I would be really gratefull for any tip :-)

 

Tank you in advance

 

You need to use a terminal to ssh to your openelec box & FTP (or ssh)to copy files across..

 

Using AirVPN_United-Kingdom_UDP-443.ovpn in this example. Download from Client Area/Config Generator.

 

Copy AirVPN_United-Kingdom_UDP-443.ovpn, ca.crt, user.crt & user.key to /storage/.config/vpn-config/ via FTP.

 

In a ssh terminal:

 

Create pass.txt in /storage/.config/vpn-config/.  This is a simple text file with yourusername & password.

 

 

cd /storage/.config/vpn-config
nano pass.txt
 

pass.txt.....

myusername
mypassword
 

 

 

 

 

 

Create autostart.sh in /storage/.config....

cd /storage/.config/ 
nano autostart.sh
 

 

Paste as below..

 

#! /bin/sh

(sleep 30; \
/sbin/hwclock -w; \

openvpn /storage/.config/vpn-config/AirVPN_United-Kingdom_UDP-443.ovpn


)&
 

 

Make it executable....

 

chmod +x autostart.sh
 

 

Reboot & it should work.

 

Above was cobbled together with info I found on the openelec forum and a bit of trial & error..

 

Hope that helps.

 

Has anyone tested this with KODI (formerly XBMC).  I am interested in using this with KODI (Openlec).

 

Thanks,

 

Shadowfire

Share this post


Link to post

Well.. I got it working... but I have to add a peice to the puzzle so it would work.

 

I had to add the following line to my *.ovpn file:

 

 

auth-user-pass /storage/.config/pass.tx
 

 

 

Here is a sample of where I added it at:


 

# --------------------------------------------------------
# Air VPN | https://airvpn.org | Thursday 1st of January 2015 04:43:29 PM
# OpenVPN Client Configuration
# AirVPN_America_UDP-443
# --------------------------------------------------------

client
dev tun
proto udp
remote america.vpn.airdns.org 443
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth-user-pass /storage/.config/pass.tx     <-------------I placed it here!
cipher AES-256-CBC
comp-lzo no
verb 3
 

 

Hope this helps someone using Openelec / Kodi.

 

Thanks

 

-SF-

 

Share this post


Link to post

I am trying to conect to AirVPN through Openelec also buyt having zero success. I followed your settings above but note in Openelec there is no sign of the connection unless you physically input a new VPN connection in the GUI to create the config file. This is where I get stuck and it isn't mentioned in the above posts , but how is the config file created if not via inputting the VPN details in Openelc GUI and if they are input via the GUI what needs to be input because there are many options available.

 

Hope someone with knowledge of this can suggest what I need to enter.

Share this post


Link to post

Well.. I got it working... but I have to add a peice to the puzzle so it would work.

 

I had to add the following line to my *.ovpn file:

 

 

auth-user-pass /storage/.config/pass.tx
 

 

 

Here is a sample of where I added it at:

 

# --------------------------------------------------------
# Air VPN | https://airvpn.org | Thursday 1st of January 2015 04:43:29 PM
# OpenVPN Client Configuration
# AirVPN_America_UDP-443
# --------------------------------------------------------

client
dev tun
proto udp
remote america.vpn.airdns.org 443
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth-user-pass /storage/.config/pass.tx     <-------------I placed it here!
cipher AES-256-CBC
comp-lzo no
verb 3
 

 

Hope this helps someone using Openelec / Kodi.

 

Thanks

 

-SF-

Yes, that is correct - sorry I missed that out on my original post. Also need to make sure all other paths are correct to where you put the files:

Eg:

ca "/storage/.config/vpn-config/ca.crt"

cert "/storage/.config/vpn-config/user.crt"

key "/storage/.config/vpn-config/user.key"

tls-auth "/storage/.config/vpn-config/ta.key" 1

Share this post


Link to post

I am trying to conect to AirVPN through Openelec also buyt having zero success. I followed your settings above but note in Openelec there is no sign of the connection unless you physically input a new VPN connection in the GUI to create the config file. This is where I get stuck and it isn't mentioned in the above posts , but how is the config file created if not via inputting the VPN details in Openelc GUI and if they are input via the GUI what needs to be input because there are many options available.

 

Hope someone with knowledge of this can suggest what I need to enter.

Forget the GUI in OpenElec - it doesn't work with AirVPN (& many others apparantley!) Use the command line & SSH in to your OpenElec box.

To get your external/public IP try at the command prompt:-

curl ipecho.net/plain

Share this post


Link to post

Thanks for thje responses guys. Hope you can bare with me because I still have Network Input/Output error.

This is the contents of my .ovpn file:

 

client
dev tun
proto udp
remote 198.203.28.42 443
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth-user-pass /storage/.config/pass.txt
cipher AES-256-CBC
comp-lzo no
verb 3
explicit-exit-notify 5
ca "/storage/.config/vpn-config/ca.crt"
cert "/storage/.config/vpn-config/user.crt"
key "/storage/.config/vpn-config/user.key"
tls-auth "/storage/.config/vpn-config/ta.key"

 

All the AirVPN files nb. keys etc are in /storage/.config/vpn-config

I have to generate a config file in this config directory otherwise I see no AirVPN connection.

So my config file is this:

 

[global]
Name = AirVPN_US-Pollux

[provider_openvpn]
Type = openvpn
Name = AirVPN_US-Pollux
Host = 198.203.28.42 443
OpenVPN.Key = /storage/.config/vpn-config/user.key
OpenVPN.Cert = /storage/.config/vpn-config/user.crt
OpenVPN.CACert = /storage/.config/vpn-config/ca.crt
Domain = vpn
advanced = 1
OpenVPN.TLSAuth = /storage/.config/vpn-config/ta.key 1
OpenVPN.AuthUserPass = /storage/.config/vpn-config/pass.txt
OpenVPN.Auth =
OpenVPN.CompLZO = 1
OpenVPN.TLSAuthDir = /storage/.config/vpn-config/ta.key
OpenVPN.Port = 443

 

Whatever I do or change I either get Nework Input/Output error or remote connection fail.

 

Hope you can point me in the right direction

Thanks

 

 

Share this post


Link to post

Thanks Georg12

 

I also found that link yesterday and installed the OpenVPn add-on for Kodi.

Following the instructions for Openelec on the page was easy and  AirVPN is now up and running with very little trouble . For anyone else needing AirVPn to work with Kodi all that was needed was the .ovpn file and pass .txt in /storage/.config/vpn-config and then follow the OpenVpn GUI prompts in Kodi add-on.

 

After lots of pain I hope this helps anyone else.

Share this post


Link to post

Hi guys,

I wanted to set up Kodi to use AirVPN but I dont get it how.

I pasted all files .ovpn, ca.crt, user.crt and user.key in /storage/.config/vpn-config/

In the ovpn file I edited the path and edited my autostart.sh but it dont work.

 

Im using OpenElec 6 with RPi2.

Can someone helf me.

 

EDIT: I have solved it. The problem was openvpn itself, the file from the unofficial repo must be corrupted at the moment or something went wrong for me.

It works now.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...