From owner-freebsd-ipfw@FreeBSD.ORG Mon Oct 23 22:23:02 2006 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org 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 AEDF916A407 for ; Mon, 23 Oct 2006 22:23:02 +0000 (UTC) (envelope-from eternityos@free.fr) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEE9B43D53 for ; Mon, 23 Oct 2006 22:23:01 +0000 (GMT) (envelope-from eternityos@free.fr) Received: from imp6-g19.free.fr (imp6-g19.free.fr [212.27.42.6]) by smtp4-g19.free.fr (Postfix) with ESMTP id 2C5CC33BD7 for ; Tue, 24 Oct 2006 00:23:01 +0200 (CEST) Received: by imp6-g19.free.fr (Postfix, from userid 33) id E57988E7F; Tue, 24 Oct 2006 00:23:00 +0200 (CEST) Received: from 201.38.238.66 ([201.38.238.66]) by imp6-g19.free.fr (IMP) with HTTP for ; Tue, 24 Oct 2006 00:23:00 +0200 Message-ID: <1161642180.453d40c4d48f7@imp6-g19.free.fr> Date: Tue, 24 Oct 2006 00:23:00 +0200 From: eternityos@free.fr To: freebsd-ipfw@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 201.38.238.66 Subject: Re: pf's "borrow" equivalent X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2006 22:23:02 -0000 Hi! Thank you for your answer, I seen this link, I already have most of this... What i really need to know is the principle of having 2 persons using a same pipe but having a repartited bandwidth when both are using internet and having full bandwidth of this pipe when only one user is using this bandwidth. I seen in the link you pointed this: pipe 2 config queue QUEUE_DOWN bw BANDWIDTH_DOWN queue 3 config queue QUEUE_DOWN pipe 2 mask dst-ip 0xffffffff weight 1 mask all queue 4 config queue QUEUE_DOWN pipe 2 mask dst-ip 0xffffffff weight 100 Is this what I am looking for ? If yes, would this mean that in my case, I need my users to have 2 queues of the same weight on one pipe ? I have read the dummynet documentation and I'm still a bit confused about what the weight is for... Thanks a lot :) Pierre. Odhiambo WASHINGTON wrote: >* On 23/10/06 18:58 +0200, eternityos@free.fr wrote: >| >| >| Hi everyone, >| >| I'm new to this list, I use ipfw+dummynet for traffic shaping. >| I'm having an issue... >| I have two users that share a same pipe of 128Kbit/s, so when a user is >| not using internet, the other gets 128KBit/s. >| >| Now my issue is, when both users use internet at the same time, let's say >| user A is using a P2P software and user B simply surfing the web. >| >| Logicaly, user A is taking the whole bandwidth and user B is having issues >| surfing. >| >| I want to guarantee at least 64K, so user A will have at least 64K when using >| internet. >| >| I already asked about this in #freebsd channel in freenode.... and I been >| answered >| "use pf's borrow option". > >There is a very good tutorial here: > >http://alex.kruijff.org/FreeBSD/Firewall_Setup.html > >The rules will guarantee that each user gets equal share of the >available bandwidth ;) > > >-Wash > >http://www.netmeister.org/news/learn2quote.html > >DISCLAIMER: See http://www.wananchi.com/bms/terms.php > >-- >+======================================================================+ > |\ _,,,---,,_ | Odhiambo Washington >Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com > |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 > '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 >+======================================================================+ > >//GO.SYSIN DD *, DOODAH, DOODAH >_______________________________________________ >freebsd-ipfw@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw >To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" > >