Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
lpi2:squid [2013/12/30 02:42] ingo_wichmann [Squid starten und testen] |
lpi2:squid [2013/12/30 02:47] ingo_wichmann [PURGE Zugriff erlauben] |
||
---|---|---|---|
Zeile 16: | Zeile 16: | ||
squid -k parse | squid -k parse | ||
- | ===== Eintrag aus Cache Löschen ===== | + | ====== Squid für das lokale Netzwerk ====== |
- | ==== PURGE Zugriff erlauben ==== | + | ''/etc/squid/squid.conf'': |
+ | <file> | ||
+ | acl our_networks src 192.168.1.0/24 | ||
+ | http_access allow our_networks | ||
+ | </file> | ||
+ | |||
+ | ====== Eintrag aus Cache Löschen ====== | ||
+ | (( Details siehe: http://wiki.squid-cache.org/SquidFaq/OperatingSquid )) | ||
+ | ===== PURGE Zugriff erlauben ===== | ||
''/etc/squid3/squid.conf'' : | ''/etc/squid3/squid.conf'' : | ||
<file> | <file> | ||
acl PURGE method PURGE | acl PURGE method PURGE | ||
- | acl localhost src 127.0.0.1 | ||
http_access allow PURGE localhost | http_access allow PURGE localhost | ||
http_access deny PURGE | http_access deny PURGE | ||
</file> | </file> | ||
- | ==== testen ==== | + | ===== testen ===== |
Seite laden: | Seite laden: | ||
http_proxy='localhost:3128' wget -q -O - http://www.linuxhotel.de/index.html | wc -l | http_proxy='localhost:3128' wget -q -O - http://www.linuxhotel.de/index.html | wc -l | ||
Zeile 33: | Zeile 40: | ||
Seite löschen: | Seite löschen: | ||
squidclient -m PURGE http://www.linuxhotel.de/index.html | squidclient -m PURGE http://www.linuxhotel.de/index.html | ||
- | |||
- | ====== Squid für das lokale Netzwerk ====== | ||
- | ''/etc/squid/squid.conf'': | ||
- | <file> | ||
- | acl our_networks src 192.168.1.0/24 | ||
- | http_access allow our_networks | ||
- | </file> | ||
====== Benutzerauthentifizierung gegen PAM / /etc/shadow ====== | ====== Benutzerauthentifizierung gegen PAM / /etc/shadow ====== |