I am now on the home stretch at setting up a number of Raspberry Pi units as data collectors and they need to connect by OpenVPN to a dedicated server. The RPi units are running the latest version of Pi-OS based on Debian Buster.
I have seen different ways of accomplishing this: 1) Via the openvpn defaults --------------------------- In this case the client.ovpn file is renamed to client.conf and placed in /etc/openvpn. Then the defaults file is edited: sudo nano /etc/default/openvpn And the AUTOSTART line is set like this: AUTOSTART="client" Then: sudo systemctl restart openvpn 2) By adding a service ---------------------- Do the same as above with the client.ovpn file Then: sudo systemctl enable openvpn@client.service sudo service openvpn@client start or sudo systemctl start openvpn@client 3) By setting up a cron job running on startup ---------------------------------------------- In this case cron is set up to run openvpn with the client.conf file as config, not necessarily located in /etc/openvpn To me it seems easiest to do it the first way... But all 3 ways will probably work. What I want is for the RPi to connect to the vpn server when it starts so that it has access to the resources on the remote network. -- Bo Berglund Developer in Sweden _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users