summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-02-06 17:29:31 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-02-06 17:29:31 +0000
commit62ad1756b2708b3d880bc159949859fa6b9944b8 (patch)
treeb4c6931e51c70aaac659f391ef037108f98cc866 /usr.sbin
parent01b5caf65dfb8149e1f9f5f0850ca5209ac2b9b2 (diff)
example configuration that sees the difference between interactive and bulk ssh sessions.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/altq/altqd/altq.conf.samples/cbq.ssh_tos29
1 files changed, 29 insertions, 0 deletions
diff --git a/usr.sbin/altq/altqd/altq.conf.samples/cbq.ssh_tos b/usr.sbin/altq/altqd/altq.conf.samples/cbq.ssh_tos
new file mode 100644
index 00000000000..7509b8ce8f2
--- /dev/null
+++ b/usr.sbin/altq/altqd/altq.conf.samples/cbq.ssh_tos
@@ -0,0 +1,29 @@
+# $OpenBSD: cbq.ssh_tos,v 1.1 2002/02/06 17:29:30 art Exp $
+#
+# Artur Grabowski <art@openbsd.org> 2002 Public Domain
+#
+# Sample configuration that puts ssh traffic into different classes depending
+# on if it's a bulk transfer or interactive session.
+#
+
+# We have a 10Mbps link on de0
+interface de0 bandwidth 10M cbq
+
+# Create the root class. Everything.
+class cbq de0 root NULL pbandwidth 100
+
+class cbq de0 ctl_class root pbandwidth 5 control
+class cbq de0 def_class root borrow pbandwidth 95 default
+
+class cbq de0 bulk def_class borrow pbandwidth 40
+class cbq de0 interactive def_class borrow pbandwidth 40
+
+class cbq de0 inter_ssh interactive borrow pbandwidth 35 red
+# TOS 0x10 is IPTOS_LOWDELAY, set in ssh for interactive sessions.
+ filter de0 inter_tcp 0 22 0 0 6 tos 0x10
+ filter de0 inter_tcp 0 0 0 22 6 tos 0x10
+
+class cbq de0 bulk_ssh bulk borrow pbandwidth 20 red
+# TOS 0x08 is IPTOS_THROUGHPUT, set in ssh for bulk sessions.
+ filter de0 bulk_ssh 0 22 0 0 6 tos 0x08
+ filter de0 bulk_ssh 0 0 0 22 6 tos 0x08