From owner-freebsd-net@FreeBSD.ORG Tue Jul 31 09:00:23 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76ADF16A417 for ; Tue, 31 Jul 2007 09:00:23 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id 2FA9113C457 for ; Tue, 31 Jul 2007 09:00:23 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 5B58841C66D; Tue, 31 Jul 2007 11:00:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id gvX2EFZNG9Gw; Tue, 31 Jul 2007 11:00:05 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id D979541C693; Tue, 31 Jul 2007 11:00:05 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 94905444885; Tue, 31 Jul 2007 08:58:53 +0000 (UTC) Date: Tue, 31 Jul 2007 08:58:53 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Antony Mawer In-Reply-To: <46AE9D28.6000801@mawer.org> Message-ID: <20070731085626.R31116@maildrop.int.zabbadoz.net> References: <7feb82f40707301752j2ccb235eof197fed852188bd5@mail.gmail.com> <46AE9D28.6000801@mawer.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org, Isaac Kohen Subject: Re: IPSEC connection drops and doesn't recover X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2007 09:00:23 -0000 On Tue, 31 Jul 2007, Antony Mawer wrote: Hi, > On 31/07/2007 10:52 AM, Isaac Kohen wrote: >> I'm running 6.2-REL. My kernel is compiled with IPSEC, IPSEC_ESP, and >> IPSEC_DEBUG. I've installed ipsec-tools 0.6.7. >> >> I've had an openbsd ipsec/vpn gateway for several years that recently died >> as a result of hardware failure. I moved my configuration from isakmpd to >> racoon >> and can connect successfully to all the linksys vpn "routers" that I could >> connect to before. Problem is that after a few hours the connection drops >> and doesn't come back up until I do setkey -F and setkey -FP and restart >> racoon. My openbsd/isakmpd setup worked very well so I'm guessing it's not >> those cheap linksys boxes. >> >> I thought it was racoon at first, so I installed and ran isakmpd on freebsd >> using my isakmpd.conf from the openbsd box that I knew worked, but the same >> problem persisted. > > Another "me too" -- we have been running an IPSEC link between FreeBSD > 6.2-RELEASE gateway and a Billion 7404VGO VPN router. The VPN link itself > operates fine, but frequently the connection drops and we have to go through > a song-and-dance of restarting racoon, the VPN router, etc trying to get it > back up and running. > > I haven't got around to tracking down the exact sequence necessary to bring > it back up and running, but eventually after restarting everything we manage > to get things operating again (until the next time). > > I will try and find some more details when I get the opportunity... The situation might change if you do a: sysctl net.key.preferred_oldsa=0 -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT Software is harder than hardware so better get it right the first time.