Re: [squid-users] Allow full access during a limited time period

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 16 Apr 2011 12:39:08 +1200

On 16/04/11 01:25, Chad Naugle wrote:
> I'm not sure about dansguardian, but I'm sure that Squid can open itself
> up at a specific time interval for *all* users during the work day, ie:
> (Note that the time slot mentioned is in 24-hour format, and only a
> quick and dirty example)
>
> acl break_time time M T W H F 12:00-12:15
> acl auth_users<auth_routine>
> acl blocked_sites dstdomain<...>
>
> http_access allow auth_users break_time
> http_access deny blocked_sites

Small optimization on the above lines:

   http_access deny blocked_sites !break_time

> http_access allow auth_users
> http_access deny all
>

The above change also removes problems around username logging etc.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.12
   Beta testers wanted for 3.2.0.6
Received on Sat Apr 16 2011 - 00:39:11 MDT

This archive was generated by hypermail 2.2.0 : Sat Apr 16 2011 - 12:00:04 MDT