]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - share/examples/pf/queue1
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / share / examples / pf / queue1
1 # $FreeBSD$
2 # $OpenBSD: queue1,v 1.4 2006/10/07 04:48:01 mcbride Exp $
3
4 ext_if = "dc0"
5
6 altq on $ext_if cbq bandwidth 10Mb \
7     queue { deflt, http, ssh, mail, rsets }
8 queue   deflt bandwidth 10% priority 0 cbq(default ecn)
9 queue   http bandwidth 1.5Mb priority 3 { http_vhosts, http_cust1 }
10 queue    http_vhosts bandwidth 40% cbq(borrow red)
11 queue    http_cust1 bandwidth 0.5Mb
12 queue   mail bandwidth 10% priority 1
13 queue   ssh bandwidth 100Kb priority 7 cbq(borrow)
14 queue   rsets bandwidth 7500b priority 0 cbq(red)
15
16 block return in on $ext_if inet all queue rsets
17 pass in on $ext_if inet proto tcp from any to any port 80 queue http
18 pass out on $ext_if inet proto tcp from any to any port 22 queue ssh
19 pass in  on $ext_if inet proto tcp from any to any port 22 queue ssh
20 pass out on $ext_if inet proto tcp from any to any port 25 queue mail
21 pass out on $ext_if inet all