PF Queueing with PF

Hi community,

Is anyone up-to-date on queueing with PF? PF on OpenBSD uses a priorities and queueing system that replaces the old ALTQ system. This syntax doesn't seem to work with FreeBSD.

In OpenBSD a PF queue is written:
Code:
queue rootq on $ext_if bandwidth 200M
    queue web parent rootq bandwidth 150M
    queue catchall parent rootq bandwidth 50M default

On FreeBSD 12.0-RELEASE-GENERIC-p7 it throws an error:
Code:
/etc/pf.conf:13: queue rootq has no parent
/etc/pf.conf:13: errors in queue definition
/etc/pf.conf:14: queue web has no parent
/etc/pf.conf:14: errors in queue definition
/etc/pf.conf:15: queue catchall has no parent
/etc/pf.conf:15: errors in queue definition

Is queueing on FreeBSD’s PF only possible with ALTQ?

Regards,

Justin Noor
 
Last edited:
FreeBSD uses a PF from OpenBSD 4.5 if I remember correctly.

Thanks. In regards to prioritizing packets, I was under the impression that the set prio option is part of OpenBSD’s new syntax. According to FreeBSD’s pf.conf man page set prio is a valid option, independent of queueing. In other words, priorities are set on a per-rule basis.

For example:
Code:
pass proto tcp to port 22 set prio 7
Is that valid syntax on FreeBSD-12.0-RELEASE?
 
FYI I asked about set prio on freebsd-docs and found out it is for setting the priority bits on VLAN headers, and that it doesn’t work with inward traffic. There are some ambiguities in the man pages. I proposed a revision to that section. TBC.
 
Back
Top