aboutsummaryrefslogtreecommitdiff
path: root/share/examples/pf/queue3
blob: 855e74f9e048dc417c8c8c85d105474e9a15dd0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# $FreeBSD$
# $OpenBSD: queue3,v 1.2 2003/01/20 16:14:23 henning Exp $
# simple PRIQ example

ext_if="lo0"

altq on $ext_if priq bandwidth 10Mb queue { pri-low pri-med pri-high }
queue pri-low priority 0
queue pri-med priority 1 priq(default)
queue pri-high priority 2

pass out on $ext_if proto tcp from any to any port 22 keep state \
    queue(pri-med, pri-high)
pass out on $ext_if proto tcp from any to any port 80 keep state queue pri-med
pass in  on $ext_if proto tcp from any to any port 80 keep state queue pri-low