xref: /freebsd/share/examples/pf/queue3 (revision 7899f917b1c0ea178f1d2be0cfb452086d079d23)
1# $OpenBSD: queue3,v 1.3 2006/10/07 04:48:01 mcbride Exp $
2# simple PRIQ example
3
4ext_if="lo0"
5
6altq on $ext_if priq bandwidth 10Mb queue { pri-low pri-med pri-high }
7queue pri-low priority 0
8queue pri-med priority 1 priq(default)
9queue pri-high priority 2
10
11pass out on $ext_if proto tcp from any to any port 22 \
12    queue(pri-med, pri-high)
13pass out on $ext_if proto tcp from any to any port 80 queue pri-med
14pass in  on $ext_if proto tcp from any to any port 80 queue pri-low
15
16