Trigger script after the connection is fully established and client could ping to server

How to customize and extend your OpenVPN installation.
Post Reply
lordofire
OpenVpn Newbie
Posts: 1
Joined: Fri May 07, 2021 5:08 am

Trigger script after the connection is fully established and client could ping to server

Post by lordofire » Fri May 07, 2021 5:53 am

Hi there,

My requirement here is to trigger a script after the client has finished establishing the connection to server, after server is pingable from client. I have seen existing hooks like --up and --route-up, but neither of them provides server accessibility when the registered script is triggered. The system I'm using is ubuntu, and I think it is okay if we just skip openvpn hook and resort to systemd and trigger the script after an successful "sudo service openvpn@client start/restart", but I did not find a graceful solution on this either.

Please help and much appreciated.

Thanks.

Post Reply