Why don’t you just use cron with a cycle time of a minute or so? Maybe it’s already enough to ping an essential target to figure out if the connection is established or not.
Sometimes you cannot see the wood for trees.
Thank you Terry with your pragmatic approach for bringing be back into reality. Erik’s reply was exactly what I was looking for a two way approach gives more security (reacting on event and later verifying of things are working).
Best regards
Wolfgang
My intention is to setup a redirection gateway on one IPfire in the location by setting up the routes 128.0.0.0 … with a separate script on connect.
I already read the posts in the old forum but since the config files in ovpn/n2nconfig/ are regenerated on each restart of the connection and the manual entry “redirection-gateway def1” gets deleted I found this an adequate way of setting up the routes per case.
Guess Erik has experiences with that also. Am I on the right way?
Hi Wolfgang,
you can start and stop the connection without overwriting the configuration. It will only be set to the defaults if you use the save button in the appropriate connection.
So if you want to extend the config with parameters which are not provided via WUI, you can stop the connection, edit the config and start the connection again. At that point only manual modification of the config should be done.