Restart OpenVPN client service configuration automatically

Started by Yourry, January 15, 2023, 11:52:35 AM

Previous topic - Next topic
Hi,
I have two OpenVPN clients on my OpenSense machine whose server config I don't manage.
Unfortunately from time to time, the two clients can be in the same IP range and this gives me problems for the routing, here is an illustration of the problem:


In this case, in the "VPN: OpenVPN: Connection Status" menu, I restart the service until the vpn server gives me another ip address:



Once done, everything works and no more problems:


But how do you do this automatically? On the OpenVPN client side, there is a command/option that can ban an IP?
Thanks for your help