From owner-freebsd-net@FreeBSD.ORG Wed Feb 28 08:50:55 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F85516A403 for ; Wed, 28 Feb 2007 08:50:55 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id 1512613C494 for ; Wed, 28 Feb 2007 08:50:55 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id 5CEC21FFD8E; Wed, 28 Feb 2007 09:50:53 +0100 (CET) Received: by transport.cksoft.de (Postfix, from userid 66) id E25621FFEB2; Wed, 28 Feb 2007 09:50:47 +0100 (CET) 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 36ECF444885; Wed, 28 Feb 2007 08:50:41 +0000 (UTC) Date: Wed, 28 Feb 2007 08:50:40 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: freebsd-net@freebsd.org In-Reply-To: <45E53F7D.4030703@netfence.it> Message-ID: <20070228084928.Y64827@maildrop.int.zabbadoz.net> References: <45E21468.4060200@netfence.it> <20070227222316.R60173@fledge.watson.org> <45E53F7D.4030703@netfence.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de Cc: Robert Watson Subject: Re: LOR with divert sockets 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: Wed, 28 Feb 2007 08:50:55 -0000 On Wed, 28 Feb 2007, Andrea Venturoli wrote: > Robert Watson wrote: > >> What versions of ip_fw2.c and ip_divert.c were in use? > > From i386/6.2-RELEASE-p1, i.e.: > src/sys/netinet/ip_fw2.c,v 1.106.2.21 2006/10/10 18:39:38 bz > src/sys/netinet/ip_divert.c,v 1.113.2.2 2006/05/16 07:27:48 ps > > > >> Also, could you let me know if you use any uid/gid rules in your IPFW rule >> set? > > Yep. > > 04000 allow tcp from me to any uid squid out via xl0 setup keep-state > > I use this to allow squid to retrieve everything according to its own > security settings. I am unsure but this should still be true for at least RELENG_6. I can only remember that there was work in progress but cannot remmember things were patched and where or not... %man ipfw | col -b | grep -5 'Rules which use uid' | tail -7 | head -5 Rules which use uid, gid or jail based matching should be used only if debug.mpsafenet=0 to avoid possible deadlocks due to layering violations in its implementation. -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT