
Next, create a dummy “access denied” page or a more or less complex CGI page to
redirect Squid if the client requests a blacklisted Web site. Using Apache is strongly
recommended.
Now, configure Squid to use squidGuard. Use the following entry in the
/etc/squid/
squid.conf
file:
redirect_program /usr/bin/squidGuard
Another option called
redirect_children
configures the number of “redirect”
(in this case squidGuard) processes running on the machine. squidGuard is fast enough
to handle many requests: on a 500 MHz Pentium with 5,900 domains and 7,880 URLs
(totaling 13,780), 100,000 requests can be processed within 10 seconds. Therefore, it
is not recommended to set more than four processes, because the allocation of these
processes would consume an excessive amount of memory
redirect_children 4
Last, have Squid load the new configuration by running
rcsquid reload
. Now, test
your settings with a browser.
41.8 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 program is quite easy to use.
Log in as
root
then enter
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. These are some options of the program:
-a
output all available reports
-w
output as HTML report
The Proxy Server Squid
797
Summary of Contents for LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Page 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Page 14: ......
Page 19: ...Part I Deployment...
Page 20: ......
Page 60: ......
Page 128: ......
Page 243: ...Part II Administration...
Page 244: ......
Page 274: ......
Page 312: ......
Page 348: ......
Page 380: ......
Page 381: ...Part III System...
Page 382: ......
Page 438: ......
Page 452: ......
Page 478: ......
Page 486: ......
Page 498: ......
Page 512: ......
Page 558: ......
Page 559: ...Part IV Services...
Page 560: ......
Page 652: ......
Page 670: ......
Page 742: ......
Page 754: ......
Page 796: ......
Page 817: ...Part V Security...
Page 818: ......
Page 858: ......
Page 886: ......
Page 910: ......
Page 911: ...Part VI Troubleshooting...
Page 912: ......
Page 924: ......