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.

------------ part of "squid.conf" -------------------

http_access allow manager localhost
http_access deny manager
# nach Buch

http_access deny CONNECT !SSL_ports
http_access deny Dangerous_ports

# nur LAN erlaubt (ist das doppelt gemoppelt?)
http_access deny !localnet

include /etc/squid/conf.d/schlafen.conf

# ....

-------------- end squid.conf -----------------------------

with

------------- /etc/squid/conf.d/schlafen.conf --------------

acl Schlafzeit time 00:00-05:59
http_access allow !Schlafzeit
#

-------------- end schlafen.conf ----------------------------

Early in the morning I get the following messages in "/var/log/ 
messages":

------------- /var/log/messages ------------------------------

Nov 22 04:13:23 Arktur squid[3238]: Failure Ratio at 1.088
Nov 22 04:13:23 Arktur squid[3238]: Going into hit-only-mode for 5 minutes...
Nov 22 04:18:23 Arktur squid[3238]: Failure Ratio at 1.401
Nov 22 04:18:23 Arktur squid[3238]: Going into hit-only-mode for 5 minutes...
Nov 22 04:23:42 Arktur squid[3238]: Failure Ratio at 1.245
Nov 22 04:23:42 Arktur squid[3238]: Going into hit-only-mode for 5 minutes...
Nov 22 04:28:42 Arktur squid[3238]: Failure Ratio at 1.092
Nov 22 04:28:42 Arktur squid[3238]: Going into hit-only-mode for 5 minutes...
Nov 22 04:33:42 Arktur squid[3238]: Failure Ratio at 1.440
Nov 22 04:33:42 Arktur squid[3238]: Going into hit-only-mode for 5 minutes...
Nov 22 04:39:33 Arktur squid[3238]: Failure Ratio at 1.008
Nov 22 04:39:33 Arktur squid[3238]: Going into hit-only-mode for 5 minutes...

--------------- end messages ----------------------------------

My squid version:

Squid Cache: Version 3.1.8
configure options:  '--prefix=/usr' '--libdir=/usr/lib' 
'--sysconfdir=/etc/squid' '--localstatedir=/var/log/squid' 
'--datadir=/usr/share/squid' '--with-pidfile=/var/run/squid' 
'--mandir=/usr/man' '--with-logdir=/var/log/squid' '--enable-snmp' 
'--enable-storeio=aufs,ufs,diskd' '--enable-wccp' '--enable-arp-acl' 
'--enable-ssl' '--enable-removal-policies=lru,heap' '--enable-icmp' 
'--enable-delay-pools' '--enable-auth=basic' 
'--enable-basic-auth-helpers=NCSA,YP,multi-domain-NTLM,MSNT,SMB,getpwnam' 
'--enable-linux-netfilter' '--enable-async-io' '--disable-loadable-modules' 
'--build=i486-slackware-linux' 'build_alias=i486-slackware-linux' 'CFLAGS=-O2 
-march=i486 -mtune=i686' 'CXXFLAGS=-O2 -march=i486 -mtune=i686' 
--with-squid=/tmp/SBo/squid-3.1.8 --enable-ltdl-convenience


Viele Gruesse!
Helmut

Reply via email to