minor bugfixes (#ifdef MONITORINGTRHU)
[svn/Prometheus-QoS/.git] / examples / README
CommitLineData
e1614f4e 1How do we use Prometheus QoS in Brevnov:
a4f661fc 2
e1614f4e 31) /etc/prometheus/hosts
a4f661fc 4
51500+ IP addresses are asigned either guaranted speed classes 64, 128, 256
6and 512 kbps, with various HTB ceil rates, using "via-prometheus-" keyword.
7Some of IP addresses are set to share connection speed with internet
8gateway using "sharing-" keyword.
9
e1614f4e 102) /etc/prometheus/prometheus.conf
a4f661fc 11
12There are daily traffic quotas defined using "magic-relative-limit" value
13se to 8. This translates into 48h quota 1 GB for 64 kbps lines,
142 GB for 128 kbps lines, etc., with unused credit from day before yesterday
15stored in /var/run/prometheus.credit. Soft quotas (fair use policy) are
16applied (resulting in lower HTB priority) even before hard quotas are reached
17(magic-relative-prio set to 6, which is less then magic-relative-limit set
18to 8).
19
20Daily limits are applied by running prometheus every day at 3:00 AM. Between
213:00 AM and 6:00 AM, there is QoS free period, enabled by "qos-free-delay"
22value set to 10800. However, yesterday's data transfer statistics are kept
23in memory while prometheus QoS is iddle in this sleep mode.
24
25Undefined IP addresses share 32 kbps guaranted and 64 kbps maximum speed,
26set using "free-rate" and "free-ceil" keyword.
27
28There is QoS-free zone defined using "qos-free-zone" too be 10.0.0.0/8.
29This allows for example easy management of gateway from inside this range,
30or remote management of entire network after ssh to gatway and then another
31ssh to this zone.
32
ae776b10 33We used to run HTTP proxy at port 3128 of LAN interface of internet gateway.
34This proxy was inside "qos-free-zone". With "qos-proxy-enable",
a4f661fc 35"qos-proxy-ip" (which is actually IP/number of bits of netmask) and
ae776b10 36"qos-proxy-port" settings, this port was excluded from QoS-free zone.
a4f661fc 37
383) NAT
39
40Both symetrical and asymetrical NAT is defined by another script file, in
41iptables nat table (-t nat). Prometheus QoS uses only iptables mangle
42tables (-t mangle), see FAQ.
43
e1614f4e 444) /etc/cron.d/prometheus and related files
a4f661fc 45
46Every hour, we run prometheus with -p switch to generate preview. On system
47boot, we run prometheus with -n switch to skip QoS free period.
This page took 0.217226 seconds and 4 git commands to generate.