Re: ACL Time-Access

From: Benarson Behajaina <Benarson.Behajaina@dont-contact.us>
Date: Wed, 29 Apr 1998 11:10:22 +0200 (MET DST)

Tim Brody wrote:
>
> I believe I've managed to sort it.
>
> The problem was I had my times in a file, with lines of 'time' slots when
> users could access the proxy, which of course doesn't work (only one time
> entry per acl). ACL TIME will only accept one entry ... which is a real
You're right.
AFAIK squid won't work properly if you put more than one entry to ACL TIME.

From squid.conf Definition Access List:
#
# acl aclname acltype string1 ...
# acl aclname acltype "file" ...
#
# when using "file", the file should contain one item per line

But if you have ACL TIME using "file", you must have only one line.
Squid will accept the time which is in the last line (only), when the "file"
has more than one line.

> pain in the arse for school (I want to ban users during lesson times ...
> which means min 3 entries, with appropriate http_access ... and it will get
> even more complex if I want different access during different days!).
:-( In this case I'm sorry.

> Thanks all the same,
> Tim.
>
> >Tim Brody wrote:
> >>
> >> Does anybody have a (simple) instructions on using the times. I've read =
> >> the squid.conf, written the acl and it still doesn't work. It looks so =
> >> simple I don't see what I can be doing wrong, assistance is much =
> >> appreciated!
> >Last month (March 1998) there were discussions and examples about Squid
> Time ACL.
> >Check out the Squid archive mailing lists.
> >
> >Hope this will help,
> >
> >Benarson.

-- 
--------------------------------------------------
 Benarson Rodriguez Behajaina 
 Unix System Administrator   
 email :  benarson@swh.sk   
 phone :  +421 7 538 4921  
 fax   :  +421 7 538 5403 
--------------------------------------------------
Received on Wed Apr 29 1998 - 02:22:48 MDT

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