From owner-freebsd-pf@FreeBSD.ORG Tue Apr 24 16:19:36 2007 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6437A16A401 for ; Tue, 24 Apr 2007 16:19:36 +0000 (UTC) (envelope-from jsimola@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 28B6D13C46A for ; Tue, 24 Apr 2007 16:19:36 +0000 (UTC) (envelope-from jsimola@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so2092298wra for ; Tue, 24 Apr 2007 09:19:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZB6bN1163rqxaqZZOC5oUZggN+/fP0jg69n5kDSye2oLvN4mR1zslfV6kc/LMu3+ygdDgKkAfGv2R/6dz5FyLMrs5LV5R/E6aKyTOvg+nQ3uPB8jfGagMKuYMqbGLIWzltPKsRsBHosx5BKbPeOP7lsemut3jXD8PvJ+knrGyrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Pw6Mm/OfImfsG6G2QbhuYjHz9WKDSExEG//nbnTEThcz4PFAclgzG30bQfUWYGZBxi7S5uAa1rPgtZLxW1T9Wuh8N00RBMKVv3XCvAVFQVKk7IbqKP++eEkzjGD4cL6HBEAxDF6ER7W6qSICOi2ea+VrMMjan4QF1TzucaTg9HE= Received: by 10.90.89.5 with SMTP id m5mr2591618agb.1177431575558; Tue, 24 Apr 2007 09:19:35 -0700 (PDT) Received: by 10.100.38.4 with HTTP; Tue, 24 Apr 2007 09:19:35 -0700 (PDT) Message-ID: <8eea04080704240919h5d478193n8bd4ae8f68516623@mail.gmail.com> Date: Tue, 24 Apr 2007 09:19:35 -0700 From: "Jon Simola" To: freebsd-pf@freebsd.org In-Reply-To: <462E26B0.9060509@vwsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <002101c785ec$0dd557d0$5501a8c0@ivorde> <462E26B0.9060509@vwsoft.com> Subject: Re: bandwidth limiting per ip with PF and ALTQ 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: Tue, 24 Apr 2007 16:19:36 -0000 On 4/24/07, Volker wrote: > Having a queue > with a guaranteed bandwidth for every connection (client) would > require the creation of "dynamic queues" on the fly. I'm not aware of > such possibility. ipfw with dummynet could do this. Very interesting feature. See DUMMYNET (specifically the mask option) in ipfw(8): "whereas when dynamic queues are used, each flow will share the parent's pipe bandwidth evenly with other flows generated by the same queue" The only way I can think of doing something similar in PF would be randomly assigning to one of N queues, like: pass out on $ext_if queue q1 probability 33% pass out on $ext_if queue q2 probability 50% pass out on $ext_if queue q3 -- Jon