# Default config file for the qos-scripts system
#
#
#
# CLASS SYNTAX:
#
# class:<classname>
# <classoptions>
# end
#
# CLASS OPTIONS:
#
# burstrate:<rate>
# - burst rate (in %)
# - optional, requires bursttime and avgrate to be set
#
# bursttime:<rate>
# - time for burst rate allocation (in ms)
# - optional, requires burstrate and avgrate to be set
#
# avgrate:<rate>
# - allocated average data rate (in %)
#
# share:<factor>
# - defines the amount of unused bandwidth that the class
# can get in addition to the allocated rate
# a factor of 10 will give it 10 times the amount of traffic
# that a class with a factor of 1 would get
#
#
# CLASSIFY SYNTAX:
#
# classify:<target class>:<options>
# - target class: name of a target class
# - options: (see below)
#
# CLASSIFY OPTIONS:
#
# src=<ip>
# - match the source ip <ip>
#
# dest=<ip>
# - match the destination ip <ip>
#
# proto=<proto>
# - match the protocol by name or number
#
# sport=<port(s)>
# - match the source port(s), see below for syntax
# - requires proto=tcp or proto=udp
#
# dport=<port(s)>
# - match the destination port(s), see below for syntax
# - requires proto=tcp or proto=udp
#
# layer7=<name>
# - match the layer7 filter <name>
#
# PORT SYNTAX:
#
# <port>
# - match a single port
# <port1>,<port2>,<port3>...
# - match one of the specified ports
# <port1>-<port2>
# - match a port between <port1> and <port2>
#
# You may only use one of these formats in a classify line.
# Combining different formats is not possible
#
#
class:Priority
burstrate:80
bursttime:100
avgrate:55
share:10
end
class:Normal
burstrate:20
bursttime:100
avgrate:40
share:2
end
class:Bulk
avgrate:5
share:1
limit:80
end
classify:Bulk:layer7=edonkey
classify:Priority:proto=udp dport=53,5190
classify:Priority:proto=tcp dport=22,53,5190
classify:Priority:proto=tcp sport=60168
classify:Priority:proto=udp sport=60168
#option:enabled
option:upload:128
option:download:1024
option:priority:Priority
option:defaultlow:Normal
option:default:Bulk
option:bulk_dl:Normal:20