From owner-freebsd-ipfw Tue Dec 17 18:33:48 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2BC937B401 for ; Tue, 17 Dec 2002 18:33:46 -0800 (PST) Received: from smtp.netcabo.pt (smtp.netcabo.pt [212.113.174.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8452743E4A for ; Tue, 17 Dec 2002 18:33:45 -0800 (PST) (envelope-from brunomiguel@netcabo.pt) Received: from cheetah ([213.22.35.27]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.5329); Wed, 18 Dec 2002 02:31:23 +0000 From: "Bruno Afonso" Organization: Artists, Inc. To: freebsd-ipfw@freebsd.org Date: Wed, 18 Dec 2002 02:33:26 -0000 MIME-Version: 1.0 Subject: Dummynet and bandwidth sharing Reply-To: brunomiguel@netcabo.pt Message-ID: <3DFFDE76.8473.48139C@localhost> X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-OriginalArrivalTime: 18 Dec 2002 02:31:23.0208 (UTC) FILETIME=[8E664C80:01C2A63D] Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am trying to improve the network in my college (I'm a sysadmin there) and in one floor we have about 40 computers being natted. (I use ipnat for that, but that's irrelevant) We don't have a fixed bandwith here, as it changes a lot throughout the day, so I've been seting up pipes with bw 0. (it's a 100megbit network) In order to share the bandwith equally among the users, I am starting to use dummynet. I have setup a global pipe and created queues per ip (src-ip or dst-ip) using mask. I created several queues command (with mask) for "protocol" priorities like http, ssh, etc. (of course, protocol is specified at ipfw ruleset) This is all ok since I want to give certain protocols priority status (like ssh), but I wonder if I wanted to do a different thing: I would like all users to share equally the bandwith, and give priorities for each user inside his own bandwith. I could create a pipe for each user, but for that I will have to create infinite bandwith pipes (and that's a lot of pipes, we have laptop users) and add rules for queues for each pipe. This would mean that if I wanted 4 rules per pipe, I would need at least 4*pipes queues rules, and the same ipfw rules. This would make ssh for a user use his bandwith with priority instead of a "global" priority. Am I missing something? What's the best way to do this? do a shell script ? :-) ps: I am using ipfw1, but I don't mind at all using ipfw2. Many thanks in advance, Bruno Miguel Afonso, Biological Eng. student. brunomiguel at dequim dot ist dot utl dot pt D.E.Q. @ I.S.T. - Portugal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message