From 81c35212c57a4dd4a3aee04401d4e73f632b4c34 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 17 Dec 2002 20:12:16 +0000 Subject: simple PRIQ example --- share/pf/Makefile | 4 ++-- share/pf/queue3 | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 share/pf/queue3 (limited to 'share/pf') 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 + -- cgit v1.2.3