From owner-freebsd-net@FreeBSD.ORG Sun Jun 16 10:22:49 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 56CF2CE2 for ; Sun, 16 Jun 2013 10:22:49 +0000 (UTC) (envelope-from bthcom@higonnet.net) Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [IPv6:2a01:e0c:1:1599::11]) by mx1.freebsd.org (Postfix) with ESMTP id 09F0712AA for ; Sun, 16 Jun 2013 10:22:41 +0000 (UTC) Received: from freebsd.higonnet.net (unknown [82.238.41.134]) by smtp2-g21.free.fr (Postfix) with ESMTP id 676E84B018B for ; Sun, 16 Jun 2013 12:22:34 +0200 (CEST) Received: from [127.0.0.1] (unknown [192.168.4.77]) by freebsd.higonnet.net (Postfix) with ESMTP id 30D5828419 for ; Sun, 16 Jun 2013 12:27:50 +0200 (CEST) Message-ID: <51BD91E8.8060501@higonnet.net> Date: Sun, 16 Jun 2013 12:22:32 +0200 From: Bernard Higonnet User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: How to find out a VPN link has gone down (or better, come back up)? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 130615-1, 15/06/2013), Outbound message X-Antivirus-Status: Clean 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 10:22:49 -0000 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