[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: jessica six <jessica6_2000@xxxxxxxxx>
  • Date: Mon, 10 Dec 2007 14:02:41 -0800 (PST)

--- 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.
> 

Perhaps a 5 minute cron job that checks whether it can
connect/ping to a host (or a few hosts) only reachable
when the vpn is up.  If it can not reach those hosts,
it assumes there is no vpn connectivity, kills the
openvpn process and thus kills the interface.




______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users