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?
What event gets generated on successfull connection closure on client side?
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Sep 11, 2023 3:23 pm