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