Configuring squid with delay_pools

Taking care of your Linux box.
Post Reply
imranhussain
Lance Naik
Posts: 15
Joined: Wed Jun 04, 2003 12:26 pm
Location: Karachi
Contact:

Configuring squid with delay_pools

Post by imranhussain »

AOA to all members
hope u r fine

I want to configure squid through it's source bcuzz i want to enable such options like delay pools.
i know the configuration script but don't know how to set this up on starup as a service & How to use delay pool feature. I just want to limit traffic @ 5KB per host.


Thanks in advance
Geek
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear imranhussain,
Salam,

You will need :

--enable-delay-pools

during the configure stage of squid. See the file 'INSTALL' as how to compile/install squid. Your mentioned squid is version is >very< old. Advising to use the latest STABLE release. and also check out http://squid.visolve.com/squid24s1/delaypool.htm and http://ezine.daemonnews.org/200209/squid.html

Example Confiuration File:

acl magic_words1 url_regex -i 192.168
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 $
delay_access 1 allow magic_words2
delay_access 2 allow magic_words1
delay_pools 2

delay_class 1 2
delay_parameters 1 -1/-1 5000/5000000
delay_access 1 allow magic_words2

delay_class 2 2
delay_parameters 2 -1/-1 -1/-1
delay_access 2 allow magic_words1

these are my current settings...

now, i need add to magic_words2 all extensions of files, how is it done ?

--
delay_class 1 2
delay_parameters 1 -1/-1 5000/5000000
delay_access 1 allow magic_words2
that means that channel is unlimited and files larger taht ~5mb vil go at ~5kb

so.. if i do:

delay_class 1 4
delay_parameters 1 -1/-1 15000/8000000 10000/12000000
8000/15000000 4000/20000000
delay_access 1 allow magic_words2

files larger than
> 8mb ~15kb
> 10mb ~12kb
> 15mb ~8 kb
> 20mb 4kb ?

btw, maybe someone else could share his delay_pools for examples ?

Best Regards.
Farrukh Ahmed
imranhussain
Lance Naik
Posts: 15
Joined: Wed Jun 04, 2003 12:26 pm
Location: Karachi
Contact:

more help needed

Post by imranhussain »

AOA to all members
hope u r fine

thanks 4 ur kind reply

it's very stupid but i wanna ask one thing that may i paste all that configuration that u've given into my squid.conf @ any place or any specific tag.
Geek
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear imranhussain,
Salam,

Its an example.. so configure your squid.conf @ your need.

Best Regards.
Farrukh Ahmed
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

by the way

Post by lambda »

the squid package on redhat ships with delay pools activated.
imranhussain
Lance Naik
Posts: 15
Joined: Wed Jun 04, 2003 12:26 pm
Location: Karachi
Contact:

required squid.conf

Post by imranhussain »

AOA all members
hope u r fine

it 's highly appreciated if anyone plz share their squid.conf with delay pools enabled for testing purpose.

thanks in advance
Geek
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear Imranhussain,
Salam,

I did not setup delay_pools in Squid i use Bandwidht Manager @ FreeBSD so i would like to advice your to check http://squid-docs.sourceforge.net/lates ... book1.html and also http://www.squid-cache.org/mail-archive ... /0208.html and http://www.squid-cache.org/mail-archive ... /0233.html
Hope it will Help you and if any one have configured Squid with delay_pools Options then they will INSAHALLAH Share his/her Squid.conf here. i will be very thank full for them.

Best Regards.
Farrukh Ahmed
newbie
Company Havaldaar Major
Posts: 156
Joined: Thu Aug 08, 2002 4:18 am
Location: lahore

Post by newbie »

imran hussain

tell us about your total bandwidth

and clients . then we will be in a position to configure delay pools for u .
and which class of ip addresses u are using?

thanks.
saima shiraz
Lance Naik
Posts: 30
Joined: Tue May 25, 2004 1:28 am
Location: karachi
Contact:

delay_pool

Post by saima shiraz »

my server ip is 192.168.100.1
my user ip range is in between 192.168.100.2 to 192.168.100.60
i am using multinet DSL and my circuit is 64kbps uploading and 128kbps downloading.

my question is how to set delay_pool in my squid.conf for fastest interactive browsing on my client pc's as well as some delay option for files download etc. exe.dat.avi.mpeg etc. with different download speed.

allah hafiz
best regards
Linux...Har Pal Linux.
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear saima shiraz,
Salam,

http://lartc.org/howto/

Best Regards.
Farrukh Ahmed
kashif
Naib Subedar
Posts: 305
Joined: Wed Oct 15, 2003 2:44 am
Location: Okara

Post by kashif »

dear LinuxFreak

I did not setup delay_pools in Squid i use Bandwidht Manager @ FreeBSD

Please can u give some detail and link of Bandwidth Manger
**********************************************

As-Salaatu was-Salaamu Alaika Ya Sayyidi Ya Rasool ALLAH

**********************************************
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear kashif,
Salam,
kashif wrote:Please can u give some detail and link of Bandwidth Manger
http://www.etinc.com/bwmgr.htm

Best Regards.
Farrukh Ahmed
Post Reply