From owner-freebsd-pf@FreeBSD.ORG Thu Nov 22 08:44:14 2007 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 2608016A419 for ; Thu, 22 Nov 2007 08:44:14 +0000 (UTC) (envelope-from pawciobiel@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id 42CF113C502 for ; Thu, 22 Nov 2007 08:44:13 +0000 (UTC) (envelope-from pawciobiel@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so2448711nfb for ; Thu, 22 Nov 2007 00:44:12 -0800 (PST) Received: by 10.86.25.17 with SMTP id 17mr7850076fgy.1195689559219; Wed, 21 Nov 2007 15:59:19 -0800 (PST) Received: by 10.86.89.20 with HTTP; Wed, 21 Nov 2007 15:59:19 -0800 (PST) Message-ID: <2e420cc20711211559r46d374e6n23f75710415cede2@mail.gmail.com> Date: Wed, 21 Nov 2007 23:59:19 +0000 From: "P Bielecki" To: freebsd-pf@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: How to set up a queue for each host in the network? 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: Thu, 22 Nov 2007 08:44:14 -0000 Hi all, I share 2048Kbit SDSL line in a medium size network; every machine in the network have 256Kbit of bandwidth. (45 teacher's laptops + 19 * 19 pupil's PC's); I use ipfw and dummynet (with NATd and proxy Squid) but decided to try PF and ALTQ. In the last year user's demands had grown up and now, understandably, they want to have "faster internet". Unfortunately my budget is not big enough to pay for leased line. I need an advice on how to set up a queue for each host in the local network so the host can have 256Kbit queue and it could borrow bandwidth from its parent as well. What would be the best way to set up a queue for each machine? Is there are way that I could use "addr/masklen" with queues like I used to do with ipfw dummynet pipes? I think I could parse dhcpd.conf and/or do a loop to create queue_list with all IP addresses but is this the only way? I understand that I can use list/table/macro to assigning traffic to a queue but can I use them for configuring queues too? And last one, is it possible to specify how much the queue can borrow from its parent? Please let me know your thoughts. Thanks in advance Paul