From owner-freebsd-stable@FreeBSD.ORG Fri Nov 4 13:18:56 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FFA81065674 for ; Fri, 4 Nov 2011 13:18:56 +0000 (UTC) (envelope-from lists@c0mplx.org) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) by mx1.freebsd.org (Postfix) with ESMTP id D7E968FC14 for ; Fri, 4 Nov 2011 13:18:55 +0000 (UTC) Received: from pi by home.opsec.eu with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1RMJfc-0008nZ-LV for freebsd-stable@freebsd.org; Fri, 04 Nov 2011 14:18:56 +0100 Date: Fri, 4 Nov 2011 14:18:56 +0100 From: Kurt Jaeger To: freebsd-stable@freebsd.org Message-ID: <20111104131856.GD68080@home.opsec.eu> References: <20111103155258.GA68080@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111103155258.GA68080@home.opsec.eu> Subject: Re: fbsd 8.2, L2TP over IPsec and pf ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 13:18:56 -0000 Hi! > I'm building a setup for incoming L2TP over IPsec connections > using FreeBSD 8.2-REL. > > IPsec based on ports/security/ipsec-tools, the l2tp part > works from net/mpd5/. > > If I disable the PF rules, everything works. > > If I enable the PF rules, the IPsec connection still comes up, > but the L2TP requests are lost somewhere in the PF rules 8-( > > Interestingly, tcpdump enc0 does not see any encrypted packets (!) > as long as the PF rules are active. > > Any hints on the PF rules required to allow those packets in ? Turns out: ESP in/out was missing. set debug misc in the pf.conf is worth a lot 8-) Thanks for all help (by private mail). I'll try to document this setup on some webpage (but this will take 1-2 month due to other projects 8-( -- pi@opsec.eu +49 171 3101372 9 years to go !