Safeguard your community from malware and malicious threats, ensuring its safety and security.
The Virus Scanner module currently supports two antivirus providers: ClamAV and Kaspersky Scan Engine. See below for installation instructions.
clamd --daemon
. Please refer to the official documentation here.Install ClamAV using Docker:
docker run -d --name clamav
-v /your/local/folder:/usr/local/share/clamav
-p 3310:3310 clamav/clamav
For the Path to ClamAV scanner service use tcp://127.0.0.1:3310
path in module configuration.
Kaspersky Scan Engine can be installed in two modes: HTTP (API v3.0) and ICAP Mode. Please refer to the official documentation here.
For HTTP mode:
docker load -i kaspersky_scanengine_httpd.tar
For ICAP mode:
docker load -i kaspersky_scanengine_icapd.tar
docker images
The displayed list must contain the following images:
For HTTP mode:
kaspersky/scanengine_httpd:%KSE_VERSION%
For ICAP mode:
kaspersky/scanengine_icapd:%KSE_VERSION%
In the above list, %KSE_VERSION%
refers to the specific version of Kaspersky Scan Engine used in the Docker images. For example 2.0.0.1157.
%CONFIGURATION_FILES_DIRECTORY%/klScanEngineUI.xml
:Uncomment the following lines:
<!-- For Docker integration -->
<!--
<SSLCertificatePath>../httpsrv/kl_scanengine_cert.pem</SSLCertificatePath>
<SSLPrivateKeyPath>../httpsrv/kl_scanengine_private.pem</SSLPrivateKeyPath>
-->
<Mode>httpd</Mode>
<Mode>icap</Mode>
For HTTP mode:
docker run -d -p 8080:8443 -p 8085:9998
-v %CONFIGURATION_FILES_DIRECTORY%:/tmp/scanengine/mounted/configs
-v %LICENSE_FILE_DIRECTORY%:/tmp/scanengine/mounted/lic
-v %KEY_FILE_DIRECTORY%:/tmp/scanengine/mounted/key
-v %LOGS_DIRECTORY%:/tmp/scanengine/mounted/logs
-v %SYSLOGS_DIRECTORY%:/var/log/kaspersky
--name KSE_HTTPD kaspersky/scanengine_httpd:%KSE_VERSION%
For ICAP mode:
docker run -d -p 8080:8443 -p 8086:1344
-v %CONFIGURATION_FILES_DIRECTORY%:/tmp/scanengine/mounted/configs
-v %LICENSE_FILE_DIRECTORY%:/tmp/scanengine/mounted/lic
-v %KEY_FILE_DIRECTORY%:/tmp/scanengine/mounted/key
-v %LOGS_DIRECTORY%:/tmp/scanengine/mounted/logs
-v %SYSLOGS_DIRECTORY%:/var/log/kaspersky
--name KSE_ICAPD kaspersky/scanengine_icapd:%KSE_VERSION%
In the command above:
%CONFIGURATION_FILES_DIRECTORY%
is the host directory that contains the configuration files.%LICENSE_FILE_DIRECTORY%
is the host directory that contains the key file or activation code.%KEY_FILE_DIRECTORY%
is the host directory that contains the kl_scanengine_db.key
file. Remove this if you did not enable Kaspersky Scan Engine GUI.%LOGS_DIRECTORY%
is the host directory for log files. Remove this if you did not enable logging to a mounted directory.%SYSLOGS_DIRECTORY%
is the host directory for syslog files. Remove this if you did not enable Syslog logging to a mounted directory.%KSE_VERSION%
is the version of Kaspersky Scan Engine used in Docker images. For example, 2.0.0.1157.Ensure all users have write access to %LOGS_DIRECTORY%
and %SYSLOGS_DIRECTORY%
. This is required because the Kaspersky Scan Engine does not have root privileges within the container.
http://localhost:8085
localhost
8086