2004-09-14 01:07:19 +00:00
|
|
|
# $FreeBSD$
|
2007-11-11 01:16:51 +00:00
|
|
|
# $OpenBSD: queue3,v 1.3 2006/10/07 04:48:01 mcbride Exp $
|
2004-09-14 01:07:19 +00:00
|
|
|
# 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
|
|
|
|
|
2007-11-11 01:16:51 +00:00
|
|
|
pass out on $ext_if proto tcp from any to any port 22 \
|
2004-09-14 01:07:19 +00:00
|
|
|
queue(pri-med, pri-high)
|
2007-11-11 01:16:51 +00:00
|
|
|
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
|
2004-09-14 01:07:19 +00:00
|
|
|
|