her er den vesion af Squid script som jeg bruger
# WELCOME TO SQUID 2
# ------------------
#
# This is the default Squid configuration file. You may wish
# to look at the Squid home page (
http://www.squid-cache.org/)
# for the FAQ and other documentation.
#
# The default Squid config file shows what the defaults for
# various options happen to be. If you don't need to change the
# default, you shouldn't uncomment the line. Doing so may cause
# run-time problems. In some cases "none" refers to no default
# setting at all, while in other cases it refers to a valid
# option - the comments for that keyword indicate if this is the
# case.
#
# Uddrag af /etc/squid/squid.conf med korte forklaringer.
# Hvilken Port Proxy Serveren skal arbejde på.
http_port 3128
# Her angives hvor stor ram cache der skal anvendes, man angiver normalt 25-30 % af den
# disk mænge man vil angive dvs. ønskes en disk cache på 60 mb. angiver man
# ca. 20-25 MB. som ram cache
cache_mem 20 MB
# cache bibloteket. Angiver også hvor mange MB cache' må fylde (150 MB)
# hvor mage bibloteker må være i squid biblotekket (16) og hvor
# mange under mapper (256) der må være under de første (16) mapper.
# syntax'en ufs angiver at den skal bruge netop dette filsystem i
# i cache bibloteket.
cache_dir ufs /var/spool/squid 150 16 256
# Hvor store filer proxy'en gemmer.
maximum_object_size 5500 KB
# Access Control list.
# Her er lavet en acl liste, med hvilke porte der er tilladt at bruge.
# Listen er lavet sådan, at alle som kommer forbi firewallen kan bruge
# proxy'en. Men der er lavet nogle få begrænsninger, så som at der
# kan kun "purges" fra den lokale maskine. Den kan heller ikke bruges til
# secure HTTP "SSL" som er for brugerens egen sikkerhed.
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 119 # news
acl Safe_ports port 443 563 # https, snews
acl purge method PURGE
acl CONNECT method CONNECT
# Det er kun localhost som kan bruge cachemanager.
http_access allow manager localhost
http_access deny manager
# Det er kun localhost som kan lave en purge.
http_access allow purge localhost
# Nægter alt SSL
http_access allow CONNECT !SSL_ports
# Tillader alt HTTP trafik.
http_access allow all
# Tillader ICP queries for alle.
icp_access allow all