Tune ’reneg-secs’, so the client will ’log-in’ periodically (default 3600s). 
Then in the auth handler you can disconnect them upon need.

 

From: Aleksandar Ivanisevic [mailto:aleksan...@ivanisevic.de] 
Sent: Thursday, May 28, 2020 8:24 PM
To: openvpn-users@lists.sourceforge.net
Subject: Re: [Openvpn-users] graceful client disconnect

 

 





On 28. May 2020, at 15:04, Lev Stipakov <l...@openvpn.net 
<mailto:l...@openvpn.net> > wrote:

 

> In UDP server mode, send RESTART control channel command to connected 
> clients. The n parameter (default=1) 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.

 

Thanks, Almost perfect! ;) Now, is there a way to send RESTART control message 
only to the specific client, or at least decide in runtime what the n parameter 
will be, as I don’t know in advance whether the server will be restarted to 
rebalance the clients or to change the configuration.

 

_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to