xref: /freebsd/share/examples/pf/queue1 (revision 4c8945a06b01a5c8122cdeb402af36bb46a06acc)
1# $FreeBSD$
2# $OpenBSD: queue1,v 1.4 2006/10/07 04:48:01 mcbride Exp $
3
4ext_if = "dc0"
5
6altq on $ext_if cbq bandwidth 10Mb \
7    queue { deflt, http, ssh, mail, rsets }
8queue	deflt bandwidth 10% priority 0 cbq(default ecn)
9queue	http bandwidth 1.5Mb priority 3 { http_vhosts, http_cust1 }
10queue	 http_vhosts bandwidth 40% cbq(borrow red)
11queue	 http_cust1 bandwidth 0.5Mb
12queue	mail bandwidth 10% priority 1
13queue	ssh bandwidth 100Kb priority 7 cbq(borrow)
14queue	rsets bandwidth 7500b priority 0 cbq(red)
15
16block return in on $ext_if inet all queue rsets
17pass in on $ext_if inet proto tcp from any to any port 80 queue http
18pass out on $ext_if inet proto tcp from any to any port 22 queue ssh
19pass in  on $ext_if inet proto tcp from any to any port 22 queue ssh
20pass out on $ext_if inet proto tcp from any to any port 25 queue mail
21pass out on $ext_if inet all
22