Re: [squid-users] time restrictions in squid3

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 11 Dec 2008 01:02:54 +1300

Sameer Shinde wrote:
> Hi All,
>
> I'm using squid3.0 stable1 on my ubuntu 8.0.4 server along with squidGuard1.3 for blocking.
> I want to puu the time restrictions for the users, for that I addup the rule as follows in my squid.conf
>
> acl work_hrs time M T W H F A 09:00-17:00
> acl our_network work_hours
>
> but still I found that the users can use the net beyond this time slot.
> How can I enable the time restrictions for the users.
> (This happens with/without squidguard and squidguard is no way related to it.)
>
> Now one thing I've observed is that, all my users in network are having GMT+5.30 time.
> Even my squid server is having the same time as of my network. i.e GMT+5.30
> but the squid error logs shows me only GMT. Now I know that, squid by default shows the GMT
> & not any other time in default logs. But then is this a problem for me to apply the restrictions.
>
> In this case How can I resolve this problem.

You need to use http_access to block the requests.

   acl work_hrs time M T W H F A 09:00-17:00
   http_access deny our_network !work_hours

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10
   Current Beta Squid 3.1.0.3 or 3.0.STABLE11-RC1
Received on Wed Dec 10 2008 - 12:03:03 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 11 2008 - 12:00:02 MST