glorsh66 I have two servers and two clients that are using OpenVPN. What is the best option for the client to ensure that it will try to reconnect if something wrong with the network or server? Right now I am using sudo nano /etc/default/openvpn AUTOSTART="all" option to run the client at the startup. It seems to be working, but I don't know if a client will try to reconnect. Because after I changed some settings on the server, and restarted the OpenVPN daemon the connection on the client stayed in the operational state. Does OpenVPN check the connection status and try to reconnect if something wrong? Does it ping the server? How is it implemented? What configuration options are available? What are the best options to ensure that the connection is up? (for ubuntu 16 and ubuntu 20, because I suppose there could be some differences in nmcli functionality)?
glorsh66 TinCanTech wrote Use systemd. I tried to make my own service, but how will it know if the connection has been lost?