@sam_nazarko This is the result of attempting a tar backup with OpenVPN
osmc@osmc:~$ sudo systemctl stop mediacenter
osmc@osmc:~$ tar -czf kodi-backup.tar.gz .kodi
tar: .kodi/userdata/addon_data/script.openvpn/openvpn.log: Cannot open: Permission denied
tar: .kodi/temp/commoncache.socket: socket ignored
tar: Exiting with failure status due to previous errors
EDIT: Had a look with Filezilla. Obviously seesm to be the openvpn log file. Permission obviously seem to be the issue. Not sure how to change these as I can’t change through Filezilla as I need root permissions to change. Chmod. Have deleted file and doing another .tar backup.
Not sure what kodi/temp/commoncache.socket: socket ignored is.
You don’t need to back up the socket file. It will get recreated on first run anyway. Always stop Kodi with the above systemctl command before attempting a backup.
I think I’m close to getting this set up on rPi2 - I’d appreciated if someone could see below and point me in the right direction…
Following Brian Hornsby’s tutorial, I’ve gone through steps 1-8 - all ok. Problems start at step 9. When I try to access OSMC via ssh on my mac (Terminal), the command is not recognised:
“osmc@osmc-Giggleswick:~$ sudo openvpn /home/osmc/vpn-config/USEast.ovpn
sudo: openvpn: command not found”
I continued anyway with step 10 - installed script (via zip file on a memory stick). In step 11, I go into “usr” >> “sbin” but there is no “openvpn” folder. (Fwiw, per Raspbmc instructions, I’ve gone into ‘script’ and checked the “use sudo when running openvpn” option, and unticked password.)
I went onto step 12 anyway and imported the edited ovpn files. This step has at least partially worked, as, when I go into OpenVPN via Programs menu, a popup screen appears asking me which configuration I want to run. However, when I run any of them, I get an error (“Unable to connect to OpenVPN management interface”).
Further confusing me, when I try to access through FTP (using either the default pi or osmc logins, I get an error:
“Connection attempt failed with “ECONNREFUSED - Connection refused by server”.” (Fwiw, the osmc login is the one that works on ssh).
I was thinking about figuring out a way to only have certain services explicitly allow internet access via OpenVPN only. Like transmission, Flexget.
All other services/apps like Kodi itself can access internet directly (for streams, library scans etc) to have your full internet speed and low latency.
I know it is possible (either by creating a seperate eth0 service or by working with permissions) but I haven’t had time to dive into this. It does seem the world is fast moving towards VPN services to continue downloading certain media so it would make sense to do this per-app.
It would not make that much sense to go through the trouble if you have a paid and fast VPN - which helps you better in keeping safe… my paid vpn does not give me any noticable speed hiccups.
In my case it definitely would. I rarely watch normal TV, I use addons to watch tv broadcasts on demand. They are bound to national viewers only. Just like you can’t watch BBC outside the UK. Using a VPN for all internet traffic generated by OSMC would greatly limit my options to watch streams. There is also no need, only for torrents in my case.
With the app as it was, when it still worked, you could easily switch over to any VPN profile youd like. I used this to watch the BBC content you speak about, and another countrys VPN profile to watch the content limited to that country and soforth.
Can anyone chime in why this does not work anymore? The app does not open…
I recently looking the same thing and found a solution which help you too.
First there is no need of any vpn addon for OSMC and you didn’t need it too. Just buy any vpn provider which support PPTP. When you have access the vpn than set OSMC with that vpn provider PPTP. Following is the step by step process which you can follow:
First add a PPTP client by using following command:
sudo apt-get install pptp-linux
Now, you need to create a new file in /etc/ppp/peers and give it a name of your choice. Afterwards follow these configurations:
pty “pptp $VPNHOSTNAME –nolaunchpppd –debug”
name $USERNAME
password $PASSWORD
remotename PPTP
require-mppe-128
require-mschap-v2
refuse-eap
refuse-pap
refuse-chap
refuse-mschap
noauth
debug
persist
maxfail 0
defaultroute
replacedefaultroute
usepeerdns