|
|
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. Heather~ ----- Original Message ---- From: jessica six <jessica6_2000@xxxxxxxxx> To: Heather Lockridge <heathlock_1997@xxxxxxxxx> Sent: Tuesday, December 11, 2007 2:03:04 PM Subject: Re: [Openvpn-users] Linux: Is there a way to remove client tun interface when Internet interface is unplugged? Heather: It looks like the reply you got from Les Mikesell might be better. He mentioned the "--ping-exit " option. It is described here: http://openvpn.net/man.html --- Heather Lockridge <heathlock_1997@xxxxxxxxx> wrote: > Hi all, > > Is there a way to remove the client tunnel interface > when the internet connection disappears, like if > someone unplugs the network cable leading to the > internet? > > I would think as long as the openvpn client sw is > running this would be bad. > > So, perhaps a better way of asking this question is: > Is there a way to stop the openvpn client instance > when the ethernet interface for the Internet > connection goes down? > > Thanks, > > Heather! > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Openvpn-users mailing list > Openvpn-users@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/openvpn-users > ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ______________________ OpenVPN mailing lists https://lists.sourceforge.net/lists/listinfo/openvpn-users |