diff options
author | mlaier <mlaier@FreeBSD.org> | 2007-11-11 01:16:51 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2007-11-11 01:16:51 +0000 |
commit | 439399edf83695101aa71cf53c06c52d7ffa7eb9 (patch) | |
tree | 107db76477a50666618c07f3792898601748b344 /share/examples/pf/queue2 | |
parent | 10e9042adf470ef6aa9ff73f8e0fa5a48d2139b3 (diff) | |
download | FreeBSD-src-439399edf83695101aa71cf53c06c52d7ffa7eb9.zip FreeBSD-src-439399edf83695101aa71cf53c06c52d7ffa7eb9.tar.gz |
Update pf examples from OpenBSD to catch up with new stateful defaults and
other syntax changes. Move pf.conf from /etc to examples, too.
Diffstat (limited to 'share/examples/pf/queue2')
-rw-r--r-- | share/examples/pf/queue2 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/share/examples/pf/queue2 b/share/examples/pf/queue2 index 20684e9..c60d1c3 100644 --- a/share/examples/pf/queue2 +++ b/share/examples/pf/queue2 @@ -1,5 +1,5 @@ # $FreeBSD$ -# $OpenBSD: queue2,v 1.2 2003/01/20 16:14:23 henning Exp $ +# $OpenBSD: queue2,v 1.4 2006/10/07 04:48:01 mcbride Exp $ # advanced queue example. # give interactive ssh traffic priority over ssh bulk transfers (scp, sftp) @@ -15,15 +15,15 @@ queue developers bandwidth 75% cbq(borrow) queue employees bandwidth 15% queue mail bandwidth 10% priority 0 cbq(borrow ecn) queue ssh bandwidth 20% cbq(borrow) { ssh_interactive, ssh_bulk } -queue ssh_interactive priority 7 -queue ssh_bulk priority 0 +queue ssh_interactive bandwidth 25% priority 7 +queue ssh_bulk bandwidth 75% priority 0 block return out on $ext_if inet all queue std pass out on $ext_if inet proto tcp from $developerhosts to any port 80 \ - keep state queue developers + queue developers pass out on $ext_if inet proto tcp from $employeehosts to any port 80 \ - keep state queue employees + queue employees pass out on $ext_if inet proto tcp from any to any port 22 \ - keep state queue(ssh_bulk, ssh_interactive) + queue(ssh_bulk, ssh_interactive) pass out on $ext_if inet proto tcp from any to any port 25 \ - keep state queue mail + queue mail |