Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2006 19:44:08 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-pf@freebsd.org
Subject:   Re: pf altq not showing root traffic
Message-ID:  <200610291844.15191.max@love2party.net>
In-Reply-To: <4544DB91.20506@gmx.de>
References:  <BAY118-F35FCEE6F95DB1FBF508969AFFB0@phx.gbl> <4544DB91.20506@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart3369477.JH1HCv7kPo
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sunday 29 October 2006 17:49, Olli Hauer wrote:
> Gloomy Group wrote:
> > Hi,
> >
> > I have setup pf and altq traffic shapping on freebsd 6.1. my
> > configuration is as follows;
> >
> > ext_if=3D"rl0"
> > int_if=3D"rl1"
> >
> > table <client1> {192.168.0.1/27}
> > scrub in all
> >
> > altq on $int_if hfsc bandwidth 912Kb queue{client1_down,
> > default_down} altq on $ext_if hfsc bandwidth 256Kb queue{client1_up,
> > default_up }
> >
> > # define queue for download
> > queue default_down bandwidth 32Kb hfsc (realtime 32Kb upperlimit 32Kb
> > default)
> > queue default_up bandwidth 32Kb hfsc (realtime 32Kb upperlimit 32Kb
> > default)
> >
> > queue client1_down bandwidth 64Kb hfsc (realtime 64Kb upperlimit
> > 64Kb)
> >
> > # define queue for upload
> > queue client1_up bandwidth 64Kb hfsc (realtime 64Kb upperlimit 64Kb)
> >
> > pass out quick on $int_if from any to <client1> queue client1_down
> > label client1_down
> > pass out quick on ext_if from <client1> to any queue client1_up label
> > client1_up
> > ---------------------------------------------------------------------
> >------------------------------
> >
> >
> > Shapping is working fine, except root_rl0 and root_rl1 traffic is not
> > shown. What's wrong with my confiugration?
> > below is the output of "pfctl -s queue -v" command
> >
> > bw-shaper# pfctl -s queue -v
> > queue root_rl1 bandwidth 912Kb priority 0 {default_down,
> > client1_down} [ pkts:          0  bytes:          0  dropped pkts:  =20
> >   0 bytes: 0 ]
> >  [ qlength:   0/ 50 ]
> > queue  default_down bandwidth 32Kb hfsc( default realtime 32Kb
> > upperlimit 32Kb )
> >  [ pkts:       1078  bytes:     108628  dropped pkts:      0 bytes:
> > 0 ]
> >  [ qlength:   0/ 50 ]
> > queue  client1_down bandwidth 64Kb hfsc( realtime 64Kb upperlimit
> > 64Kb ) [ pkts:       1625  bytes:    1395472  dropped pkts:      0
> > bytes: 0 ]
> >  [ qlength:   0/ 50 ]
> > queue root_rl0 bandwidth 256Kb priority 0 {default_up, client1_up}
> >  [ pkts:          0  bytes:          0  dropped pkts:      0 bytes:
> > 0 ]
> >  [ qlength:   0/ 50 ]
> > queue  default_up bandwidth 32Kb hfsc( default realtime 32Kb
> > upperlimit 32Kb )
> >  [ pkts:        422  bytes:      30116  dropped pkts:      0 bytes:
> > 0 ]
> >  [ qlength:   0/ 50 ]
> > queue  client1_up bandwidth 64Kb hfsc( realtime 64Kb upperlimit 64Kb
> > ) [ pkts:       1586  bytes:     383594  dropped pkts:      0 bytes:
> > 0 ]
> >  [ qlength:   0/ 50 ]
> >
> >
> >
> > Ohcarol.
>
> maybe you can get the traffic this way (since you have labels)
>
> pfctl -vsl
>
> here is an interesing article about that.
> http://www.samag.com/documents/s=3D9053/sam0403j/0403j.htm

If you are looking for "real time" stats in curses try sysutils/pftop. =20
=46or mrgt/rrd-tool like graphs check out sysutils/pfstat.

=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

--nextPart3369477.JH1HCv7kPo
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQBFROhvXyyEoT62BG0RAqkqAJ4sgolnaWRjyflMvzw3f1iHuIPtnACeISLp
QPlAWs4rUU3Bc9V3CTpm2MY=
=8Eh8
-----END PGP SIGNATURE-----

--nextPart3369477.JH1HCv7kPo--



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