queue1 revision 173536
1135184Smlaier# $FreeBSD: head/share/examples/pf/queue1 173536 2007-11-11 01:16:51Z mlaier $ 2173536Smlaier# $OpenBSD: queue1,v 1.4 2006/10/07 04:48:01 mcbride Exp $ 3135184Smlaier 4135184Smlaierext_if = "dc0" 5135184Smlaier 6135184Smlaieraltq on $ext_if cbq bandwidth 10Mb \ 7135184Smlaier queue { deflt, http, ssh, mail, rsets } 8135184Smlaierqueue deflt bandwidth 10% priority 0 cbq(default ecn) 9135184Smlaierqueue http bandwidth 1.5Mb priority 3 { http_vhosts, http_cust1 } 10135184Smlaierqueue http_vhosts bandwidth 40% cbq(borrow red) 11135184Smlaierqueue http_cust1 bandwidth 0.5Mb 12135184Smlaierqueue mail bandwidth 10% priority 1 13135184Smlaierqueue ssh bandwidth 100Kb priority 7 cbq(borrow) 14135184Smlaierqueue rsets bandwidth 7500b priority 0 cbq(red) 15135184Smlaier 16135184Smlaierblock return in on $ext_if inet all queue rsets 17173536Smlaierpass in on $ext_if inet proto tcp from any to any port 80 queue http 18173536Smlaierpass out on $ext_if inet proto tcp from any to any port 22 queue ssh 19173536Smlaierpass in on $ext_if inet proto tcp from any to any port 22 queue ssh 20173536Smlaierpass out on $ext_if inet proto tcp from any to any port 25 queue mail 21173536Smlaierpass out on $ext_if inet all 22