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