Merge from vendor branch WPA_SUPPLICANT:
[dragonfly.git] / share / examples / pf / queue1
1 # $OpenBSD: queue1,v 1.3 2003/01/20 16:14:23 henning Exp $
2 # $DragonFly: src/share/examples/pf/queue1,v 1.1 2005/12/13 01:58:27 corecode 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 keep state queue http
18 pass out on $ext_if inet proto tcp from any to any port 22 keep state queue ssh
19 pass in  on $ext_if inet proto tcp from any to any port 22 keep state queue ssh
20 pass out on $ext_if inet proto tcp from any to any port 25 keep state queue mail
21 pass out on $ext_if inet all keep state
22
23