Squdia moşna ogranicza� w dowolny sposób uşywaj�c
wbudowanych w
niego ACL, delay-pools. Jednak zaimplementowanie tego do LMS'a moşe stanowi� w pewnym sensie problem z racji do��
duşej z�oşono�ci w/w
mechanizmĂłw.
aj tam;) [mgc:prx] outfile = /prx outfile_perm = 600 outfile_owner = 0 outfile_group = 0
grantednode_priv =<<EOT acl %name src %IP http_access allow %name delay_access %DOWNRATE allow %name EOT
grantednode_publ =<<EOT acl %name src %IP http_access allow %name delay_access %DOWNRATE allow %name EOT
post_exec = /prx.cfg
plik prx.cfg ->
cat /etc/squid/main > /etc/squid/squid.conf
cat /mnt/fibre/konf/prx |sed -e 's/\ 64\ /\ 12\ /'|sed -e 's/\ 48\ /\ 11\ /'|sed -e 's/\ 1024\ /\ 10\ /'|sed -e 's/\ 768\ /\9\ /'|sed -e 's/\ 640\ /\ 8\ /'|sed -e 's/\ 512\ /\ 7\ /'|sed -e 's/\ 384\ /\ 6\ /'|sed -e 's/\ 256\ /\ 5\ /'|sed -e 's/\ 192\ /\ 4\ /'|sed -e 's/\ 128\ /\ 3\ /'|sed -e 's/\ 96\ /\ 2\ /'|sed -e 's/\ 32\ /\ 1\ /' >> /etc/squid/squid.conf
cat /etc/squid/foot >> /etc/squid/squid.conf
w main mam tak zdefiniowane classy: delay_pools 12 delay_class 1 3 delay_class 2 3 delay_class 3 3 delay_class 4 3 delay_class 5 3 delay_class 6 3 delay_class 7 3 delay_class 8 3 delay_class 9 3 delay_class 10 3 delay_class 11 3 delay_class 12 3
delay_parameters 1 -1/-1 -1/-1 4000/4000 delay_parameters 2 -1/-1 -1/-1 12000/12000 delay_parameters 3 -1/-1 -1/-1 16000/16000 delay_parameters 4 -1/-1 -1/-1 24000/24000 delay_parameters 5 -1/-1 -1/-1 32000/32000 delay_parameters 6 -1/-1 -1/-1 48000/48000 delay_parameters 7 -1/-1 -1/-1 64000/64000 delay_parameters 8 -1/-1 -1/-1 80000/80000 delay_parameters 9 -1/-1 -1/-1 96000/96000 delay_parameters 10 -1/-1 -1/-1 128000/128000 delay_parameters 11 -1/-1 -1/-1 6000/6000 delay_parameters 12 -1/-1 -1/-1 8000/8000
;) moze sie komus to przyda. pozdrawiam Paweł Tykwiński