detecting when a connection is up

How to customize and extend your OpenVPN installation.
Post Reply
Skaperen
OpenVPN Power User
Posts: 89
Joined: Fri Aug 05, 2011 3:02 pm
Contact:

detecting when a connection is up

Post by Skaperen » Fri Oct 04, 2019 4:38 am

i have a script (Python3) that gets details from a config file, starts the OpenVPN process in the background, then needs to wait for the tunnel to be connected before it can finish the configuration of the whole network. is there a suggestion of how to detect it is up? pings don't work until the configuration of the network. the logs are not saved by this script. the thought i have is to test the existence of the tunnel interface. once it exists and is in the up state then the script can finish its tasks so the network can be used. does this make sense?

Post Reply