opnsense-src/share/examples/pf/queue3
Franco Fichtner 402e7dde73 src: initial commit based on FreeBSD-10.0
Taken from:	https://github.com/freebsd/freebsd.git
Commit id:	d44ce30d3054a38723f89a161c5e003e64d1aaae
2014-11-09 09:30:14 +01:00

16 lines
492 B
Text

# $FreeBSD$
# $OpenBSD: queue3,v 1.3 2006/10/07 04:48:01 mcbride 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 \
queue(pri-med, pri-high)
pass out on $ext_if proto tcp from any to any port 80 queue pri-med
pass in on $ext_if proto tcp from any to any port 80 queue pri-low