Doncs no !!! Acabo de comprovar-ho i amb la versió del squid, squid-2.5.STABLE12-18.6 funciona correctament amb les directives del curs D83.
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_single_host off
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Jo ho he comprovat amb el rpm del dansguardian que pots trobar a
ftp://ftp.pbone…4-4.1.i586.rpmAfegir que per defecte el port 8080 ja està ocupat pel Tomcat i llavors hauràs d'escollir un altre
, jo he agafat el 8088.
filterport = 8088 al fitxer /etc/dansguardian/dansguardian.conf.
Si vols emprar el cgi perl de notificació.
accessdeniedaddress = 'http://servidor.intracentre/cgi-bin/dansguardian.pl'
Previament l'hauràs de copiar al seu lloc.
servidor:~ # cp -a /usr/share/dansguardian/dansguardian/dansguardian.pl /srv/www/cgi-bin/
Si l'squid no vol crear els directoris de cache potser hauràs de canviar els propietaris.
servidor:~ # chown -R squid:nogroup /var/cache/squid
Finalment reiniciar tots els serveis i comprovar que funciona.
rcsquid restart
rcdansguardian restart
Provo de consultar el terme "sexo"
servidor:~ # tail -f /var/log/dansguardian/access.log
2008.6.6 10:27:44 - 192.168.0.200 http://www.google.com/search?q=sexo&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ca:official&client=firefox-a GET 319 0 1 302 - -
2008.6.6 10:27:44 - 192.168.0.200 http://www.google.es/search?q=sexo&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ca:official&client=firefox-a *DENIED* Weighted phrase limit of 50 : 860 (( porn, xxx)+( xxx, porn)+(amateur, porn)+(amateur, xxx)+(erotic, porn)+(erotic, xxx)+(orgasm, porn)+(orgasm, xxx )+(webcam, porn)+(webcam, xxx )+(amador, xxx)+(chicas, sexo)+(videos, gratis)+ erotic+ hentai+ morena+ porn+ xxx +amateur+borrachas+desnudas+erotic+famosas+hentai+jovencita+lesbianas+maduras+-noticia+orgasm+porno+porno gratis+pornostar+rubias) GET 20661 860 Pornography, Pornography (Spanish), Pornography (Portuguese), Pornography (German), Pornography (Italian) 1 403 text/html -
Vinga ...