To enable PF ALTQ (Adaptive Link-Time Queuing) support on a FreeBSD system, you will need to do the following:
/boot/loader.conf
file:pf_load="YES"
/boot/loader.conf
file:altq_load="YES"
/etc/rc.conf
file:pf_enable="YES"
pfctl
utility to generate a sample configuration file:# pfctl -v -d > /etc/pf.conf
This will create a file named /etc/pf.conf
with default rules and settings. You can then edit this file to customize the firewall configuration for your needs.
altq on $ext_if cbq bandwidth 100Mb queue { std, ssh, http }
Replace $ext_if
with the name of the external interface, and 100Mb
with the bandwidth of the interface.
# service pf start
This will enable the PF firewall and enable ALTQ support.
For more information about configuring and using the PF firewall on a FreeBSD system, you can refer to the PF documentation and the pfctl
man page by running man pfctl
on the command line.