i am using OVPN 2.5.1 as Client on Raspian.
The OVPN-Client is starting as systemd-service when system is starting. OVPN is running as root
The client has a network connection over WiFi. Wifi is configured via wpa_supplicant.
At the end of the OVPN-config, there is the following entries:
Code: Select all
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
The Script update-resolv-conf itself is starting the script
/sbin/resolvconf
In this script, it will try to kill a process with "kill".
In my case, this cause a conflict with the upcoming Wifi-Connection.
The result is that the systemd-service will fail starting
Log:
Code: Select all
Exiting due to fatal error
WARNING: Failed running command (--up/--down): external program exited with error status: 1
/sbin/resolvconf: 31: kill: Operation not permitted
dhcp-option DNS 192.168.3.102
1) when I comment out up and down script for update-resolv-conf, systemd-service starts without any errors when system is starting
2) when I restart systemd-service manually after booting finished, the OVPN-client including update-resolv-conf works.
So I suppose there is a conflict with the upcoming Wifi-Connection and systemd-service of OVPN is starting.
What can I do so solve this problem?