kitschen When my OpenVPN connection is up, I want to start some automatic request to the server. For this I set up an "up" script which does the work. While OpenVPN executes the "up" script, it seems the server is not yet reachable. For example a ping remains unanswered. A few moments later, the ping will work without problem. Is the up script executed when the connection is fully up? Ie. can I expect the server to answer a ping in the "up" script? Should I simply be waiting (sleep) a few seconds in the up script for the connection to be "really" up? What may cause this delay? Is the "up" script executed as a separate process - or will I block something by using a sleep during some time? Any help is much appreciated. Philipp
kitschen I'm using TUN. Does this make a difference? Is there a recommended way of starting a client request when the connection is fully up? I'm on linux. Maybe I could fork the process in the background...
kitschen OK, simply forking inside the up script with nohup myCommand & works. Thanks and regards Philipp