ALTQ with HFSC

Valentin Bud valentin.bud at gmail.com
Fri Oct 28 07:21:13 UTC 2011


2011/10/26 Виталий Владимирович <artemrts at ukr.net>

>
>  Recently I worked around traffic prioritization of my router
> (FreeBSD9-BETA3). I would like to prioritization traffic coming from
> external interface and coming from internal LAN.
>
> ## ALTQ
>
> altq on $ext_if hfsc bandwidth 800Kb qlimit 500 queue {std lan lan_ack serv
> serv_ack}
> queue std bandwidth 100Kb priority 2 hfsc(default ecn)
>
> queue lan bandwidth 100Kb priority 5 hfsc(realtime 100Kb)
> queue lan_ack bandwidth 300Kb priority 10 hfsc(realtime 200Kb)
>
> queue serv bandwidth 200Kb priority 4 hfsc(realtime 200Kb)
> queue serv_ack bandwidth 100Kb priority 256 hfsc(realtime 50Kb)
>
> ./pf.conf:58: priority out of range: max 255
> pfctl: Syntax error in config file: pf rules not loaded
>
> Does HFSC support up to 255 priorities?
>

If you take into account priority 0 (to 255) you have a total of 256
priorities.


-- 
network warrior


More information about the freebsd-pf mailing list