I have an Ubuntu 14.04 Server with an OpenVPN Server running on it.
I would like to have an OpenVPN client from this machine connect to a remote machine in order to save backup files on the remote machine.
I already read that it is possible to have server and client and I have config and certificate files for the client in a folder seperate from the normal openvpn folder.
The big problem is that the Backup-User has no root priviledges and is not supposed to receive any either. As a result this user cannot create a VPN connection.
The OpenVPN client connection should only be active when needed, so I can't just activate it and leave it be. Is there maybe a way to start the VPN client connection automatically at a certain time and same with closing the connection?
sudo
before your command as it will be runed as root anyway... http://askubuntu.com/questions/173924/how-to-run-a-cron-job-using-the-sudo-command – Ivan Temchenko Mar 08 '16 at 08:47