Set Explicit Exit Notify to ``1`` by default for new OpenVPN client instances
--explicit-exit-notify n In UDP client mode or point-to-point mode, send server/peer an exit notification if tunnel is restarted or OpenVPN process is exited. In client mode, on exit/restart, this option will tell the server to immediately close its client instance object rather than waiting for a timeout. The n parameter (default 1 if not present) controls the maximum number of attempts that the client will try to resend the exit notification message. In UDP server mode, send RESTART control channel command to connected clients. The n parameter (default 1 if not present) controls client behavior. With n = 1 client will attempt to reconnect to the same server, with n = 2 client will advance to the next server.
This will allow the OpenVPN client to disconnect/shutdown gracefully.
same as #11520
Updated by Viktor Gurov 9 months ago
Updated by Jim Pingle 9 months ago
We already have a GUI option for this. It only works with UDP, so enabling it unilaterally is not viable. At most we could set
exit_notify in the tunnel config for new instances as a default and that wouldn't change the behavior of old instances.