Date: Thu, 13 Jun 2002 06:53:54 -0400 From: "Dan Langille" <dan@langille.org> To: freebsd-hackers@FreeBSD.ORG Subject: Re: how to automagically restart net/pptpclient? Message-ID: <20020613105546.490303F28@bast.unixathome.org> In-Reply-To: <20020528210531.X299-100000@leelou.in.tern> References: <20020528183156.6C6113F35@bast.unixathome.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 28 May 2002 at 21:08, Lukas Ertl wrote: > On Tue, 28 May 2002, Dan Langille wrote: > > > That looks good. I've tried it, but have been unable to connect to the > > office, which is running an MS PPtP server. I know the *can* work > > because pptp-client can connect. FWIW, here's what I'm running from cron every five minutes: #!/bin/sh ping -n -c 1 -t 2 10.0.1.249 2>&1 > /dev/null if [ $? -ne 0 ] then NETMASK=`ifconfig tun0 | grep -c netmask` if [ $NETMASK -eq 0 ] then echo "TUN0 is not healthy. starting VPN again." /usr/local/etc/rc.d/pptp.sh start else # echo "TUN0 looks healthy" fi else # echo "link is OK" fi -- Dan Langille To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020613105546.490303F28>