-
Notifications
You must be signed in to change notification settings - Fork 2
/
qos.cfg
123 lines (87 loc) · 3.2 KB
/
qos.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#internet facing interface
WAN="eth0"
#ifb interface used for download traffic redirection
IFB="ifb0"
#Set it to off to disable it
ENABLE_SLOWDOWN="on"
#Set it to off to disable it
ENABLE_L7="on"
#Set it to off to disable forwarding and NAT.Useful if already enabled
ENABLE_NAT="on"
#traffic limit,then slowdown speed - value is in bytes
SLOWDOWN_QUOTA="100000000"
################################################################################
# TIP: #
# Multiple ports or port ranges are separated using a comma, #
# and a port range is specified using a colon. #
# 53,1024:65535 would therefore match ports 53 and all from 1024 through 65535 #
################################################################################
#ports affected by slowdown process
TCP_SLOWDOWN_PORTS="80,443,20,21,990"
UDP_SLOWDOWN_PORTS=""
#high priority applications
HIGH_PRIO_APP=(stun rtp h323 office_365 hangout skype)
#bulk applications
BULK_PRIO_APP=""
#applications label
APP_LABEL="NDPI-DETECTED"
#log applications detected packets.set to off to disable it
APP_LOG="on"
#label configuration file
LABEL_CONF="/etc/xtables/connlabel.conf"
#low priority applications
LOW_PRIO_APP=(youtube twitter facebook dropbox spotify)
#set this to on if you want to treat all unmatched traffic as bulk
BULK_DEFAULT="off"
#traffic on this ports will have high priority
TCP_HIGH_PRIO_PORTS="80,443,22,53"
UDP_HIGH_PRIO_PORTS="5060,53,4500,500,1194,123"
#traffic on this ports will be considered as bulk
TCP_BULK_PORTS="0:1023"
UDP_BULK_PORTS="0:1023"
#traffic on this ports will be considered as low priority
TCP_LOW_PRIO_PORTS="1024:65535"
UDP_LOW_PRIO_PORTS="1024:65535"
############# DOWNLOAD ###############
#download speed
WAN_DOWNLOAD="10mbit"
#guaranteed download bandwidth for non high/low prio traffic
DOWNLOAD_GUARANTEED_DEFAULT="512kbit"
#maximum download bandwidth for non high/low prio traffic
DOWNLOAD_MAX_DEFAULT="10mbit"
#guaranteed download bandwidth for high prio traffic
HIGH_PRIO_DOWN_GUARANTEED="4mbit"
#maximum download bandwidth for high prio traffic
HIGH_PRIO_DOWN_MAX="10mbit"
#guaranteed download bandwidth for low prio traffic
LOW_PRIO_DOWN_GUARANTEED="128kbit"
#maximum download bandwidth for low prio traffic
LOW_PRIO_DOWN_MAX="1mbit"
############# UPLOAD ###############
#upload speed
WAN_UPLOAD="10mbit"
#guaranteed upload bandwidth for non high/low prio traffic
UPLOAD_GUARANTEED_DEFAULT="128kbit"
#maximum upload bandwidth for non high/low prio traffic
UPLOAD_MAX_DEFAULT="10mbit"
#guaranteed upload bandwidth for high prio traffic
HIGH_PRIO_UP_GUARANTEED="2mbit"
#maximum upload bandwidth for high prio traffic
HIGH_PRIO_UP_MAX="10mbit"
#guaranteed upload bandwidth for low prio traffic
LOW_PRIO_UP_GUARANTEED="256kbit"
#maximum upload bandwidth for low prio traffic
LOW_PRIO_UP_MAX="1mbit"
########### iptables mark #############
DOWN_LOW_PRIO_MARK="10"
DOWN_HIGH_PRIO_MARK="11"
DOWN_BULK_MARK="12"
UP_LOW_PRIO_MARK="20"
UP_HIGH_PRIO_MARK="21"
UP_BULK_MARK="22"
APP_LOW_PRIO_MARK="30"
APP_HIGH_PRIO_MARK="31"
APP_BULK_MARK="32"
#Probably needs to be higher on high speed connections
QUANTUM="1514"
BURST="15k"