From owner-freebsd-net@FreeBSD.ORG Sun Jun 16 14:40:25 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E18622D2 for ; Sun, 16 Jun 2013 14:40:25 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id B74A81AF8 for ; Sun, 16 Jun 2013 14:40:25 +0000 (UTC) Received: from jre-mbp.elischer.org (ppp121-45-237-17.lns20.per1.internode.on.net [121.45.237.17]) (authenticated bits=0) by vps1.elischer.org (8.14.5/8.14.5) with ESMTP id r5GEeD3s005890 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 16 Jun 2013 07:40:17 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <51BDCE49.1000207@freebsd.org> Date: Sun, 16 Jun 2013 22:40:09 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Damien Fleuriot Subject: Re: How to find out a VPN link has gone down (or better, come back up)? References: <51BD91E8.8060501@higonnet.net> <5DD08E44-E481-4FF9-A5A8-AFE3E341A57C@my.gd> In-Reply-To: <5DD08E44-E481-4FF9-A5A8-AFE3E341A57C@my.gd> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" , Bernard Higonnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jun 2013 14:40:25 -0000 On 6/16/13 8:51 PM, Damien Fleuriot wrote: > I might be wrong but wouldn't that be a job for devd ? > > Alternatively set a cron job every minute to reinstall the route. use the up/down scripts to install the routes... that's what they are for. > > > On 16 Jun 2013, at 12:22, Bernard Higonnet wrote: > >> I have a machine, FreeBSD 8.1-RELEASE #0, running a VPN (MPD5) server. >> >> Every once in a while, the link goes down, presumably because of some third-party event on the network. >> >> When this happens, an element placed in the routing table by hand disappears since the node on the VPN server to the far-off client machine no longer exists (even though the entry in the routing table is marked "permanent" when it does exist). When the network problem goes away, the VPN link is automatically restored, but not the routing table. >> >> Can someone tell me if there is a way to be notified that the link has been restored so that I can run a script etc. to restore the routing table to what I want? >> >> TIA >> Bernard Higonnet >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >