1 # $OpenBSD: cbq.ssh_tos,v 1.2 2002/02/07 10:22:02 wilfried Exp $
3 # Artur Grabowski <art@openbsd.org> 2002 Public Domain
5 # Sample configuration that puts ssh traffic into different classes depending
6 # on if it's a bulk transfer or interactive session.
9 # We have a 10Mbps link on de0
10 interface de0 bandwidth 10M cbq
12 # Create the root class. Everything.
13 class cbq de0 root NULL pbandwidth 100
15 class cbq de0 ctl_class root pbandwidth 5 control
16 class cbq de0 def_class root borrow pbandwidth 95 default
18 class cbq de0 bulk def_class borrow pbandwidth 40
19 class cbq de0 interactive def_class borrow pbandwidth 40
21 class cbq de0 inter_ssh interactive borrow pbandwidth 35 red
22 # TOS 0x10 is IPTOS_LOWDELAY, set in ssh for interactive sessions.
23 filter de0 inter_ssh 0 22 0 0 6 tos 0x10
24 filter de0 inter_ssh 0 0 0 22 6 tos 0x10
26 class cbq de0 bulk_ssh bulk borrow pbandwidth 20 red
27 # TOS 0x08 is IPTOS_THROUGHPUT, set in ssh for bulk sessions.
28 filter de0 bulk_ssh 0 22 0 0 6 tos 0x08
29 filter de0 bulk_ssh 0 0 0 22 6 tos 0x08