Nikolaos Hello, is it possible to add a new script hook for established connections at the OpenVPN client? It should be a hook similar to --up but executing a script at a later time, *after* a connection has been established and not immediately after the TUN/TAP interface has been opened. There are situations it would help to execute a script after the tunnel has been created and is working, e.g. to flush conntrack tables on Linux operating systems, control digital output ports (often used at industrial ethernet devices) and so on. Also it would be helpfull to be able to execute a script after a connection is interrupted but the TUN/TAP interface has not been closed. Thanks, Nikolaos
dazo Try using: --route-up <script> That's called after the connection is established and all network routes are set up.
janjust that's not completely true: when the 'route-up' script is called the connection is not fully established; for example, you cannot ping the VPN server IP at that moment (I just verified this using a very simple 'route-up' script).