From owner-freebsd-net@FreeBSD.ORG Tue Aug 14 10:20: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 74D1816A41B for ; Tue, 14 Aug 2007 10:20: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 2F8EB13C4A8 for ; Tue, 14 Aug 2007 10:20:06 +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 4E22641C6A1; Tue, 14 Aug 2007 12:20:05 +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 m9UzAfzrjxAb; Tue, 14 Aug 2007 12:20:04 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id E911C41C69F; Tue, 14 Aug 2007 12:20:04 +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 B48E0444885; Tue, 14 Aug 2007 10:18:46 +0000 (UTC) Date: Tue, 14 Aug 2007 10:18:46 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Eric Masson In-Reply-To: <86k5ryjutw.fsf@srvbsdnanssv.interne.kisoft-services.com> Message-ID: <20070814101809.Q87821@maildrop.int.zabbadoz.net> References: <867inzn945.fsf@srvbsdnanssv.interne.kisoft-services.com> <20070813091634.C87821@maildrop.int.zabbadoz.net> <86k5ryjutw.fsf@srvbsdnanssv.interne.kisoft-services.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Mailing List FreeBSD Network Subject: Re: pf rdr statement & ipsec processing interaction 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, 14 Aug 2007 10:20:07 -0000 On Tue, 14 Aug 2007, Eric Masson wrote: > "Bjoern A. Zeeb" writes: > > Hello Bjoern & all, > >> this is expected behavior. You want to read about the >> IPSEC_FILTERTUNNEL (fka. IPSEC_FILTERGIF) kernel option and >> enc(4). > > I've compiled a new kernel with IPSEC_FILTERGIF, tcpdump now can see > unencrypted L2TP packets on external interfaces but rdr rule doesn't > have any effect. > > Just to be sure, I added "device enc" to the kernel configuration and > changed the rdr rule to : > rdr on enc0 proto udp from any to ($ext_if) port 1701 -> 10.127.0.1 port 1701 > > But no success atm. Any idea ? ifconfig enc0 | grep UP if not, ifconfig enc0 up -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT Software is harder than hardware so better get it right the first time.