Re: acl with dates and time question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 03 Jul 1999 14:35:33 +0200

Emile Coetzee wrote:

> My first question is if there is no way around the h1:m1 must be smaller
> that h2:m2 i.e. I can't have 17:00-08:00. Do I have to set up another acl?

You can use negation

acl workhours MTWHF 08:00-17:00

http_access allow !workhours ...

!workhours matches all time except 08:00-17:00 Monday to Friday.

> Question 2: If I leave the time blank will that allow access for all times
> of the day? or do I have to add 00:00-23:59 for weekends (S A)

The current syntax is
# acl aclname time [day-abbrevs] [h1:m1-h2:m2]
i.e. you only need to specify the information you want to match on. If
you want to match on days then you only need to specify which days.

> Version: squid 1.1.2

Are you sure? It is a very very old version (more than two years old,
maybe three), has a lot of bugs and is no longer supported. The current
supported version is squid-2.2.STABLE3+official patches, and you are
stronly recommended to upgrade. See http://squid.nlanr.net/ for the
current version.

--
Henrik Nordstrom
Spare time Squid hacker
Received on Sat Jul 03 1999 - 06:22:42 MDT

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