Persistent tunnel vpn
From BluWiki
Rainer Sokoll <R.Sokoll@xxxxxxxxxxxx> said: > On Wed, Jun 16, 2004 at 03:36:13PM +0200, Jon Bendtsen wrote: > > Hi, > > > Are there any ways i can get openvpn to start up before the client logs > > on to the windows laptop, > > such that they can logon to the windows domain through the openvpn > > tunnel ? > > You could run openvpn as a service. Then the tunnel would be present > when the user logs in. > But: This seems to work only if the client has a connection to the > openvpn server (of course). > For example, if my client is in a hotel, the user can lo onto his laptop > using the cached credentials. Then, he fires up a dialup connection to an > ISP of his choice. But the openvpn service does not notice the new > internet connection - no tunnel. > It would be great if the service listens in the background an build the > tunnel immediataly if it can reach the openvpn server. > Or do I miss something? The Windows client already does this. In fact, I use this feature all the time on my laptop. If I'm disconnected from the internet, the OpenVPN client waits until the internet connection is reestablished, then it reconnects to the server. The key is having something like this on the client: # Client snippet ping 10 ping-restart 60 persist-tun persist-key resolv-retry infinite And something like this on the server: persist-key persist-tun ping-timer-rem ping-restart 60 ping 10