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?
How to customize and extend your OpenVPN installation.
1 post • Page 1 of 1
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Sep 11, 2023 3:23 pm