Here a happy user of OSMC for already several years. I recently moved from a RPI 2 to a RPI 3 and a clean OSMC image. Now I have difficulties getting my openvpn connection getting to work again. This was running perfectly un the RPI2 with openvpn (Nordvpn) and Zomboided plugin in Kodi.
I tried to fully manual setup Openvpn in the SSH command line and connect to the NordVPN opvn server. The VPN server successfully connects, but then the outside internet connection is not functional anymore.
ifconfig is showing a connected TUN0 but e.g. ‘curl ipinfo.io’ is not returning anything anymore.
This is my log file. OpenVPN is autostarting (by systemd) and connecting to my VPN server then no outside internet connection is working anymore (for this log I was not using the update-systemd-resolved script).
After many hours of testing I am stuck and hope to get some support on how to troubleshoot this further and potentially get my VPN working again.
I think you’re going down a blind alley with systemd-resolved, which is disabled on OSMC and is likely to be incompatible with connman.
I don’t use Zomboided and have no real knowledge of its workings. However, vanilla OpenVPN should work, so you need to address this problem first. I’m sure Zomboided users will pitch in if the problem persists.
First off, please disable and stop the systemd-resolved service, then change references to
/etc/openvpn/scripts/update-systemd-resolved
to
/etc/openvpn/update-resolv-conf
then reboot
Once your OpenVPN link is up and running, please post the output from the following commands:
I create the file with root and chmod 755 in the/etc/openvpn dir:
the started the openvpn server (without link up / down) in my conf file; same result.
Then added in my open vpn conf file
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Now i get an error and openvpn is not connecting anymore.
Mon Dec 9 07:13:10 2019 /etc/openvpn/update-resolv-conf tun0 1500 1585 10.8.2.29 255.255.255.0 init
Mon Dec 9 07:13:10 2019 WARNING: Failed running command (–up/–down): could not execute external program
Mon Dec 9 07:13:10 2019 Exiting due to fatal error
WARNING: External program may not be called unless '--script-security 2' or higher is enabled.
so did you remove script-security 2 from the config file? It was there in your first post – and is needed.
One of the hazards of not providing full logsis that we can’t see what’s installed on your machine. In case you haven’t done so, you need to have also installed either the resolvconf or openresolv package.
Edit. It seems that the update-resolv-conf script is being treated as a configuration file (conffile).The rule is that a conffile isn’t reinstalled if the system believes that you have deleted it. Therefore the correct command to install missing confiles should have been:
Hi,
Can you give some more info about how you fixed this…
What is the /etc/openvpn/xxx.conf ?? Did you create it yourself or is that the .ovpn file?
My .ovpn is not in that folder…
Any help would be greatlt appreciated.