blob: ba2790a1c063ae4a0383c33afc6290bec9bb2254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
intf = "lo0"
developerhosts = "10.0.0.0/24"
employeehosts = "10.0.1.0/24"
altq on lo0 cbq( red ecn ) bandwidth 10.00Mb qlimit 100 tbrsize 5000 queue { std http mail ssh }
queue std bandwidth 1.00Mb qlimit 1 cbq( default )
queue http bandwidth 6.00Mb priority 2 cbq( red borrow ) { employees developers }
queue developers bandwidth 6.00Mb
queue employees bandwidth 600.00Kb
queue mail bandwidth 1.00Mb priority 0 cbq( red ecn borrow )
queue ssh bandwidth 2.00Mb cbq( borrow ) { ssh_interactive ssh_bulk }
queue ssh_interactive bandwidth 2.00Mb priority 7
queue ssh_bulk bandwidth 2.00Mb priority 0 qlimit 60
block return out on lo0 inet all queue std
pass out on lo0 inet proto tcp from 10.0.0.0/24 to any port = www keep state queue developers
pass out on lo0 inet proto tcp from 10.0.1.0/24 to any port = www keep state queue employees
pass out on lo0 inet proto tcp from any to any port = ssh tos 0x10 keep state queue ssh_interactive
pass out on lo0 inet proto tcp from any to any port = ssh tos 0x08 keep state queue ssh_bulk
pass out on lo0 inet proto tcp from any to any port = smtp keep state queue mail
|