diff options
author | Steven Barth <steven@midlink.org> | 2008-07-24 13:55:11 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-24 13:55:11 +0000 |
commit | 7384e0e6b77518efa4d113ede46f8c107de6f604 (patch) | |
tree | abe961b734c865ce3965f45585528c1ff39b94bd /contrib/uci/hostfiles/etc/config/qos | |
parent | f94c7b2c10d11d343c464be707e12c5754728b06 (diff) |
Rewrote host environment targets to work out of the box
Diffstat (limited to 'contrib/uci/hostfiles/etc/config/qos')
-rw-r--r-- | contrib/uci/hostfiles/etc/config/qos | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/contrib/uci/hostfiles/etc/config/qos b/contrib/uci/hostfiles/etc/config/qos new file mode 100644 index 0000000000..51959b5304 --- /dev/null +++ b/contrib/uci/hostfiles/etc/config/qos @@ -0,0 +1,89 @@ +# QoS configuration for OpenWrt + +# INTERFACES: +config interface wan + option classgroup "Default" + option enabled 1 + option overhead 1 + option upload 128 + option download 1024 + +# RULES: +config classify + option target "Bulk" + option ipp2p "all" +config classify + option target "Bulk" + option layer7 "edonkey" +config classify + option target "Bulk" + option layer7 "bittorrent" +config classify + option target "Priority" + option ports "22,53" +config classify + option target "Normal" + option proto "tcp" + option ports "20,21,25,80,110,443,993,995" +config classify + option target "Express" + option ports "5190" +config default + option target "Express" + option proto "udp" + option pktsize "-500" +config reclassify + option target "Priority" + option proto "icmp" +config default + option target "Bulk" + option portrange "1024-65535" +config reclassify + option target "Priority" + option proto "tcp" + option pktsize "-128" + option mark "!Bulk" + option tcpflags "SYN" +config reclassify + option target "Priority" + option proto "tcp" + option pktsize "-128" + option mark "!Bulk" + option tcpflags "ACK" + + +# Don't change the stuff below unless you +# really know what it means :) + +config classgroup "Default" + option classes "Priority Express Normal Bulk" + option default "Normal" + + +config class "Priority" + option packetsize 400 + option maxsize 400 + option avgrate 10 + option priority 20 +config class "Priority_down" + option packetsize 1000 + option avgrate 10 + + +config class "Express" + option packetsize 1000 + option maxsize 800 + option avgrate 50 + option priority 10 + +config class "Normal" + option packetsize 1500 + option packetdelay 100 + option avgrate 10 + option priority 5 +config class "Normal_down" + option avgrate 20 + +config class "Bulk" + option avgrate 1 + option packetdelay 200 |