From owner-freebsd-bugs@FreeBSD.ORG Wed May 31 15:00:40 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 882C716B211 for ; Wed, 31 May 2006 15:00:40 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFD1543D5E for ; Wed, 31 May 2006 15:00:36 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4VF0aZj053057 for ; Wed, 31 May 2006 15:00:36 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4VF0aZ5053055; Wed, 31 May 2006 15:00:36 GMT (envelope-from gnats) Resent-Date: Wed, 31 May 2006 15:00:36 GMT Resent-Message-Id: <200605311500.k4VF0aZ5053055@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Andrianov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 657CB16B03A for ; Wed, 31 May 2006 14:53:23 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AFA243D55 for ; Wed, 31 May 2006 14:53:12 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4VErCEW069810 for ; Wed, 31 May 2006 14:53:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k4VErBls069809; Wed, 31 May 2006 14:53:11 GMT (envelope-from nobody) Message-Id: <200605311453.k4VErBls069809@www.freebsd.org> Date: Wed, 31 May 2006 14:53:11 GMT From: Dmitry Andrianov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/98219: pf needs a way of matching on decapsulated IPSEC packets X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2006 15:00:44 -0000 >Number: 98219 >Category: kern >Synopsis: pf needs a way of matching on decapsulated IPSEC packets >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed May 31 15:00:36 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dmitry Andrianov >Release: 6.0 >Organization: >Environment: FreeBSD 6.0-RELEASE #0 >Description: It seems there is no way to distinguis ordinary packet arrived from the wire from the one decapsulated from IPSEC ESP packet. When kernel is build with IPSEC_FILTERGIF, decapsulated packet appears arriving on the same interface on which original ESP packet arrived. Normally you have to enable ESP packets: pass in quick on fxp0 proto esp from $vpn_peer to fxp0:any But to avoid dropping decapsulated packets by firewall, you also need pass in quick on fxp0 from $vpn_remote_net to $local_net But this rule will also allow any packet with spoofed IPs pretending to be from vpn_net to local_net to be accepted and processed. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: