From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 04:13:36 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id C3C2716A4CF; Thu, 16 Sep 2004 04:13:36 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 77498 invoked by alias); 28 Aug 2004 15:42:53 -0000 Delivered-To: unirz@vampire.homelinux.org Received: (qmail 77495 invoked from network); 28 Aug 2004 15:42:53 -0000 Received: from mailstud.rz.uni-karlsruhe.de (129.13.185.210) by p548081d7.dip.t-dialin.net with SMTP; 28 Aug 2004 15:42:53 -0000 Received: from spamstud.rz.uni-karlsruhe.de (spamstud.rz.uni-karlsruhe.de [129.13.185.237]) by mailstud.rz.uni-karlsruhe.de with esmtp (Exim 4.34 #1) id 1C15O8-00085U-9d for max.laier@stud.uni-karlsruhe.de; Sat, 28 Aug 2004 17:45:08 +0200 Received: from localhost (exim@[127.0.0.1]) by spamstud.rz.uni-karlsruhe.de with spam-scanned (Exim 4.34 #1) id 1C15O8-0006z9-3g for max.laier@stud.uni-karlsruhe.de; Sat, 28 Aug 2004 17:45:08 +0200 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by spamstud.rz.uni-karlsruhe.de with esmtp (Exim 4.34 #1) id 1C15O8-0006yy-1J for max.laier@stud.uni-karlsruhe.de; Sat, 28 Aug 2004 17:45:08 +0200 Received: from [212.227.126.215] (helo=mxng19.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1C15O7-0001h6-00 for max.laier@stud.uni-karlsruhe.de; Sat, 28 Aug 2004 17:45:07 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng19.kundenserver.de with esmtp (Exim 3.35 #1) id 1C15O7-00067A-00 for max@love2party.net; Sat, 28 Aug 2004 17:45:07 +0200 Received: from localhost (localhost [127.0.0.1])ESMTP id 9D88B72C01F; Sat, 28 Aug 2004 10:42:39 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25773-47; Sat, 28 Aug 2004 10:42:39 -0500 (EST) Received: from turing (localhost [127.0.0.1])ESMTP id F21A972C279; Sat, 28 Aug 2004 10:42:38 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Sat, 28 Aug 2004 10:42:21 -0500 (EST) X-Original-To: pf4freebsd@freelists.org Delivered-To: pf4freebsd@freelists.org Received: from localhost (localhost [127.0.0.1])ESMTP id 3470272C1D0 for ; Sat, 28 Aug 2004 10:42:20 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24044-77 for ; Sat, 28 Aug 2004 10:42:19 -0500 (EST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.189])ESMTP id 826BA72C088 for ; Sat, 28 Aug 2004 10:42:19 -0500 (EST) Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1C15Nk-0006Qv-00; Sat, 28 Aug 2004 17:44:44 +0200 Received: from [84.128.129.215] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1C15Nj-0001Ig-00; Sat, 28 Aug 2004 17:44:44 +0200 From: Max Laier To: pf4freebsd@freelists.org User-Agent: KMail/1.6.2 References: <8346D753500D004191B4F3E45178065B68F29F@medusa.zutomxx> In-Reply-To: <8346D753500D004191B4F3E45178065B68F29F@medusa.zutomxx> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_SgKMBh985oV8B4K"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408281743.14926.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 X-Virus-Scanned: by amavisd-new at freelists.org X-archive-position: 442 X-ecartis-version: Ecartis v1.0.0 Sender: pf4freebsd-bounce@freelists.org Errors-To: pf4freebsd-bounce@freelists.org X-original-sender: max@love2party.net Precedence: normal X-list: pf4freebsd X-Virus-Scanned: by amavisd-new at freelists.org X-Provags-Forward: max@love2party.net -> max.laier@stud.uni-karlsruhe.de X-Scan-Signature: edc296dacfd46690d33d22a9386cb98d X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on mail6.rz.uni-karlsruhe.de X-Spam-Status: No, hits=-4.9 required=7.0 tests=BAYES_00 autolearn=no version=2.61 X-Spam-Level: X-UID: 537 X-Length: 6998 X-Mailman-Approved-At: Thu, 16 Sep 2004 04:17:51 +0000 cc: Roman Mikus Subject: [pf4freebsd] Re: cbq with borrow not working X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Reply-To: pf4freebsd@freelists.org List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 16 Sep 2004 04:13:36 -0000 X-Original-Date: Sat, 28 Aug 2004 17:43:07 +0200 X-List-Received-Date: Thu, 16 Sep 2004 04:13:36 -0000 --Boundary-02=_SgKMBh985oV8B4K Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 28 August 2004 15:58, Roman Mikus wrote: > Hi all, > > I'm trying attached configuration of pf for shapping traffic of user > "roman" and "nb". I need group of users sharing same 256kbit/s line with > guaranted minimal traffic 32kbit/s for each. I used cbq queue with > borrow option, but it is not working - user roman can only download at > speed 32Kbit/s - queue "user1" doesn't borrow from its parent "group1" > queue. > > Am I missing something? > > Thanks for any help. Output of $pfctl -vsq would be helpful ... be sure to transfer some data to= =20 the individual peers so that borrowing should get exercised. You can also watch the counters live with $pfctl -vvsq to see where the=20 bandwidth is going to. > roman > > my pf.conf looks like this: > > int_if =3D "rl1" > ext_if =3D "rl0" > internal_net=3D"192.168.1.0/24" > external_addr=3D"10.0.0.101" > > scrub in all > > altq on $int_if cbq queue { std group1 group2 } > queue std cbq(default) > > queue group1 bandwidth 256Kb cbq { user1 user2 } > queue user1 bandwidth 32Kb cbq(borrow) > queue user2 bandwidth 32Kb cbq(borrow) > > queue group2 bandwidth 512Kb cbq { user3 user4 } # not used yet > queue user3 bandwidth 32Kb cbq(borrow) # not used yet > queue user4 bandwidth 32Kb cbq(borrow) # not used yet > > nat on $ext_if from $internal_net to any -> ($ext_if) > > roman =3D "192.168.1.11" > nb =3D "192.168.1.10" > > pass in all > pass out all > > pass out on $int_if from any to $roman queue user1 > pass out on $int_if from any to $nb queue user2 =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --Boundary-02=_SgKMBh985oV8B4K Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQBBMKgSXyyEoT62BG0RAgQ0AJ9ki6dfCfJ8zmCobTxm5UUG6HhDSACfeWKn aE0nsckKpCy2pn7N6Oa35r8= =+DDK -----END PGP SIGNATURE----- --Boundary-02=_SgKMBh985oV8B4K--