1. Install openvpn on OpenELEC:
In Kodi select SYSTEM / File Manager Select Add Source / Select None Type http://fusion.tvaddons.ag and select Done Highlight the box underneath and type "fusion" Select OK Go back to your Home Screen and Select SYSTEM Select Add-Ons / Select Install from zip file / fusion Select kodi-repos / english Select repository.metalkettle-x.x.x.zip Select Install from repository Select MetalKettles Addon Repository Select Program add-ons Select openvpn and select Install
2. Install TCPDUMP:
In Kodi select SYSTEM / Addons / Install from repository / OpenELEC(Unofficial) / Program Add ons / tcpdump
3. SSH into the RPI and create an autorun file under /storage/.config/autostart.sh.
#!/bin/sh ( sleep 10 openvpn --log /storage/vpn.log --config /storage/vpn.conf )&
4. Create a vpn.conf file under /storage with the following:
client dev tun proto udp remote whatever.yourhost.is 1194 resolv-retry infinite nobind persist-key persist-tun persist-remote-ip keepalive 10 120 tls-client remote-cert-tls server auth-user-pass comp-lzo verb 3 auth-user-pass /storage/auth.txt auth SHA256 cipher AES-256-CBC
5. Create an auth.txt file under /storage with the following:
username password
Now when you restart OpenELEC, it should auto connect to your VPN service.
Use tcpdump and /storage/vpn.log to verify connectivity.
0 Comments