I try to start openvpn at boot on a machine running Xubuntu 18.04. I put my credentials of the service I use in a separate file and put the name of that file in the OVPN file as described in: https://askubuntu.com/questions/464264/starting-openvpn-client-automatically-at-boot#464269. When I type: sudo openvpn /etc/openvpn/name.ovpn, openvpn does not ask for my credentials and starts with no errors.
So that is okay. However, I tried every trick as mentioned in the url mentioned earlier but I can not make openvpn build the connection at bootup. Netually I reboot the machine after every change.
Then I tried to add the service to cron with sudo crontab -e. @reboot openvpn /etc/openvpn/name.ovpn The changed crontab is installed. After reboot the machine I am still not protected. ifconfig confirms there is no VPN tunnel set up. According to syslog, openvpn does start without errors. The cron log nor the openvpn log show errors.
I also read many other information on the internet but without any other real solution.
I am at a loss here. Can anyone help?
Thank you in advance.