ICAP mode configuration file

The ICAP mode configuration file, kavicapd.xml, consists of several sections that specify settings for the kavicapd service and KAV SDK.

Preparing the ICAP mode configuration file

The Kaspersky Scan Engine distribution kit contains a %distr_kit%/etc/kavicapd.xml configuration file.

After installing Kaspersky Scan Engine, you can copy kavicapd.xml to your preferred location:

Parameters of the ICAP mode configuration file

Following are the sections of the ICAP mode configuration file, kavicapd.xml. An example configuration file is at the end.

Some sections of the configuration file are optional. However, if a section exists in the configuration file, all of its child elements must be present. Elements must not be empty, unless stated otherwise.

SDKSettings

The following parameters specify KAV SDK settings.

KSNSettings

The following parameters specify Kaspersky Security Network (KSN) settings.

This is an optional section. If this section is absent from the configuration file, KSN is not used.

Note that by using KSN you agree to transfer data described in the About data provision.txt file to Kaspersky Lab. For more information about the procedure of data provisioning, see section "About data provisioning".

ProxySettings

The following parameters specify proxy server settings for Kaspersky Scan Engine. Kaspersky Scan Engine uses these settings when it connects to the Internet.

This is an optional section. If this section is absent from the configuration file, Kaspersky Scan Engine does not use a proxy server when connecting to the Internet.

UpdateSettings

The following parameters specify update settings for Kaspersky Scan Engine.

This is an optional section. If this section is absent from the configuration file, updating is disabled.

ICAPSettings

The following parameters specify Kaspersky Scan Engine settings.

Structure of the configuration file

Following is an example ICAP mode configuration file.

<Configuration>

 

<SDKSettings>

<ScannersCount>16</ScannersCount>

<ThreadsCount>16</ThreadsCount>

<QueueLen>1024</QueueLen>

<ScanTimeout>10000</ScanTimeout> <!-- 0 = unlimited -->

<LicensePath>/opt/kaspersky/ScanEngine/bin</LicensePath>

<BasesPath>/opt/kaspersky/ScanEngine/bin/bases</BasesPath>

<TempPath>/tmp/kavicapd</TempPath>

<LicensingMode>1</LicensingMode><!-- 1 = simplified licensing mode; 2 - online licensing mode -->

<DiskUsageLimit>102400</DiskUsageLimit> <!-- 0 = turn zip-bomb protection off -->

<ScanningMode>KAV_O_M_PACKED | KAV_O_M_ARCHIVED | KAV_O_M_MAILPLAIN | KAV_O_M_MAILBASES | KAV_O_M_HEURISTIC_LEVEL_SHALLOW</ScanningMode>

</SDKSettings>

 

<KSNSettings>

<UseKSN>0</UseKSN>

<ObjectCheckOnDemandTimeoutMs>10000</ObjectCheckOnDemandTimeoutMs>

<CacheSizeKb>30720</CacheSizeKb>

</KSNSettings>

 

<UpdateSettings>

<DisableBackup>0</DisableBackup>

<UpdatePeriodMinutes>30</UpdatePeriodMinutes> <!-- 0 = turn update off -->

<UseOnlyCustomSources>0</UseOnlyCustomSources>

<UpdateSources>

<!-- <Source></Source> -->

</UpdateSources>

</UpdateSettings>

 

<ProxySettings>

<UseProxy>0</UseProxy>

<Host>myproxy.mycompany.com</Host>

<Port>3128</Port>

<User>proxyuser</User>

<Pass>proxypass</Pass>

</ProxySettings>

 

<ICAPSettings>

<Port>1344</Port>

<MaxIcapSessionsCount>100</MaxIcapSessionsCount>

<Exclusions>

<ContentSize>2048</ContentSize>

<ContentType>video/mp4</ContentType>

<RequestURL>example.com</RequestURL>

</Exclusions>

<ScanMaxFileSize>0</ScanMaxFileSize> <!-- 0 = unlimited -->

<RAMUsageLimit>0</RAMUsageLimit> <!-- 0 = unlimited -->

<Allow204>0</Allow204>

<ScanInReqMode>All</ScanInReqMode>

<ScanInRespMode>All</ScanInRespMode>

<RulesFilePath>/opt/kaspersky/ScanEngine/icap_data/kavicapd_gui_rules.conf</RulesFilePath>

<CmdPath>/opt/kaspersky/ScanEngine/icap_data/scripts</CmdPath>

<ResponsesPath>/opt/kaspersky/ScanEngine/icap_data/templates</ResponsesPath>

<HTTPClientIpICAPHeader>X-Client-IP</HTTPClientIpICAPHeader>

<HTTPUserNameICAPHeader>X-Client-Username</HTTPUserNameICAPHeader>

<TransferBeforeScanEnding Delay="10" ChunkSize="4">0</TransferBeforeScanEnding>

</ICAPSettings>

 

</Configuration>

Page top