Additional Information specific to using OpenVPN and AirVPN service on WeTek HTPC with Linux OS (OpenELEC) (see forums at
www.wetek.com for additional information, and also
www.openelec.tv for info on this Linux OS for HTPC):
OpenVPN (and AirVPN using OpenVPN) tries to renegotiate your credentials (username and password) every 60 minutes on the OpenElec-WeTek, and will disconnect the VPN service after 60 minutes if these are not provided when asked. In the VPN client configuration (i.e., filename.ovpn for AirVPN) file if you have the line auth-nocache, while this theoretically makes your system more secure by not not caching your username and password, it also prevents you from having your VPN connection for more than 60 minutes. To extend your VPN connection indefinitely, comment out this line to # auth-nocache, or simply delete it or not include it. When doing so, thereafter every 60 minutes when OpenVPN renegotiates for your credentials it will simply automatically get them from cache without you knowing it (it will be seamless). Example for changes to be made to your client configuration file ---
Configure your original downloaded AirVPN client configuration files (filename.ovpn) as follows:
Here is a sample file.ovpn and note the paths that are relevant to the locations of where the key and crt files reside on the OpenELEC (Linux OS of WeTek HTPC device):
BEGIN FILE CONTENTS
# --------------------------------------------------------
# Air VPN |
https://airvpn.org | Thursday 19th of March 2015 09:57:36 PM
# OpenVPN Client Configuration
# AirVPN_GB-Nunki_UDP-443
# --------------------------------------------------------
client
dev tun
proto udp
remote 78.129.153.40 443
resolv-retry infinite
nobind
ca /storage/.config/vpn-config/airvpnca.crt
cert /storage/.config/vpn-config/airvpnuser.crt
key /storage/.config/vpn-config/airvpnuser.key
persist-key
persist-tun
remote-cert-tls server
auth-user-pass /storage/.config/vpn-config/pass.txt
# auth-nocache OR JUST NOT INCLUDE THIS LINE - WITHOUT AUTH-NOCACHE, EVERY 60 MINUTES OPENVPN WILL GET CREDENTIALS FROM CACHE - STAYING CONNECTED, OTHERWISE DISCONNECTS AFTER 60 MINUTES
tls-auth /storage/.config/vpn-config/airvpnta.key 1
cipher AES-256-CBC
comp-lzo no
verb 3
explicit-exit-notify 5
END FILE CONTENTS