Home : Linux resources : "Howto" : Squid
In order to prevent randoms from using my machine as an anonymizer, this service is only available on the local network. This is because I have configured the ACLs to prevent nonlocal users from accessing nonlocal servers.
[This is somewhat out of date, as I haven't been running the
other Web server since fall 2002, so the Web server is back on
port 80. -- rgr, 1-Sep-03.]
[This is somewhat out of date, as I haven't been running the other Web server since fall 2002, so the Web server is back on port 80. -- rgr, 1-Sep-03.]
http://www.squid-cache.org/Doc/ has links to the FAQ, as well as to other works.
And the default configuration file, installed by the SuSE 8.1 RPM into /etc/squid/squid.conf.default, is full of comments that describe each of the configuration options in some detail. (The configuration guide at squid.visolve.com is mostly a browseable version of these comments, with some added content.)
squid -k reconfigureThis is much faster than using the SysV script to stop and restart it, because Squid won't have to rebuild its in-memory cache database. It also causes the redirector to be restarted, which is necessary after modifying it.
[The SysV script seems to have a bug; stopping doesn't always work in any case. But maybe that's just because I was too impatient for Squid to exit. -- rgr, 20-Jul-02.]
But before you reload the configuration file, you might want to do
squid -k parsein order to ensure that you haven't introduced errors.
May 29 21:16:48 rgrjr squid: WARNING: Disk space over limit: -2935640 KB > 256000 KBIt started immediately after reboot, and was repeated every few minutes. The last five lines of the normal Squid startup messages showed the same suspicious value:
May 29 21:16:47 rgrjr squid: Beginning Validation Procedure May 29 21:16:47 rgrjr squid: Completed Validation Procedure May 29 21:16:47 rgrjr squid: Validated 5638 Entries May 29 21:16:47 rgrjr squid: store_swap_size = -2935640k May 29 21:16:47 rgrjr squid: storeLateRelease: released 0 objectsThe normal value is 243156k on my system, but negative sizes can't be a good thing. Googling for store_swap_size found the following article: "Squid warning in logs (Disk space over limit)", which in turn lead me to try deleting the swap.state and restart Squid. This appears to have worked; swap.state seems to have been rebuilt OK, and the warnings have stopped.