xref: /freebsd/share/examples/pf/queue3 (revision c6063d0da8e1f8d8452b0c2ee1c7ad718c1a7052)
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