Specifications
B
Proxy Server: Squid
Now, tell Squid to use SquidGuard. Use the following entries in the /etc/
squid.conf file:
redirect_program /usr/bin/squidGuard
There is another option called redirect_children configuring how many dif-
ferent “redirect” (in this case SquidGuard) processes are running on the ma-
chine. SquidGuard is fast enough to cope with lots of requests (SquidGuard
is quite fast: 100,000 requests within 10 seconds on a 500MHz Pentium with
5900 domains, 7880 URLs, 13780 in sum). Therefore, it is not recommended
to set more than 5 processes, because this may lead to an unnecesary increase
of memory for the allocation of these processes.
redirect_children 5
Last of all, send a HUP signal to Squid to have it read the new configuration:
rcsquid reload
Test your settings with a browser.
Cache Report Generation with Calamaris
Calamaris is a Perl script used to generate reports of cache activity in ASCII
or HTML format. It works with native Squid access log files. The Calamaris
Home Page is located at http://Calamaris.Cord.de/
The use of the program is quite easy. Log in as root, then:
cat access.log.files | calamaris [options] > reportfile
It is important when piping more than one log file that the log files are
chronologically ordered, with older files first.
The various options:
-a normally used for the output of available reports
-w an HTML report
-l a message or logo in the header of the report
Further information on the various options can be found in the manual page
man calamaris.
A typical example:
cat access.log.2 access.log.1 access.log | calamaris -a -w >
/usr/local/httpd/htdocs/Squid/squidreport.html
We place the report in the directory of the web server. Again, Apache is
required to view the reports.
181SuSE Linux – Firewall on CD2










