can be used with ClamAV antivirus software to scan attached files in a knowledgebase. This topic describes how to set up antivirus detection in
, using the ClamAV open source antivirus toolkit. When implemented, the antivirus protection only scans attached files and has no effect on the rest of the operating system. For more information, see
www.clamav.net.
There are two possible ways to implement ClamAV with
:
- Using
CommandLineVirusDetector
command line utility. - Using
SocketVirusDetector
to go through a socket connection.
If you have any other antivirus software installed, add its installation directory to the ClamAV exception list.
Installing ClamAV
- Download ClamAV during initial installation, or from the following location: https://www.clamav.net/downloads
- Install it to a directory in your instance of , for instance at
D:/Agiloft/ClamAV
. - Create a new directory to install updates, for instance at
D:/Agiloft/ClamAV/database
. - Copy the example config files from the
conf_examples
directory to install the root directory. - Make the following changes to the
clamd.conf.example
file:- Rename the file from
clamd.conf.example
to clamd.conf
. - Comment out or delete the Example instruction.
- The PidFile should be at
D:/Agiloft/ClamAV/clamd.pid
. - The LogFile should be at
D:/Agiloft/ClamAV/clamd.log
. - The database directory should be at
D:/Agiloft/ClamAV/database
. - The TCPSocket should be 3310.
- The TCPAddr should be 127.0.0.1.
- In the f
reshclam.conf.sample
file, make the following changes:- Rename the file from
freshclam.conf.sample
to freshclam.conf
. - Comment out or delete the Example instruction.
- Run
freshclam.exe
and update the virus database.
Setting up Virus Detection with CommandLineVirusDetector
CommandLineVirusDetector
has two parameters: command line
and path to temp directory
where files uploaded to the
knowledgebase are stored. To add additional parameters, change the file located at
D:\Agiloft\jboss\bin\ewjbossrun.bat
- Run JBoss AS with the following parameters:
- DAntiVirusUtils.virus-detector-class=com.supportwizard.utils.av.clam.CommandLineVirusDetector
- DCommandLineVirusDetector.command-line="D:/Agiloft/ClamAV/clamscan.exe"
- DCommandLineVirusDetector.temp-dir="D:/Agiloft/tmp/av"
Setting up Virus Detection with SocketVirusDetector
SocketVirusDetector has three parameters: host
, port
and socket timeout. To add additional parameters, change the file located at D:\Agiloft\jboss\bin\ewjbossrun.bat
- Run ClamAV as a service, typically
D:\Agiloft\ClamAV\clamd.exe
. - Run JBoss AS with the following parameters:
- -DAntiVirusUtils.virus-detector-class=com.supportwizard.utils.av.clam.SocketVirusDetector
- -DSocketVirusDetector.host=127.0.0.1
- -DSocketVirusDetector.port=3310
- -DSocketVirusDetector.timeout=500
Hide If |
---|
|
Related articles Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | PROD |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label = "security" and type = "page" and space = currentSpace() |
---|
labels | rest api integration |
---|
|
|