Re: Fwd: [squid-users] URL redirection in offline mode

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 23 Nov 2010 22:21:41 +0000

On 23 Nov 2010 16:03:00 +0100, "Helmut Hullen" <Hullen_at_t-online.de> wrote:
> Hallo, Amos,
>
> Du meintest am 22.11.10:
>
>>>> Turn of "offline_mode" if you have it set in squid.conf. Despite
>>>> the name, it only causes aggressive caching to be done.
>
>>> But what shall I do with a squid installation in a boarding school
>>> ("Internat", many pupils have their own computer(s)) where the
>>> connection into the internet is cut from midnight to 6:00?
>>>
>>> "squid" mourns on and on that the DNS is unreachable (and that's
>>> right ...).
>
>
>> Make yourself a custom error page template explaining the situation.
>> Then use a deny_info line to supply it when a time-based ACL at the
>> top of the http_access list matches your offline times. No DNS or
>> external network connection involved.
>
> May be I do something wrong - but my ACL doesn't help.
>

<snip>
>
> ------------- /etc/squid/conf.d/schlafen.conf --------------
>
> acl Schlafzeit time 00:00-05:59
> http_access allow !Schlafzeit

This is an "allow" line. It make the decision between ALLOW or CONTINUE.

What you need is a "deny line. To make the decision between DENY or
CONTINUE.

Use:
  http_access deny Schlafzeit

Amos
Received on Tue Nov 23 2010 - 22:21:44 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 25 2010 - 12:00:02 MST