Search squid archive

Re: Fwd: URL redirection in offline mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23 Nov 2010 16:03:00 +0100, "Helmut Hullen" <Hullen@xxxxxxxxxxx> 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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux