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