Dies ist eine alte Version des Dokuments!
Fedora, Debian, SuSE:
squid
/etc/init.d/squid start netcat -v localhost 3128 GET http://www.heise.de/ HTTP/1.1 Host: www.heise.de
(2 mal <Return>)
Konfigurationsdatei vor Neustart testen:
squid -k parse
/etc/squid/squid.conf
:
acl our_networks src 192.168.1.0/24 http_access allow our_networks
/etc/squid3/squid.conf
:
acl PURGE method PURGE acl localhost src 127.0.0.1 http_access allow PURGE localhost http_access deny PURGE
Seite laden:
http_proxy='localhost:3128' wget -q -O - http://www.linuxhotel.de/index.html | wc -l
Seite löschen:
squidclient -m PURGE http://www.linuxhotel.de/index.html
/etc/squid/squid.conf
:
auth_param basic program /usr/lib/squid/pam_auth # in älteren squid-Versionen heißt es ''authenticate_program /usr/lib/squid/pam_auth'' statt auth_param ... acl password proxy_auth REQUIRED acl our_networks src 192.168.1.0/24 http_access allow our_networks password
Bei Fedora müssen noch die Dateisystem-Rechte angepasst werden:
groupadd shadow chgrp shadow /etc/shadow chmod g+r /etc/shadow chgrp shadow /usr/lib/squid/pam_auth chmod g+s /usr/lib/squid/pam_auth /etc/init.d/squid restart
Kleiner Test:
echo -en "nutzer14:villa" | mimencode netcat -v localhost 3128 GET http://www.heise.de/ HTTP/1.1 Host: www.heise.de Proxy-Authorization: Basic bnV0emVyMTQ6dmlsbGE=
Cache auf 8 GB vergrößern:
cache_dir ufs /var/cache/squid 8000 16 256
nicht getestet
Benötigt: apache
/etc/mime.types
: ( Debian 3.1 )
application/x-ns-proxy-autoconfig pac
/etc/apache2/mod_mime-defaults.conf
: ( SuSE 10.2 )
AddType application/x-ns-proxy-autoconfig pac
/var/www/wpad.dat
: ( Debian 3.1 )