[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Linux: Is there a way to remove client tun interface when Internet interface is unplugged?


  • Subject: Re: [Openvpn-users] Linux: Is there a way to remove client tun interface when Internet interface is unplugged?
  • From: Les Mikesell <lesmikesell@xxxxxxxxx>
  • Date: Thu, 13 Dec 2007 15:01:07 -0600

Heather Lockridge wrote:
> Thanks to all your suggestions.  I wound up doing this outside of openvpn.  I did a simple script run from cron that stops openvpn on the client machine if an IP on the internet is not pingable.   By doing this, I can stop the client openvpn if the ping doesn't get a reply.   This also removes the tun0 interface which is what I want.  Then later if that site does answer a ping, then I start openvpn again.
> 

Is there some reason you like that better than the keep-alive option 
that would do both for you?  Do you need the routes to go away when the 
connection is down?
______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users