diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-09-14 01:07:19 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-09-14 01:07:19 +0000 |
commit | 61e73d53e0e987f0067b83931d2738019c3244c1 (patch) | |
tree | f4f7a5d40c5d14259348b29aae4f8b79aeac3dad /share/examples/pf/queue3 | |
parent | 0dd68a174a1c85566e2a81504fccd230c6ec1dac (diff) | |
download | FreeBSD-src-61e73d53e0e987f0067b83931d2738019c3244c1.zip FreeBSD-src-61e73d53e0e987f0067b83931d2738019c3244c1.tar.gz |
Bring in some examples (and create space for future work here):
- Add OpenBSD example rulesets as advertised in etc/pf.conf and pf.conf(5)
- Tweak the pointer to fit the FreeBSD default location share/examples/pf
- Account for the new directory in BSD.usr.dist (no hier(7) change required
as share/examples is an opaque item there).
Obtained from: OpenBSD
Reminded by: Thomas T. Veldhouse
PR: docs/71691
MFC after: 2 days
Diffstat (limited to 'share/examples/pf/queue3')
-rw-r--r-- | share/examples/pf/queue3 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/share/examples/pf/queue3 b/share/examples/pf/queue3 new file mode 100644 index 0000000..855e74f --- /dev/null +++ b/share/examples/pf/queue3 @@ -0,0 +1,16 @@ +# $FreeBSD$ +# $OpenBSD: queue3,v 1.2 2003/01/20 16:14:23 henning 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 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 + |