Re: [squid-users] TIMESLOT PROBLEM

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 06 Jun 2001 23:01:05 +0200

Your ACL specification is odd. What do you actually want it to cover?
For example what about the time friday afternon to monday morning? Is
this included or not?

See two approaches:

a) Denying what should not be allowed (if you want to cover everything
except monday-friday 10:00-17:00)

acl businesshours time MTWHF 10:00-17:00
http_access allow myclients2 !businesshours
http_access deny myclients2

or put another way:

http_access deny myclients2 businesshours
http_access allow myclients2

b) Split the specifiation in than one time ACL (if you only want to
cover mornings and evenings)

acl morning time MTWHF 00:00-10:00
acl evening time MTWHF 17:00-24:00
http_access allow myclients2 morning
http_access allow myclients2 evening
http_access deny myclients2

or put another way:

http_access deny myclients2 !morning !evening
http_access allow myclients2

Somraj Bhattacharyya wrote:
>
> Hi all
>
> I want to make a timeslot from evening 5:00pm to morning 10:pm ,I am
> using the following ACL but it is giving error that starting time
> should be greater than the ending time.And the timeslot is not
> working.
>
> I am using this one........
>
> acl myclients2 src "/etc/squid/timeslot/normalusers"
> acl WORKING time MTWHF 17:00-10:00
> http_access allow myclients2 WORKING
> http_access deny myclients2
>
> Can anyone give me a solution?
> Thanks in advance
> Somraj
Received on Wed Jun 06 2001 - 15:06:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:31 MST