Annonnymous 8 Posted ... 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 Quote Share this post Link to post
themuffinman 1 Posted ... 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. 1 Shadowfire reacted to this Quote Share this post Link to post
Shadowfire 0 Posted ... 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 Quote Share this post Link to post
Shadowfire 0 Posted ... 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- Quote Share this post Link to post
umanoid 0 Posted ... 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. Quote Share this post Link to post
themuffinman 1 Posted ... 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 Quote Share this post Link to post
themuffinman 1 Posted ... 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 Quote Share this post Link to post
umanoid 0 Posted ... 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: clientdev tunproto udpremote 198.203.28.42 443resolv-retry infinitenobindpersist-keypersist-tunremote-cert-tls serverauth-user-pass /storage/.config/pass.txtcipher AES-256-CBCcomp-lzo noverb 3explicit-exit-notify 5ca "/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 = openvpnName = AirVPN_US-PolluxHost = 198.203.28.42 443OpenVPN.Key = /storage/.config/vpn-config/user.keyOpenVPN.Cert = /storage/.config/vpn-config/user.crtOpenVPN.CACert = /storage/.config/vpn-config/ca.crtDomain = vpnadvanced = 1OpenVPN.TLSAuth = /storage/.config/vpn-config/ta.key 1OpenVPN.AuthUserPass = /storage/.config/vpn-config/pass.txtOpenVPN.Auth =OpenVPN.CompLZO = 1OpenVPN.TLSAuthDir = /storage/.config/vpn-config/ta.keyOpenVPN.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 directionThanks Quote Share this post Link to post
Georg12 1 Posted ... Anyone tried this? http://forums.tvaddons.ag/threads/24769-How-to-set-up-your-VPN-on-raspberry-pi-using-Brain-Hornsby-Openvpn-for-XBMC 1 umanoid reacted to this Quote Share this post Link to post
umanoid 0 Posted ... 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. Quote Share this post Link to post
Becchi 0 Posted ... 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. Quote Share this post Link to post
Marcomale 0 Posted ... Hi.Username and password in txt are the same that i use for login in airvpn.organizzare site?Txs Quote Share this post Link to post
andytt11 0 Posted ... I know this is an old thread but is there a noob walk-through to do this on a windows machine. Quote Share this post Link to post