Re: [squid-users] time restrictions in squid3

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 11 Dec 2008 23:16:31 +1300

Sameer Shinde wrote:
> Amos,
>
> One thing I missed out in this was to tell I already had,
>
> http_access allow our_network work_hours
>
> I understand that,
> http_access deny our_network !work_hours
> will also work, but then why mine is not working?

Well, the difference is that they ware not exact inverses of each other.

'allow' is a soft limit. It means OKAY if it matches, and MAYBE if it fails.

'deny' is a hard limit it means NO if it matches and MAYBE if it fails.

Yours matches the timespan and lets through... or else what? MAYBE gets
through thats what.

Mine matches the non-timespan and blocks immediately. Only skipping to
next rule if they are allowed.

Amos

>
> ~~~~~~~~~~~~~~~~~~~
> Thanks & Regards,
> Sameer Shinde.
> Sr. Customer Support Engineer,
> Email:- s2sameer_at_hotmail.com
> M:- +91 98204 61580
> http://www.geocities.com/s9sameer
> If everyone is thinking alike, then somebody isn't thinking.
>
>
>
>
>> Date: Thu, 11 Dec 2008 01:02:54 +1300
>> From: squid3_at_treenet.co.nz
>> To: s2sameer_at_hotmail.com
>> CC: squid-users_at_squid-cache.org
>> Subject: Re: [squid-users] time restrictions in squid3
>>
>> 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
>
> _________________________________________________________________
> You live life online. So we put Windows on the web.
> http://clk.atdmt.com/MRT/go/127032869/direct/01/

-- 
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 Thu Dec 11 2008 - 10:16:40 MST

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