From owner-freebsd-net@FreeBSD.ORG Sun Jun 16 12:52:18 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 24AFBEFD for ; Sun, 16 Jun 2013 12:52:18 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) by mx1.freebsd.org (Postfix) with ESMTP id B0033182A for ; Sun, 16 Jun 2013 12:52:17 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id y10so1663142wgg.20 for ; Sun, 16 Jun 2013 05:52:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:x-mailer:from:subject:date :to:x-gm-message-state; bh=/OGXZ6/4ryQv/iA5eywxwL+ZMe04yxqS4mmYRNIaOSo=; b=FaAehpsV8EMQocv8Bap4iH8QG5txLSsju26ki5w+y4TNfk+Htz5WCuh0KJGuw7zXG8 r7mmC7BunRVEcZ+0jLMRLTVPVPkcv5pDAPCwaE1lllanKpB/NLLkDst8ucrONhNb1Ag9 Y2EFbavTP5dxbBiZgKi8PDDyQ5qJ//OvBh38i2myA7tdcerI1HLgXAQCvYNrWN8qJg4/ j8qWjIVq8ftbewMFBnTBuvht8QJ8YuB4PU9ajiJiMazWk/PJUcUxSib/WohLSaK3hse4 s0j8fTGLj30K+9OsPSNmtPWW83eHdtHwrOkW9x83Sdmwxq+fM1GMX0BLkk+hqIDFYeQ2 kC8Q== X-Received: by 10.180.107.163 with SMTP id hd3mr1741099wib.13.1371387136883; Sun, 16 Jun 2013 05:52:16 -0700 (PDT) Received: from [10.41.54.130] (94.16.90.92.rev.sfr.net. [92.90.16.94]) by mx.google.com with ESMTPSA id x13sm15316362wib.3.2013.06.16.05.52.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Jun 2013 05:52:15 -0700 (PDT) References: <51BD91E8.8060501@higonnet.net> Mime-Version: 1.0 (1.0) In-Reply-To: <51BD91E8.8060501@higonnet.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <5DD08E44-E481-4FF9-A5A8-AFE3E341A57C@my.gd> X-Mailer: iPhone Mail (10B144) From: Damien Fleuriot Subject: Re: How to find out a VPN link has gone down (or better, come back up)? Date: Sun, 16 Jun 2013 14:51:06 +0200 To: Bernard Higonnet X-Gm-Message-State: ALoCoQnH8qKTEpVhmK6VKWn5wB5bejbHXHQeFKasWHAThN6h0lrEw+krvYgXIYPXjL+SzAJqtdB0 Cc: "freebsd-net@freebsd.org" 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 12:52:18 -0000 I might be wrong but wouldn't that be a job for devd ? Alternatively set a cron job every minute to reinstall the route. On 16 Jun 2013, at 12:22, Bernard Higonnet wrote: > I have a machine, FreeBSD 8.1-RELEASE #0, running a VPN (MPD5) server. >=20 > Every once in a while, the link goes down, presumably because of some thir= d-party event on the network. >=20 > When this happens, an element placed in the routing table by hand disappea= rs since the node on the VPN server to the far-off client machine no longer e= xists (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 automat= ically restored, but not the routing table. >=20 > Can someone tell me if there is a way to be notified that the link has bee= n restored so that I can run a script etc. to restore the routing table to w= hat I want? >=20 > 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"