-b Boot mode
[svn/Prometheus-QoS/.git] / examples / prometheus.conf
CommitLineData
a4f661fc 1#==========================================================================
ae776b10 2#Configuration for Arachne Labs gateway prometheus.brevnov.czf (10.11.10.1)
a4f661fc 3#==========================================================================
4#Path to external utilities required to run iGW Prometheus:
5#--------------------------------------------------------------------------
6tc /sbin/tc
7iptables /sbin/iptables
ae776b10 8iptables-restore /sbin/iptables-restore
9#==========================================================================
10#Filename of iptables mangle table for iptables-restore
11#--------------------------------------------------------------------------
12iptables-file /var/spool/prometheus.iptables
a4f661fc 13#==========================================================================
14#Filename of /etc/hosts - style IP address configuration file
15#--------------------------------------------------------------------------
e1614f4e 16hosts /etc/prometheus/hosts
a4f661fc 17#==========================================================================
18#Keywords found in /etc/host comments - syntax KEYWORD-MIN-MAX
19#Eg.: 192.168.1.2 mypc #via-prometheus-256-512
20#sets HTB rate for 192.168.1.2 to 256 kbps and HTB ceil to 512 kbps
21#--------------------------------------------------------------------------
22keyword wifi-normal
23keyword wifi-plus
24keyword backbone-normal
25keyword backbone-plus
26keyword backbone-bezfup
27#==========================================================================
28#LAN (local, downstream) and WAN (isp, internet, upstream) interface names
29#didn't work well with only one interface - two interfaces are required now
30#--------------------------------------------------------------------------
31lan-interface eth0 #Linux network interface name
32wan-interface eth1 #Linux network interface name
33#==========================================================================
34#LAN and WAN medium definition (100Mbit, 10Mbit - use 2Mbit for Wi-Fi)
35#--------------------------------------------------------------------------
36lan-medium 100Mbit #Mbit|kbit
37wan-medium 100Mbit #Mbit|kbit
38#==========================================================================
39#guranted upload and download bandwidth FROM your ISP (in kbps, please!)
40#asymetry settings will be automaticaly calculated from these values
41#--------------------------------------------------------------------------
ae776b10 42wan-download 40960 #kbps
43wan-upload 40960
a4f661fc 44#==========================================================================
45#special QoS free zone (eg. free CZFree tranzit, etc.)
46#Apply QoS on HTTP proxy IP addres/port
47#Set HTB rate and HTB ceil for address undefined in hosts file
48#--------------------------------------------------------------------------
49qos-free-zone 10.0.0.0/8 #0=disable|subnet eg. 192.168.0.0/16
50qos-free-delay 14400 #seconds to wait before applying QoS
51qos-proxy-enable 0 #1=yes|0=no
52qos-proxy-ip 10.11.10.1/32 #eg. IP of our LAN interface
53qos-proxy-port 3128 #squid port
54free-rate 64 #kbps - by Vitex kuli testovani dashboardu
55free-ceil 128 #kbps
56digital-divide-weirdness-ratio 1 #can be 1, 2, 3, maybe even more...
57#==========================================================================
58#Asymetric line settings - this allows setup of ADSL-style ISP service
59#asymetry-rate 2 means upload is limited to 50% of the rate of download
60#asymetry-treshold 64 means upload will be 64 kbps slower then download
61#--------------------------------------------------------------------------
62#These settings are keyword-derived ! (see "keyword" section)
63#--------------------------------------------------------------------------
64wifi-normal-asymetry-ratio 1 #2,4,etc. for relative upload shaping
65wifi-normal-asymetry-treshold 0 #kbps
66wifi-plus-asymetry-ratio 1
67wifi-plus-asymetry-treshold 0
ae776b10 68backbone-normal-asymetry-ratio 1
a4f661fc 69backbone-normal-asymetry-treshold 0
70backbone-plus-asymetry-ratio 1
71backbone-plus-asymetry-treshold 0
72backbone-bezfup-asymetry-ratio 1
73backbone-bezfup-asymetry-treshold 0
74#==========================================================================
75#HTB fine tuning part I - common settings
ae776b10 76#type of traffic filtering mark&filter or classify (without tc filter)
a4f661fc 77#--------------------------------------------------------------------------
78htb-nesting-limit 3 #0..4: HTB seems to have built-in limit
79htb-burst 32 #kbit
ae776b10 80htb-burst-group 32 #kbit (group level classes)
81htb-burst-main 64 #kbit (medium&line level classes - 1:1, 1:2)
a4f661fc 82htb-leaf-discipline sfq perturb 5
ae776b10 83filter-type classify #or mark
a4f661fc 84#==========================================================================
85#magic-include-upload - is data counter sum of upload and download ?
a4f661fc 86#magic-treshold - heaviest downloader: htb-rate, 2nd: htb-rate+magic-treshold
87#==========================================================================
88magic-include-upload 1 #1=yes|0=no
a4f661fc 89magic-treshold 2 #kbps
90#--------------------------------------------------------------------------
91#Magic data limit based od guaranted bandwidth in kbps fine tunes HTB ceil:
92#(magic-relative-limit)*(min bandwidth kbps) = limit for given time period
93#eg. value 8 gives 512 MB limit to 64 kbps HTB rates, 1024 MB to 128'ers...
94#magic-fixed-limit is fixed data limit in MB (megabytes), 0=no limit
95#HTB ceil will be reduced to (HTB rate) for the most unfair-users
96#other offenders get (HTB rate)+(magic-treshold)
97#magic-relative-prio and magic-fixed-prio work exactly the same way as
98#limit, except that they reduce HTB priority instead of HTB ceil
99#--------------------------------------------------------------------------
100#These settings are keyword-derived ! (see "keyword" section)
101#--------------------------------------------------------------------------
102wifi-normal-magic-relative-limit 8 #*kb/sec->MB/day
ae776b10 103wifi-normal-magic-relative-prio 4 #*kb/sec->MB/day
a4f661fc 104wifi-normal-magic-fixed-limit 0 #MB, less then
105wifi-normal-magic-fixed-prio 0 #MB, less then
ae776b10 106wifi-plus-magic-relative-limit 16
a4f661fc 107wifi-plus-magic-relative-prio 8
108wifi-plus-magic-fixed-limit 0
109wifi-plus-magic-fixed-prio 0
ae776b10 110backbone-normal-magic-relative-limit 16
a4f661fc 111backbone-normal-magic-relative-prio 8
112backbone-normal-magic-fixed-limit 0
113backbone-normal-magic-fixed-prio 0
ae776b10 114backbone-plus-magic-relative-limit 32
115backbone-plus-magic-relative-prio 16
a4f661fc 116backbone-plus-magic-fixed-limit 0
117backbone-plus-magic-fixed-prio 0
118backbone-bezfup-magic-relative-limit 0
119backbone-bezfup-magic-relative-prio 8
120backbone-bezfup-magic-fixed-limit 0
121backbone-bezfup-magic-fixed-prio 0
122#==========================================================================
123#HTB fine tuning part II - keyword dependent settings
124#--------------------------------------------------------------------------
125#These settings are keyword-derived ! (see "keyword" section)
126#--------------------------------------------------------------------------
208112af 127wifi-normal-htb-default-prio 1 #can be 1...7
a4f661fc 128wifi-normal-htb-rate-bonus 0 #kbps
129wifi-normal-htb-ceil-malus 0 #kbps
208112af 130wifi-plus-htb-default-prio 1
a4f661fc 131wifi-plus-htb-rate-bonus 16
208112af 132wifi-plus-htb-ceil-malus 0
133backbone-normal-htb-default-prio 1
a4f661fc 134backbone-normal-htb-rate-bonus 16
208112af 135backbone-normal-htb-ceil-malus 0
136backbone-plus-htb-default-prio 1
a4f661fc 137backbone-plus-htb-rate-bonus 32
208112af 138backbone-plus-htb-ceil-malus 0
139backbone-bezfup-htb-default-prio 2
a4f661fc 140backbone-bezfup-htb-rate-bonus 0
208112af 141backbone-bezfup-htb-ceil-malus 0
a4f661fc 142#==========================================================================
143#Credit file settings - stores unused credit from previous runs
144#--------------------------------------------------------------------------
ae776b10 145credit-filename /var/lib/misc/prometheus.credit
a4f661fc 146credit-enable 1 #1=yes|0=no
147#==========================================================================
148#Log file names and directories
149#--------------------------------------------------------------------------
ae776b10 150log-filename /var/log/prometheuslog
a4f661fc 151log-traffic-directory /var/www/logs/
152log-traffic-url-path logs/
153#==========================================================================
154#Hall of Fame - Greatest Suckers settings
155#--------------------------------------------------------------------------
156hall-of-fame-enable 1 #1=yes|0=no
157hall-of-fame-filename /var/www/traffic.html
158hall-of-fame-preview /var/www/preview.html
159hall-of-fame-title Hall of Fame - Greatest Suckers
160#==========================================================================
161#Hall of Fame - Color settings (for FUP data limit display)
162#--------------------------------------------------------------------------
163#These settings are keyword-derived ! (see "keyword" section)
164#--------------------------------------------------------------------------
165wifi-normal-html-color 609000 #RRGGBB html hexa
166wifi-plus-html-color 008000
167backbone-normal-html-color 600090
168backbone-plus-html-color 000080
169backbone-bezfup-html-color A06000
170#==========================================================================
171#That's all, folks. Now just run /usr/local/sbin/prometheus every day...
This page took 0.522445 seconds and 4 git commands to generate.