summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/pf/Makefile4
-rw-r--r--share/pf/queue314
2 files changed, 16 insertions, 2 deletions
diff --git a/share/pf/Makefile b/share/pf/Makefile
index 1e0fa1d235a..2d9021d1973 100644
--- a/share/pf/Makefile
+++ b/share/pf/Makefile
@@ -1,7 +1,7 @@
#
-# $OpenBSD: Makefile,v 1.2 2002/12/15 18:34:54 henning Exp $
+# $OpenBSD: Makefile,v 1.3 2002/12/17 20:12:15 henning Exp $
#
-FILES= queue1 queue2
+FILES= queue1 queue2 queue3
NOOBJ= noobj
all clean cleandir depend lint tags:
diff --git a/share/pf/queue3 b/share/pf/queue3
new file mode 100644
index 00000000000..ecea60ab383
--- /dev/null
+++ b/share/pf/queue3
@@ -0,0 +1,14 @@
+# 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
+