Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 604 — #630
i
i
i
i
i
i
i
i
To start Squid, enter rcsquid start at the command line as root. For
the initial start-up, the directory structure must first be defined in /var/
squid/cache. This is done by the start script /etc/init.d/squid au-
tomatically and can take a few seconds or even minutes. If done appears to
the right in green, Squid has been successfully loaded. To test the function-
ality of Squid on the local system, enter localhost as the proxy and 3128
as the port in the browser.
To allow all users to access Squid and, through it, the Internet, change the
entry in the configuration file /etc/squid/squid.conf from http_-
access deny all to http_access allow all. However, in doing so,
consider that Squid is made completely accessible to anyone by this action.
Therefore, define ACLs that control access to the proxy. More information
about this is available in Section 25.3.5 on page 608.
After modifying the configuration file /etc/squid/squid.conf, Squid
must reload the configuration file. Do this with rcsquid reload. Alterna-
tively, completely restart Squid with rcsquid restart.
Another important command is rcsquid status, which allows you to
determine whether the proxy is running. the command rcsquid stop
causes Squid to shut down. This can take a while, because Squid waits up
to half a minute (shutdown_lifetime option in /etc/squid/squid.
conf) before dropping the connections to the clients and writing its data to
the disk.
Caution
Terminating Squid
Terminating Squid with kill or killall can destroy the cache.
To be able to restart Squid, the cache must be deleted.
Caution
If Squid dies after a short period of time even though it was started suc-
cessfully, check whether there is a faulty name server entry or whether the
/etc/resolv.conf file is missing. Squid logs the cause of a start-up fail-
ure in the file /var/squid/logs/cache.log. If Squid should be loaded
automatically when the system boots, use the YaST runlevel editor to acti-
vate Squid for the desired runlevels.
An uninstall of Squid does not remove the cache or the log files. To remove
these, delete the /var/cache/squid directory manually.
604 25.3. Proxy Server: Squid










