Page 1 of 1

What event gets generated on successfull connection closure on client side?

Posted: Tue Sep 12, 2023 10:58 am
by yurydev1
What I need is to run a script only on successfull connection closure, i.e. in 'route-up' (with 'route-delay' set) script I set new routes (via vpn tunnel) if there is a successfull connection established and once the successfull connection closed I want to remove the added routes - how can I do this?

'route-pre-down' gets executed even without successfull connection, just by fact the openvpn service restarts

On server you can can catch 'client-disconnect' event (which probably serves the purpose), but what about client?