Benutzer-Werkzeuge

Webseiten-Werkzeuge


squid.conf

Dies ist eine alte Version des Dokuments!


Inhaltsverzeichnis

squid.conf

vor dem ersten Start oder bei CFG-Änderungen muss dieser Befehl aufgerufen werden:

> squid -z
> squid -z -f /etc/squid/squid.conf

minimal

#
### Erlaubniss-Definitionen
acl MANAGER proto cache_object
acl LOKAL src 127.0.0.1/255.255.255.255
acl ALL src 0.0.0.0/0.0.0.0
acl ERLAUBT src 192.168.1.0/255.255.255.0
#
### Erlaubniss-Regeln
# alle dürfen alles
http_access allow ALL
#
# nur einige dürfen alles
http_access allow ERLAUBT
#
# der Rest darf nichts
http_access deny ALL
#
icp_access allow ALL
#
### unser Proxy-Port
http_port 3128
#
### weiteres
access_log /var/log/squid/access.log squid
hosts_file /etc/hosts
coredump_dir /tmp

Standard

#
### Erlaubniss-Definitionen
acl MANAGER proto cache_object
acl LOKAL src 127.0.0.1/255.255.255.255
acl ALL src 0.0.0.0/0.0.0.0
acl ERLAUBT src 192.168.1.0/255.255.255.0
#
### Erlaubniss-Regeln
# alle dürfen alles
http_access allow ALL
#
# nur einige dürfen alles
http_access allow ERLAUBT
#
# der Rest darf nichts
http_access deny ALL
#
icp_access allow ALL
#
### unser Proxy-Port
http_port 3128
#
### weiteres
cache_mem 2048 MB
#
# Cache-Verzeichnis soll nur max. 10 GB groß werden
# cache_dir ufs Directory-Name   Mbytes L1 L2  [options]
cache_dir ufs /var/spool/squid   10240  16 256
#cache_dir null /var/spool/squid
#
access_log /var/log/squid/access.log squid
hosts_file /etc/hosts
#
memory_pools_limit 1024 MB
coredump_dir /tmp
/home/http/wiki/data/attic/squid.conf.1656577860.txt · Zuletzt geändert: von manfred