Currently there are the following working modes for ''virus_scan'' service:
Someone can use a combination of previous modes.
Edit the following line in your c-icap.conf file:
Include virus_scan.conf
Edit the virus_scan.conf file installed under your c-icap etc directory to adjust configuration to your needs. At the end of virus_scan.conf file uncomment one of the following lines, depending of the virus engine you want to use:
#Include clamd_mod.conf #Include clamav_mod.conf
Edit the clamd_mod.conf or the clamav_mod.conf file to edjust to your needs
The configuration parameters which are important to select the various scanning modes are:
Assume you want to configure virus_scan service according to the following rules:
scan only HTML files (which are of type TEXT), binary data, executables, archives (tar, zip, etc), and microsoft office files.
You should use the following configuration parameters:
virus_scan.ScanFileTypes TEXT DATA EXECUTABLE ARCHIVE MSOFFICE virus_scan.SendPercentData 1 virus_scan.StartSendPercentDataAfter 2M virus_scan.MaxObjectSize 15M
For more informations about virus_scan service configuration parameters visit the service configuration reference.
The virus scan engines loaded as external modules to c-icap. Currently the clamd_mod engine, which uses the clamd daemon to scan data, and the clamav_mod engine, which uses the libclamav are supported. Other engines (commercial, or open source can be easily supported).
To load clamd_mod engine, and configure it to use the /var/run/clamav/clamd.ctl socket use:
Module common clamd_mod.so clamd_mod.ClamdSocket /var/run/clamav/clamd.ctl
In the case more than one engines are loaded to your c-icap server you can use the '''virus_scan.DefaultEngine''' to select the engine to use:
virus_scan.DefaultEngine clamd
It is possible to use different configuration settings for different ICAP requests. This is can be done using virus_scan profiles feature. To enable and use profiles for virus_scan service follow instructions in virus_scan profiles page
WARNING! Using profiles in virus_scan service may open serious security hole in your http cache systems. Wrong configuration can allow viruses stored in your web cache. Do not enable/use profiles in virus_scan service unless you are sure what you are doing. Please refer to "Problems/Bugs" paragraph.
This is an URL blacklist/whitelist icap service, to control web access for users or group, based on URL lists stored on lookup-tables or in SquidGaurd databases.
Edit the following line in your c-icap.conf file:
Include srv_url_check.conf
Edit the srv_url_check.conf file installed under your c-icap etc directory to adjust configuration to your needs.
Important configuration parameters are:
The 'Using srv_url_check profiles' wiki page describes an example configuration.
Wiki: UrlCheckProfiles
Wiki: configcicap
Wiki: virus_scan_profiles