pf + ALTQ + hfsc

Marcus Alves Grando mnag at FreeBSD.org
Sun Nov 20 10:56:21 PST 2005


Hi list,

I don't know if my pf.conf is correct, but...

I trying to limit one interface "rl0" to 256Kb, but when i test with 
iperf he say limit is "7.29 Mbits/sec". What's wrong? Whay iperf say 7Mb/s?

Below my conf and iperf test:

root at test:~# /etc/rc.d/pf restart
Disabling pf.
pf disabled
Enabling pf.
pf enabled
root at test:~# cat /etc/pf.conf
altq on rl0 bandwidth 512Kb hfsc queue test
queue test bandwidth 256Kb hfsc (default upperlimit 256Kb)

pass in on rl0 from any to any queue test
pass out on rl0 from any to any queue test
root at test:~# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  4] local 150.162.166.75 port 5001 connected with 150.162.166.51 port 
52278
[  4]  0.0-10.0 sec  8.71 MBytes  7.29 Mbits/sec

Regards

-- 
Marcus Alves Grando
marcus(at)corp.grupos.com.br  |  Grupos Internet S/A
   mnag(at)FreeBSD.org         |  FreeBSD.org


More information about the freebsd-pf mailing list