diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-12-17 20:12:16 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-12-17 20:12:16 +0000 |
commit | 81c35212c57a4dd4a3aee04401d4e73f632b4c34 (patch) | |
tree | e8ba210cd7ecd69d73eef513a31326116cb574c2 /share | |
parent | f87dcde1f5a033a2919a5040277abfd5cfd08434 (diff) |
simple PRIQ example
Diffstat (limited to 'share')
-rw-r--r-- | share/pf/Makefile | 4 | ||||
-rw-r--r-- | share/pf/queue3 | 14 |
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 + |