Re: [squid-users] Access List

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 4 Sep 2002 18:51:31 +0200

Awie wrote:

> Below I tried to create the some access list that I need your advise which
> is the most effective (and will work)
>
> acl CANTEEN src 10.1.2.3 10.1.2.4
> acl OPEN time SMTWHFA 08:00-10:00 11:00-13:00 18:00-20-00 1:00-3:00

The intention is that this should work, but it is reported that the above
fails and only uses the first specified time.. have a patch but have not yet
received a confirmation if the patch fixes the problem.

> acl CANTEEN src 10.1.2.3 10.1.2.4
> acl OPEN1 time SMTWHFA 08:00-10:00
> acl OPEN2 time SMTWHFA 11:00-13:00
> acl OPEN3 time SMTWHFA 18:00-20-00
> acl OPEN4 time SMTWHFA 1:00-3:00
> http_access allow CANTEEN OPEN1 OPEN2 OPEN3 OPEN4

This wont' work. The time cant be all of OPEN1, OPEN2, OPEN3 and OPEN4 at the
same time...

> acl CANTEEN src 10.1.2.3 10.1.2.4
> acl OPEN1 time SMTWHFA 08:00-10:00
> acl OPEN2 time SMTWHFA 11:00-13:00
> acl OPEN3 time SMTWHFA 18:00-20-00
> acl OPEN4 time SMTWHFA 1:00-3:00
> http_access allow CANTEEN OPEN1
> http_access allow CANTEEN OPEN2
> http_access allow CANTEEN OPEN3
> http_access allow CANTEEN OPEN4
> http_access deny CANTEEN

Should work.

Regards
Henrik
Received on Wed Sep 04 2002 - 10:51:53 MDT

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