Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2004 04:13:36 -0000
From:      Max Laier <max@love2party.net>
To:        pf4freebsd@freelists.org
Cc:        Roman Mikus <roman@zutom.sk>
Subject:   [pf4freebsd] Re: cbq with borrow not working
Message-ID:  <200408281743.14926.max@love2party.net>
In-Reply-To: <8346D753500D004191B4F3E45178065B68F29F@medusa.zutomxx>
References:  <8346D753500D004191B4F3E45178065B68F29F@medusa.zutomxx>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408281743.14926.max>