Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 606 — #632
i
i
i
i
i
i
i
i
General Configuration Options (Selection)
http_port 3128 This is the port on which Squid listens for client requests.
The default port is 3128, but 8080 is also common. If desired, specify
several port numbers separated by blank spaces.
cache_peer <hostname> <type> <proxy-port> <icp-port>
Here, for example, enter a parent proxy to use the proxy of your ISP.
As <hostname>, enter the name and IP address of the proxy to use
and, as <type>, parent. For <proxy-port>, enter the port number that is
also set 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 prohibit
the use of the ICP protocol. Squid then behaves like a normal browser
as far as the provider’s proxy is concerned.
cache_mem 8 MB This entry defines the amount of memory Squid can
use for the caches. The default is 8 MB.
cache_dir ufs /var/cache/squid/ 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 and 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/cache/squid directory
and creation of sixteen subdirectories inside it, each containing 256
more subdirectories. When specifying the disk space to use, 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/log/squid/access.log
Path for log messages.
cache_log /var/log/squid/cache.log
Path for log messages.
606
25.3. Proxy Server: Squid










