Re: [squid-users] various problems

From: Alex <alex@dont-contact.us>
Date: Fri, 11 Jun 2004 03:00:28 +0300

----- Original Message -----
From: "Muthukumar" <kmuthu_gct@hotmail.com>
To: "Alex" <admin@hostingcenter.ro>; <squid-users@squid-cache.org>
Sent: Thursday, June 10, 2004 4:30 PM
Subject: Re: [squid-users] various problems

>
> > I have delay pools setup like this:
> >
> > delay_pools 2
> > delay_class 1 2
> > delay_class 2 2
> >
>
> You are having 2 delay pools and using the delay pools for class C
(255.255.255.0 family) ip-address.
>
> > delay_parameters 1 -1/-1 7000/8000
>
> delay pool number 1 is a class 2 delay pool to restict each host with the
limit 7 - 8 k bytes
>
> > delay_parameters 2 -1/-1 3000/4000
> > This produces some strange behavior, the statement "delay_parameters
2 -1/-1
> > 3000/4000" does not seem to work correctly, instead of shaping the
download
> > to 3-4k/s it behaves just like the first delay pool, shaping the
download to
> > 7-8k. Maybe a bug in squid 2.5stable3 ?
> >
>
> You have already given 7 - 8 k bytes limit usage to all hosts. So it
won't work.
>
> You have to change the delay_parametes settings. It is good to have the
following,
> - How much total load you are having?
> - what are all the acls settings?

ACL's are setup like this:

acl files url_regex -i "/etc/squid/files"
acl clienti-32k src "/etc/squid/clienti-32k"
acl clienti-64k src "/etc/squid/clienti-64k"
acl nolimit src "/etc/squid/nolimit.acl"

Maybe you have an example of how things should be setup? To my knoledge this
is the right way... but I may be wrong

What I want is to shape download for the files with extensions specified in
/etc/squid/files to 32k for users in acl clienti-32k and to 64k to users in
acl clienti-64k and give full speed to acl nolimit.

> > delay_access 1 deny nolimit
> > delay_access 1 allow files
> > delay_access 1 allow clienti-64k
> >
> > delay_access 2 deny nolimit
> > delay_access 2 allow files
> > delay_access 2 allow clienti-32k
> > delay_access 2 allow clienti-limit
> >
>
> Normally don't use more then two rules per delay pool type. Change the
above as
> delay_access 1 allow clienti-64k files !nolimit
> delay_access 1 deny all
>
> oops.You are using files users in two delay types!!
>
>
> > The second problem that I have is when the clients behind the proxy try
to
> > login to some forum, sourceforge.net or any other php forum,
immediately
> > after login they are presented with the message "invalid session" or the
> > login screen appears again.
>
> I am not sure with the above problem. It is good to change the complete
setting and check again.
> Send your requirement with the details.
>
> Regards,
> Muthukumar.
>
>
>
>
> ---
> =============== It is a "Virus Free Mail" ===============
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.701 / Virus Database: 458 - Release Date: 6/7/2004
>
>
> --
> This message has been scanned for viruses and
> dangerous content, and is believed to be clean.
>
>
>

-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.
Received on Thu Jun 10 2004 - 18:00:37 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:02 MDT