odstranen "warning: implicit declaration of function" a jeste neco
[svn/Prometheus-QoS/.git] / sample-configuration / README
CommitLineData
a4f661fc 1How we use Prometheus QoS in Brevnov:
2
31) /etc/hosts
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
102) /etc/prometheus.conf
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
33We run HTTP proxy at port 3128 of LAN interface of internet gateway. This
34proxy is inside "qos-free-zone". Because of "qos-proxy-enable",
35"qos-proxy-ip" (which is actually IP/number of bits of netmask) and
36"qos-proxy-port" settings, this port is excluded from QoS-free zone.
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
444) /etc/crontab and related files
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.109236 seconds and 4 git commands to generate.