Specifications
If you have updated an earlier Squid version, it is recommended to edit the
new /etc/squid.conf and only apply the changes made in the previous
file. If you try to implement the old squid.conf again, you are running a
risk that the configuration will no longer function, because options are always
being modified and new changes added.
General Configuration Options
http_port 3128 This is the port where Squid listens for client requests. The
default port is 3128, but 8080 is also common. You have the option
here of specifying several port numbers separated by blank spaces.
cache_peer <hostname> <type> <proxy-port> <icp-port> Here, you can en-
ter a parent proxy as “parent”, for example, or use that of the provider.
As <hostname>, the name and IP address of the proxy to use are en-
tered and, as <type>, parent. For <proxy-port>, the port number
is to be entered which is also specified by the operator of the parent
for use in the browser, usually 8080. Set the <icp-port> to 7 or 0
if the ICP port of the parent is not known and its use is irrelevant to
the provider. In addition, default and no-query should be specified
after the port numbers to strictly prohibit the use of the ICP protocol.
Squid will then behave like a normal browser as far as the provider’s
proxy is concerned.
cache_mem 8 MB This entry defines the maximim amount of disk space
Squid can use for the caches. The default is 8 MB.
cache_dir ufs /var/squid/cache 100 16 256 The entry cache_dir defines
the directory where all the objects are stored on disk. The numbers at
the end indicate the maximum disk space in MB to use, as well as the
number of directories in the first and second level. The ufs parameter
should be left alone. The default is 100 MB occupied disk space in the
/var/squid/cache directory and to create 16 subdirectories inside it
which each contain 256 more subdirectories. When specifying the disk
space to use, always leave sufficient reserve disk space. Values from
a minimum of fifty to a maximum of eighty percent of the available
disk space make the most sense here. The last two numbers for the
directories should only be increased with caution, because too many
directories can also lead to performance problems. If you have several
disks that share the cache, enter several cache_dir lines.
cache_access_log /var/squid/logs/access.log path for log message
cache_log /var/squid/logs/cache.log path for log message
174 The Configuration File /etc/squid.conf










