From owner-freebsd-net@freebsd.org Sat Sep 26 14:31:03 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4630BA09F42 for ; Sat, 26 Sep 2015 14:31:03 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id A4ABB96 for ; Sat, 26 Sep 2015 14:31:01 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.TOMSK.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38879170 for freebsd-net@freebsd.org; Sat, 26 Sep 2015 20:30:59 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7) with ESMTP id t8QEUvCK088551 for ; Sat, 26 Sep 2015 20:30:59 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t8QEUvos088550 for freebsd-net@freebsd.org; Sat, 26 Sep 2015 20:30:57 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Sat, 26 Sep 2015 20:30:57 +0600 From: Victor Sudakov To: freebsd-net@freebsd.org Subject: Re: transport mode IPSec with Windows 7, static keys Message-ID: <20150926143057.GA88375@admin.sibptus.tomsk.ru> References: <20150922084111.GA89385@admin.sibptus.tomsk.ru> <20150925064234.GA63016@admin.sibptus.tomsk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150925064234.GA63016@admin.sibptus.tomsk.ru> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2015 14:31:03 -0000 Victor Sudakov wrote: > > However, FreeBSD+racoon and Windows 7 with its builtin IPsec > PolicyAgent service work more or less (E: 3des-cbc, A: hmac-sha1) on > pre-shared secret. > > The only problem I have encountered is that after Windows reboot, > traffic stops flowing between FreeBSD and Windows until racoon is > restarted. > > I wonder if it has anything to do with the net.key.preferred_oldsa > setting. The two sysctls: net.key.preferred_oldsa=0 net.key.blockacq_count=0 seem to fix the reboot problem. Could anyone explain the mechanism? I have never had to tweak them to get IPsec working between FreeBSD hosts. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru