X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=prometheus.conf.SAMPLE;fp=prometheus.conf.SAMPLE;h=0000000000000000000000000000000000000000;hp=01925f7094db927a5b4fb8ab0157de967f573ddf;hb=5def4ce39f6eec34acb8c333068da837bb28311b;hpb=bd11df9ecd0319b81939eec536665f147e724175 diff --git a/prometheus.conf.SAMPLE b/prometheus.conf.SAMPLE deleted file mode 100644 index 01925f7..0000000 --- a/prometheus.conf.SAMPLE +++ /dev/null @@ -1,157 +0,0 @@ -#========================================================================== -# -# Prometheus QoS - steal fire from your ISP ! -# "fair-per-IP" quality of service utility -# requires Linux kernel with HTB qdisc enabled -# GNUpyright(G)2007 Michael xChaos Polak, x@n.cz -# Credits: CZFree.Net / Freegate / Deu / d@n.cz -# ...and Martin Devera for his HTB, of course ;-) -# -#========================================================================== -#Path to external utilities required to run iGW Prometheus: -#-------------------------------------------------------------------------- -tc /sbin/tc -iptables /usr/sbin/iptables -iptables-restore /usr/sbin/iptables-restore -#========================================================================== -#Filename of iptables mangle table for iptables-restore -#-------------------------------------------------------------------------- -iptables-file /var/spool/prometheus.iptables -#========================================================================== -#Filename of /etc/hosts - style IP address configuration file -#-------------------------------------------------------------------------- -hosts /etc/prometheus.hosts -#========================================================================== -#Keywords found in /etc/host comments - syntax KEYWORD-MIN-MAX -#Eg.: 192.168.1.2 mypc #via-prometheus-256-512 -#sets HTB rate for 192.168.1.2 to 256 kbps and HTB ceil to 512 kbps -#-------------------------------------------------------------------------- -keyword via-prometheus -keyword adsl-prometheus -#========================================================================== -#LAN (local, downstream) and WAN (isp, internet, upstream) interface names -#didn't work well with only one interface - two interfaces are required now -#-------------------------------------------------------------------------- -lan-interface eth0 #Linux network interface name -wan-interface eth1 #Linux network interface name -#========================================================================== -#LAN and WAN medium definition (100Mbit, 10Mbit - use 2Mbit for Wi-Fi) -#-------------------------------------------------------------------------- -lan-medium 100Mbit #Mbit|kbit -wan-medium 100Mbit #Mbit|kbit -#========================================================================== -#guranted upload and download bandwidth FROM your ISP (in kbps, please!) -#asymetry settings will be automaticaly calculated from these values -#-------------------------------------------------------------------------- -wan-download 10000 #kbps -wan-upload 10000 #kbps -#========================================================================== -#special QoS free zone (eg. free CZFree tranzit, etc.) -#Apply QoS on HTTP proxy IP addres/port -#Set HTB rate and HTB ceil for address undefined in hosts file -#-------------------------------------------------------------------------- -qos-free-zone 10.0.0.0/8 #0=disable|subnet eg. 192.168.0.0/16 -qos-free-delay 14400 #seconds to wait before applying QoS -qos-proxy-enable 0 #1=yes|0=no -qos-proxy-ip 10.11.10.1/32 #eg. IP of our LAN interface -qos-proxy-port 3128 #squid port -free-rate 64 #kbps - by Vitex kuli testovani dashboardu -free-ceil 128 #kbps -digital-divide-weirdness-ratio 1 #can be 1, 2, 3, maybe even more... -#========================================================================== -#Asymetric line settings - this allows setup of ADSL-style ISP service -#asymetry-rate 2 means upload is limited to 50% of the rate of download -#asymetry-treshold 64 means upload will be 64 kbps slower then download -#-------------------------------------------------------------------------- -#These settings are keyword-derived ! (see "keyword" section) -#-------------------------------------------------------------------------- -via-prometheus-asymetry-ratio 1 #2,4,etc. for relative upload shaping -via-prometheus-asymetry-treshold 0 #kbps -adsl-prometheus-asymetry-ratio 2 -adsl-prometheus-asymetry-treshold 0 -#========================================================================== -#HTB fine tuning part I - common settings -#-------------------------------------------------------------------------- -htb-nesting-limit 3 #0..4: HTB seems to have built-in limit -htb-burst 8 #kbit (ip level classes) -htb-burst-group 32 #kbit (group level classes) -htb-burst-main 64 #kbit (medium&line level classes - 1:1, 1:2) -htb-leaf-discipline sfq perturb 5 #maybe "none" -htb-r2q 1 -#type filtering traffic: mark&filter or classify (without tc filter) -filter-type classify #or mark -#========================================================================== -#magic-include-upload - is data counter sum of upload and download ? -#magic-priorities - prioty levels are used by magic-relative-prio -#magic-treshold - heaviest downloader: htb-rate, 2nd: htb-rate+magic-treshold -#========================================================================== -magic-include-upload 1 #1=yes|0=no -magic-priorities 8 #number of priority levels - 2 -magic-treshold 2 #kbps -#-------------------------------------------------------------------------- -#Magic data limit based od guaranted bandwidth in kbps fine tunes HTB ceil: -#(magic-relative-limit)*(min bandwidth kbps) = limit for given time period -#eg. value 8 gives 512 MB limit to 64 kbps HTB rates, 1024 MB to 128'ers... -#magic-fixed-limit is fixed data limit in MB (megabytes), 0=no limit -#HTB ceil will be reduced to (HTB rate) for the most unfair-users -#other offenders get (HTB rate)+(magic-treshold) -#magic-relative-prio and magic-fixed-prio work exactly the same way as -#limit, except that they reduce HTB priority instead of HTB ceil -#-------------------------------------------------------------------------- -#These settings are keyword-derived ! (see "keyword" section) -#-------------------------------------------------------------------------- -via-prometheus-magic-relative-limit 8 #*kb/sec->MB/day -via-prometheus-magic-relative-prio 6 #*kb/sec->MB/day -via-prometheus-magic-fixed-limit 0 #MB, less then -via-prometheus-magic-fixed-prio 0 #MB, less then -adsl-prometheus-magic-relative-limit 12 -adsl-prometheus-magic-relative-prio 8 -adsl-prometheus-magic-fixed-limit 0 -adsl-prometheus-magic-fixed-prio 0 -#========================================================================== -#HTB fine tuning part II - keyword dependent settings -#-------------------------------------------------------------------------- -#These settings are keyword-derived ! (see "keyword" section) -#-------------------------------------------------------------------------- -via-prometheus-htb-default-prio 1 #can be 1...magic-priorities-2 -via-prometheus-htb-rate-bonus 0 #kbps -via-prometheus-htb-ceil-malus 0 #kbps -adsl-prometheus-htb-default-prio 1 -adsl-prometheus-htb-rate-bonus 16 -adsl-prometheus-htb-ceil-malus 0 -#========================================================================== -#HTB fine tuning part III - keyword dependent settings -#-------------------------------------------------------------------------- -#These settings are keyword-derived ! (see "keyword" section) -# optionally! if not defined, using global leaf-discipline -# value "none" skip qdisc creation for this keyword -#-------------------------------------------------------------------------- -#via-prometheus-leaf-leaf-discipline esfq -#adsl-prometheus-leaf-discipline none -#========================================================================== -#Credit file settings - stores unused credit from previous runs -#-------------------------------------------------------------------------- -credit-filename /var/run/prometheus.credit -credit-enable 1 #1=yes|0=no -#========================================================================== -#Log file names and directories -#-------------------------------------------------------------------------- -log-filename /var/log/prometheus -log-traffic-directory /var/www/logs/ -log-traffic-url-path logs/ -#========================================================================== -#Hall of Fame - Greatest Suckers settings -#-------------------------------------------------------------------------- -hall-of-fame-enable 1 #1=yes|0=no -hall-of-fame-filename /var/www/yesterday.html -hall-of-fame-preview /var/www/today.html -hall-of-fame-title Hall of Fame - Greatest Suckers -#========================================================================== -#Hall of Fame - Color settings (for FUP data limit display) -#-------------------------------------------------------------------------- -#These settings are keyword-derived ! (see "keyword" section) -#-------------------------------------------------------------------------- -via-prometheus-html-color 008000 -adsl-prometheus-html-color 000080 -#========================================================================== -#That's all, folks. Now just run /usr/local/sbin/prometheus every day...