Re: [squid-users] acl list question

From: Tim Neto <[email protected]>
Date: Wed, 10 Mar 2004 09:51:37 -0500

Payal Rathod wrote:

>Hi,
>I have 3 users "shilpa, amol and atul" to whom I must block yahoo and
>hotmail completely except during tea breaks. Also, I must allow other
>users to access the net completely. What can I do for this? I tried,
>
>acl blockdc dstdomain .yahoo.com .hotmail.com
>acl cl_no proxy_auth shilpa amod atul
>acl break_time1 time 08:30-08:45
>acl break_time2 time 15:30-15:45
>http_access deny !break_time1 !break_time2 blockdc cl_no
>http_acces allow cl_no
>
>But it is not working. The password for cl_no users are not at all
>accepted.
>What is wrong?
>
>With warm regards,
>-Payal
>
>

First off,

I'd recommend:
    acl blockdc_yahoo dstdomain .yahoo.com
    acl blockdc_hotmail dstdomain .hotmail.com
    acl break_time1 time 08:30-08:45
    acl break_time2 time 15:30-15:45
    http_access deny !break_time1 !break_time2 blockdc_yahoo
blockdc_hotmail cl_no
    http_acces allow cl_no

Break out the dstdomain to one (1) per ACL.

Tim

-- 
----------------------------------------------------------------------
Timothy E. Neto
 Computer Systems Engineer              Komatsu Canada Limited
 Ph#: 905-625-6292 x265                 1725B Sismet Road
 Fax: 905-625-6348                      Mississauga, Ontario, Canada
 E-Mail: tneto@komatsu.ca               L4W 1P9
----------------------------------------------------------------------
Received on Wed Mar 10 2004 - 07:51:47 MST

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