Annotation of src/share/pf/queue1, Revision 1.3
1.3 ! henning 1: # $OpenBSD$
! 2:
1.1 henning 3: ext_if = "dc0"
4:
1.2 henning 5: altq on $ext_if cbq bandwidth 10Mb \
1.1 henning 6: queue { deflt, http, ssh, mail, rsets }
7: queue deflt bandwidth 10% priority 0 cbq(default ecn)
8: queue http bandwidth 1.5Mb priority 3 { http_vhosts, http_cust1 }
9: queue http_vhosts bandwidth 40% cbq(borrow red)
10: queue http_cust1 bandwidth 0.5Mb
11: queue mail bandwidth 10% priority 1
12: queue ssh bandwidth 100Kb priority 7 cbq(borrow)
13: queue rsets bandwidth 7500b priority 0 cbq(red)
14:
15: block return in on $ext_if inet all queue rsets
16: pass in on $ext_if inet proto tcp from any to any port 80 keep state queue http
17: pass out on $ext_if inet proto tcp from any to any port 22 keep state queue ssh
18: pass in on $ext_if inet proto tcp from any to any port 22 keep state queue ssh
19: pass out on $ext_if inet proto tcp from any to any port 25 keep state queue mail
20: pass out on $ext_if inet all keep state
21:
22: