From owner-freebsd-net@FreeBSD.ORG Thu Jan 12 00:59:32 2012 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 A9EB9106564A; Thu, 12 Jan 2012 00:59:32 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 0AFF08FC16; Thu, 12 Jan 2012 00:59:32 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id DA1AA25D386E; Thu, 12 Jan 2012 00:59:30 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id ECD06BD800E; Thu, 12 Jan 2012 00:59:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id SiDitGUUgxg8; Thu, 12 Jan 2012 00:59:28 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id D4380BD800D; Thu, 12 Jan 2012 00:59:28 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <4F0DD127.4040205@FreeBSD.org> Date: Thu, 12 Jan 2012 00:59:27 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <6B1A8EF0-C5BA-4EF3-B886-8F7C490564E5@lists.zabbadoz.net> References: <4F0DD127.4040205@FreeBSD.org> To: Alex Dupre X-Mailer: Apple Mail (2.1084) Cc: freebsd-net@FreeBSD.org Subject: Re: Filtering on IPSEC 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: Thu, 12 Jan 2012 00:59:32 -0000 On 11. Jan 2012, at 18:12 , Alex Dupre wrote: > Hi All, > I've setup my first IPSEC VPN beetween FreeBSD 8.2 and CheckPoint = VPN-1. I've used a gif interface for the tunnel, setkey for security = policies and racoon for ikev1. All is working fine, but I get a strange = behavior: outgoing packets go via enc0, while incoming packets arrive in = gif0. To be precise, setting to '3' all the net.enc.* sysctls and = sending a ping via vpn, I see the echo request, the encapsulated echo = request, the encapsulated echo reply on enc0 and the echo reply on gif0. = Is it correct? I expected to see all 4 packets on enc0, and perhaps the = 2 clear packets also on gif0. The current behavior makes impossibile to = use firewall stateful filtering. Need more input. A) why are using gif? B) are you using transport = mode? > I have also another question (about NAT before IPSEC), but it's = partially related to this first issue, so I'll wait for a clarification = before exposing it. NAT before IPSEC can be done with ipfw, not with pf, don't know about = ipfilter. --=20 Bjoern A. Zeeb You have to have visions! It does not matter how good you are. It matters what good you do!