Re: [squid-users] prevent users from downloading very large files from internet ONLY

2003-09-04 Thread Henrik Nordstrom
On Thursday 04 September 2003 08.08, Karmila Sari wrote:
 acl weblocal dst 192.168.1.0/255.255.255.0
 acl subnetA src 192.168.2.0/255.255.255.0
 acl SubnetB src 192.168.3.0/255.255.255.0

 reply_body_max_size 1048576 allow subnetA #10MB
 reply_body_max_size 1048576 allow subnetB #10MB
 reply_body_max_size 0 allow weblocal  #unlimited

The first reply_body_max_size Squid finds matchin the request is used, 
so for subnetA or subnetB the last rule will never ever be reached.

I tink you want to move this rule above the other two..

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org

If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, [EMAIL PROTECTED]


RE: [squid-users] prevent users from downloading very large files from internet ONLY

2003-09-04 Thread Jay Turner
You have defined the ACL name as SubnetB
but you reference it in your reply_body_max rule as subnetB

From memory squid.conf is case-sensitive is it not?

 -Original Message-
 From: Karmila Sari [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 4 September 2003 2:08 PM
 To: [EMAIL PROTECTED]
 Subject: [squid-users] prevent users from downloading very large files
 from internet ONLY
 
 
 Hi,
 
 I would like to prevent users from downloading very
 large files from internet ONLY,but allow unlimited
 download size from our local web server. I've
 construct the ACL as bellow, but it seem it did not
 working.
 
 acl weblocal dst 192.168.1.0/255.255.255.0
 acl subnetA src 192.168.2.0/255.255.255.0
 acl SubnetB src 192.168.3.0/255.255.255.0
 
 reply_body_max_size 1048576 allow subnetA #10MB
 reply_body_max_size 1048576 allow subnetB #10MB
 reply_body_max_size 0 allow weblocal  #unlimited
 
 Would you please point me to the right direction? Any
 help would be great!
 
 regards,
 karmila
 
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com