Configuring squid with delay_pools

Taking care of your Linux box.

Configuring squid with delay_pools

Postby imranhussain » Wed Oct 08, 2003 4:13 pm

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
imranhussain
Lance Naik
 
Posts: 15
Joined: Wed Jun 04, 2003 12:26 pm
ICQ: 173082297
WLM: imranhussain90@hotmail.com
Yahoo Messenger: click2subscribe@yahoo.com
Location: Karachi

Re:

Postby LinuxFreaK » Wed Oct 08, 2003 11:35 pm

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

more help needed

Postby imranhussain » Thu Oct 09, 2003 3:59 pm

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
imranhussain
Lance Naik
 
Posts: 15
Joined: Wed Jun 04, 2003 12:26 pm
ICQ: 173082297
WLM: imranhussain90@hotmail.com
Yahoo Messenger: click2subscribe@yahoo.com
Location: Karachi

Re:

Postby LinuxFreaK » Thu Oct 09, 2003 11:23 pm

Dear imranhussain,
Salam,

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

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

by the way

Postby lambda » Fri Oct 10, 2003 11:11 am

the squid package on redhat ships with delay pools activated.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

required squid.conf

Postby imranhussain » Mon Oct 13, 2003 10:14 am

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
imranhussain
Lance Naik
 
Posts: 15
Joined: Wed Jun 04, 2003 12:26 pm
ICQ: 173082297
WLM: imranhussain90@hotmail.com
Yahoo Messenger: click2subscribe@yahoo.com
Location: Karachi

Re:

Postby LinuxFreaK » Mon Oct 13, 2003 10:29 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby newbie » Sat Nov 01, 2003 3:41 am

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.
newbie
Company Havaldaar Major
 
Posts: 156
Joined: Thu Aug 08, 2002 4:18 am
WLM: usman_fool@hotmail.com
Location: lahore

delay_pool

Postby saima shiraz » Thu Jun 03, 2004 9:49 am

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.
saima shiraz
Lance Naik
 
Posts: 30
Joined: Tue May 25, 2004 1:28 am
WLM: onezeroinc
Yahoo Messenger: onezero
Location: karachi

Re:

Postby LinuxFreaK » Sat Jun 05, 2004 9:39 pm

Dear saima shiraz,
Salam,

http://lartc.org/howto/

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby kashif » Sun Jun 06, 2004 6:17 am

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

**********************************************
kashif
Naib Subedar
 
Posts: 305
Joined: Wed Oct 15, 2003 2:44 am
Location: Okara

Re:

Postby LinuxFreaK » Sun Jun 06, 2004 8:54 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron