diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-13 22:51:49 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-03-20 17:29:15 +0100 |
commit | 60c1f0f64d23003a19a07d6b9638542130f6641d (patch) | |
tree | 8fb2787f4c49baded97cd55e0c371fe1cffce2b6 /package/qos-scripts/files/etc | |
parent | d58a09110ccfa95f06c983fe796806f2e035c9d2 (diff) | |
parent | b3ce218b51746d3a576221ea542facf3a1703ab2 (diff) | |
download | mtk-20170518-60c1f0f64d23003a19a07d6b9638542130f6641d.zip mtk-20170518-60c1f0f64d23003a19a07d6b9638542130f6641d.tar.gz mtk-20170518-60c1f0f64d23003a19a07d6b9638542130f6641d.tar.bz2 |
finally move buildroot-ng to trunk
Diffstat (limited to 'package/qos-scripts/files/etc')
-rw-r--r-- | package/qos-scripts/files/etc/config/qos | 94 | ||||
-rwxr-xr-x | package/qos-scripts/files/etc/hotplug.d/iface/10-qos | 2 | ||||
-rwxr-xr-x | package/qos-scripts/files/etc/init.d/S50qos | 18 |
3 files changed, 114 insertions, 0 deletions
diff --git a/package/qos-scripts/files/etc/config/qos b/package/qos-scripts/files/etc/config/qos new file mode 100644 index 0000000..1bf9917 --- /dev/null +++ b/package/qos-scripts/files/etc/config/qos @@ -0,0 +1,94 @@ +# QoS configuration for OpenWrt + +# INTERFACES: +config interface wan + option classgroup "Default" + option enabled 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 300 + option packetdelay 10 + option maxsize 400 + option avgrate 40 + option linksharing 75 +config class "Priority_down" + option packetsize 1500 + option avgrate 20 + + +config class "Express" + option packetsize 1300 + option packetdelay 15 + option maxsize 800 + option avgrate 30 + option linksharing 80 + + +config class "Normal" + option packetsize 1500 + option packetdelay 150 + option avgrate 20 + option linksharing 30 +config class "Normal_down" + option avgrate 30 + + +config class "Bulk" + option linksharing 10 +config class "Bulk_down" + option avgrate 15 + option limitrate 85 diff --git a/package/qos-scripts/files/etc/hotplug.d/iface/10-qos b/package/qos-scripts/files/etc/hotplug.d/iface/10-qos new file mode 100755 index 0000000..0682db1 --- /dev/null +++ b/package/qos-scripts/files/etc/hotplug.d/iface/10-qos @@ -0,0 +1,2 @@ +#!/bin/sh +[ "$ACTION" = ifup ] && /usr/lib/qos.sh interface "$INTERFACE" | sh diff --git a/package/qos-scripts/files/etc/init.d/S50qos b/package/qos-scripts/files/etc/init.d/S50qos new file mode 100755 index 0000000..87e18fb --- /dev/null +++ b/package/qos-scripts/files/etc/init.d/S50qos @@ -0,0 +1,18 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +boot() { + /usr/lib/qos.sh firewall | sh +} + +start() { +# FIXME: after init script migration +# qos-start +# + + boot +} + +stop() { + qos-stop +} |