Re: [squid-users] Time based ACL

From: Chris Robertson <crobertson_at_gci.net>
Date: Thu, 11 Dec 2008 13:54:20 -0900

Amos Jeffries wrote:
> Nyamul Hassan wrote:
>> Hi,
>>
>> I have a few time based ACLs which are used in delay_pools. In the
>> literature, it suggests that the higher limit in time based ACL
>> should always be higher than the lower limit, which works well, but
>> what about if we want to define something like: 6pm to 2am? Will
>> 18:00-02:00 work?
>>
>> Regards
>> HASSAN
>>
>
> The Squid time occurs within the single days specified in the pattern
> (default any) and doesn't let you cross midnight to other unspecified
> days.
>
> 6pm to 2am is configured like this:
>
> acl t time 02:00-18:00
> *_access ... !t
>
> Amos

Is it possible to combine multiple times, so acl "t" if defined like...

acl t time 18:00-23:59
acl t time 00:00-02:00

...would work as requested?

Chris
Received on Thu Dec 11 2008 - 22:54:38 MST

This archive was generated by hypermail 2.2.0 : Fri Dec 12 2008 - 12:00:06 MST