Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

lug-bg: squid delay_pools


  • Subject: lug-bg: squid delay_pools
  • From: "Ivan Petrov" <i.petrov@xxxxxxxxxxxx>
  • Date: Tue, 13 Apr 2004 22:11:27 +0300 (EEST)
  • Importance: Normal

Zdraveite,
imam problem s configuriraneto na squid delay_access classes ili pone taka
si mislq.
OS na mashinata sys squid e Slackware linux 9.1
version na squid 2.5-STABLE4
squid e confignat da raboti kato transparent.
address-a na squid-a e 10.0.0.1.
eto i w obsti linii problemnata zona ot cfg file-a:
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl mynet src "/etc/squid/mynet.cfg" -> tuk e 10.0.0.0/255.255.255.0
acl friendsnet src "/etc/squid/friendsnet.cfg" -> tuk sa
10.0.1.0/255.255.255.0 i 10.0.2.0/255.255.255.0
acl magic_words1 url_regex -i 10.0.0.1
acl magic_words2 url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .rpm .zip
.rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov .asf .bin .img
.mpq .tgz

#
delay_pools 3

### CLASS 1 unlimited
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow magic_words1
#### CLASS 2 for all
delay_class 2 2
delay_access 2 allow magic_words2
delay_access 2 allow all
delay_parameters 2 5000/32000 5000/32000 -> speed 5 kbp/s
#### CLASS 3 for friends
delay_class 3 2
delay_access 3 allow friendsnet
delay_parameters 3 50000/50000 50000/50000 -> speed 50 kbp/s

Do tuk vsi4ko e nared, nqmam problem sys startiraneto na squid i ne mi
izpiswa nikakwi greshki.
No eto za kakwo stawa duma:
kogato client ot mynet se opitwa da swalq ot friendsnet files, opisani w
magic_words2, proxy-to go limitira na skorost 5kbp/s, t.e. qwno polzwa
class 2. celta mi e da uveli4a bandwidth za mynet edinstveno i samo do
friendsnet, a w ostanalite slu4ai squid da limitira mynet s class 2

Nqkoi moje li da pomogne?
blagodarq predwaritelno na wsi4ki
I.Petrov

P.S. Probwah razli4ni warianti kato:
### CLASS 1 unlimited
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow magic_words1 friendsnet
#### CLASS 2 for all
delay_class 2 2
delay_access 2 allow magic_words2 !friendsnet
delay_access 2 allow all
delay_parameters 2 5000/32000 5000/32000 -> speed 5 kbp/s
#### CLASS 3 for friends
delay_class 3 2
delay_access 3 allow friendsnet
delay_parameters 3 50000/50000 50000/50000 -> speed 50 kbp/s
wse edno i systo celiq traffic minawa prez delay_access 2.

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.