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

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
yurydev1
OpenVpn Newbie
Posts: 3
Joined: Mon Sep 11, 2023 3:23 pm

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

Post by yurydev1 » Tue Sep 12, 2023 10:58 am

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?

Post Reply