Date: Tue, 24 Oct 2006 00:23:00 +0200 From: eternityos@free.fr To: freebsd-ipfw@freebsd.org Subject: Re: pf's "borrow" equivalent Message-ID: <1161642180.453d40c4d48f7@imp6-g19.free.fr>
next in thread | raw e-mail | index | archive | help
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 <wash@wananchi.com> >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" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1161642180.453d40c4d48f7>