From owner-freebsd-security@FreeBSD.ORG Thu Nov 11 12:27:27 2004 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DED316A4CE for ; Thu, 11 Nov 2004 12:27:27 +0000 (GMT) Received: from shellma.zin.lublin.pl (shellma.zin.lublin.pl [212.182.126.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9017943D3F for ; Thu, 11 Nov 2004 12:27:26 +0000 (GMT) (envelope-from pawmal-posting@freebsd.lublin.pl) Received: by shellma.zin.lublin.pl (Postfix, from userid 1018) id 055FF347BA8; Thu, 11 Nov 2004 13:19:11 +0100 (CET) Date: Thu, 11 Nov 2004 13:19:11 +0100 From: Pawel Malachowski To: Brett Glass Message-ID: <20041111121911.GB21054@shellma.zin.lublin.pl> References: <200411100310.UAA12654@lariat.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200411100310.UAA12654@lariat.org> User-Agent: Mutt/1.4.2i cc: freebsd-security@freebsd.org Subject: Re: Firewall rules that discriminate by connection duration X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 12:27:27 -0000 On Tue, Nov 09, 2004 at 08:10:30PM -0700, Brett Glass wrote: > I'm interested in crafting firewall rules that throttle connections > that have lasted more than a certain amount of time. (Most such > connections are P2P traffic, which should be given a lower priority > than other connections and may constitute network abuse.) Alas, it > doesn't appear that FreeBSD's IPFW can keep tabs on how long a > connection has been established. Is there another firewall for > FreeBSD that can? Problem with P2P is not that connections take long time, but that there are plenty of them. You may consider using patch I posted on freebsd-ipfw@ few days ago to lower weight of flows using dummynet, if number of connections is greater than N per host, for example. -- Paweł Małachowski