From owner-freebsd-net@FreeBSD.ORG Tue Jul 31 10:25:07 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 B0CED16A419 for ; Tue, 31 Jul 2007 10:25:07 +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 65F9A13C45A for ; Tue, 31 Jul 2007 10:25:07 +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 03CDC41C693; Tue, 31 Jul 2007 12:25:06 +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 axOdajPR7DCL; Tue, 31 Jul 2007 12:25:05 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id A53F241C6A7; Tue, 31 Jul 2007 12:25: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 CB4FB444885; Tue, 31 Jul 2007 10:23:42 +0000 (UTC) Date: Tue, 31 Jul 2007 10:23:42 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Antony Mawer In-Reply-To: <20070731085626.R31116@maildrop.int.zabbadoz.net> Message-ID: <20070731102148.N31116@maildrop.int.zabbadoz.net> References: <7feb82f40707301752j2ccb235eof197fed852188bd5@mail.gmail.com> <46AE9D28.6000801@mawer.org> <20070731085626.R31116@maildrop.int.zabbadoz.net> 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 10:25:07 -0000 On Tue, 31 Jul 2007, Bjoern A. Zeeb wrote: > 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 My colleague just told me that I wrote =0. Most of the cheap appliances for some reason seem to require =1 which, of course leads to trouble, if one side reboots for example. -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT Software is harder than hardware so better get it right the first time.