From owner-freebsd-net@FreeBSD.ORG Fri Oct 25 16:13:54 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7FC3E3B7; Fri, 25 Oct 2013 16:13:54 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EA657210F; Fri, 25 Oct 2013 16:13:53 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id t61so4102802wes.34 for ; Fri, 25 Oct 2013 09:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=x5nXEqMVWdXhIW2QfseO5uTnGzSp21d5Rd1f19qD6Pc=; b=iRM6JxXjMQr5bBkmhox3e3zc+wJh3zPj3KKcut3fwGmQMKMXcv3v6ZpTjf/M7+3DLO vgHj533bQWF17NswHzc9suxVboFBHsZ5b7NODq0yU5wPkAzeLoPKAgAlNjppvNJcHuc0 iFetISO1vWsp7taT1Bxmx07lCcrX+CjJk34UeSvO+3zqdpItsERfoXuxOk2znYc8xFjo wAgYVcA8JIRTD+tHRcsEKHcoxXUxYhT5AAGGv8AqJFCP/Bqh84dMVVxXsOBvXtELn2Vc OAT65NdMe+Gm3ctaDiO/OxCn87Ub3hPacRUDiXOHmSHnXTvbpkNjCY0GZskQ5lwYePTe wJ9g== X-Received: by 10.180.83.228 with SMTP id t4mr3238679wiy.12.1382717632391; Fri, 25 Oct 2013 09:13:52 -0700 (PDT) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.194.236.131 with HTTP; Fri, 25 Oct 2013 09:13:32 -0700 (PDT) In-Reply-To: <20131025133517.GA5588@zeninc.net> References: <20131025133517.GA5588@zeninc.net> From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Fri, 25 Oct 2013 18:13:32 +0200 X-Google-Sender-Auth: Sz7BMM1gbpxBKdjhfmh4uCHO1P8 Message-ID: Subject: Re: Can't configure a simple IPSec (manual SA/SP) To: VANHULLEBUS Yvan Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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: Fri, 25 Oct 2013 16:13:54 -0000 On Fri, Oct 25, 2013 at 3:35 PM, VANHULLEBUS Yvan wrote= : > Do you use some bridging configuration ? Do you have some kind of > filtering/NAT rules ? Some complex routing tables ? No bridging, no firewall, no complex routing: the IPSec gate Fhave only one default gateway. > > > Can you send the output (on your IPsec gate) of: > sysctl -a net.inet.ip.fastforwarding [root@R2]~# sysctl -a net.inet.ip.fastforwarding net.inet.ip.fastforwarding: 1 I didn't understand why you ask me the status of the fastforwarding: Then I've disabled it, and re-try my IPsec configuration=85 Problem solved ! I've found the notice regarding fastforwarding being not compatible with IPSec in the inet(4) man page: I was not aware of this compatibility issue. I've proposed a little improvement on the rc.d/ipsec script for checking the fastforwarding state : PR/183303. Thanks a lot's Yvan !!