From owner-freebsd-pf@FreeBSD.ORG Fri Jan 6 07:53:02 2012 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADCA4106566B for ; Fri, 6 Jan 2012 07:53:02 +0000 (UTC) (envelope-from dhartmei@insomnia.benzedrine.cx) Received: from insomnia.benzedrine.cx (106-30.3-213.fix.bluewin.ch [213.3.30.106]) by mx1.freebsd.org (Postfix) with ESMTP id 2A3F08FC13 for ; Fri, 6 Jan 2012 07:53:01 +0000 (UTC) Received: from insomnia.benzedrine.cx (localhost.benzedrine.cx [127.0.0.1]) by insomnia.benzedrine.cx (8.14.1/8.13.4) with ESMTP id q067gQhV000454 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Fri, 6 Jan 2012 08:42:26 +0100 (MET) Received: (from dhartmei@localhost) by insomnia.benzedrine.cx (8.14.1/8.12.10/Submit) id q067gQAB026818; Fri, 6 Jan 2012 08:42:26 +0100 (MET) Date: Fri, 6 Jan 2012 08:42:25 +0100 From: Daniel Hartmeier To: Gerald McNulty Message-ID: <20120106074225.GA24312@insomnia.benzedrine.cx> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-pf@freebsd.org Subject: Re: Basic transparent filtering with pf X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2012 07:53:02 -0000 On Fri, Jan 06, 2012 at 02:51:07AM +0000, Gerald McNulty wrote: > Is this something that requires further pf rules? Or something in the C > code? I think you're describing http://lists.freebsd.org/pipermail/freebsd-net/2011-March/028225.html With pf, you could try to reroute the replies to the loopback interface: pass out on $ext_if reply-to lo0 inet proto tcp user {uid} keep state Maybe first start by matching on a specific IP (e.g. 100.100.100.5) instead of the uid, as a test. HTH, Daniel