Re: [squid-users] time ACL

From: Monah Baki <mbaki@dont-contact.us>
Date: Thu, 12 Jul 2007 08:13:22 -0400 (EDT)

Never mind, found it.

AclDefnitions

    acl abc src 172.161.163.85
    acl xyz src 172.161.163.86
    acl asd src 172.161.163.87
    acl morning time 06:00-11:00
    acl lunch time 14:00-14:30
    acl evening time 16:25-23:59

Access Controls

    http_access allow abc morning
    http_access allow xyz morning lunch
    http_access allow asd lunch

Thanks

> How do I write the acl in such a way if all users IP is 192.169.10.0/32
> but from Monday-Friday 192.168.10.6 and 192.168.10.7 can only use it from
> 10AM to 12PM.
>
> Thank you
>
>
>> Yes, there's an acl named time that's described in squid.conf.
>>
>> # acl aclname time [day-abbrevs] [h1:m1-h2:m2]
>> # day-abbrevs:
>> # S - Sunday
>> # M - Monday
>> # T - Tuesday
>> # W - Wednesday
>> # H - Thursday
>> # F - Friday
>> # A - Saturday
>> # h1:m1 must be less than h2:m2
>>
>> You can make it work in conjunction with other acls.
>>
>>
>> Regards,
>>
>> Isnard
>>
>>
>> Em Qui, 2007-07-12 ās 07:04 -0400, Monah Baki escreveu:
>>> Hi all,
>>>
>>> Is there a way to restrict some users access to the internet at a
>>> particular time or this is glabol, applies to everyone who has their
>>> proxy setting pointed to the server.
>>>
>>> Thank you
>>>
>>>
>>> BSD Networking, Microsoft Notworking
>>>
>>>
>>>
>>
>
>
Received on Thu Jul 12 2007 - 06:38:45 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:03 MDT