Companyname |
---|
Companyname |
---|
There are two possible ways to implement ClamAV with
Companyname |
---|
- 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.
- When using
SocketVirusDetector,
ClamAV must be run as a service. ClamAV signatures are updated daily at 8pm server time.
Note | |
---|---|
If you're using a version of
D:\Agiloft\jboss\bin\ewjbossrun.bat instead of D:\Agiloft\wildfly\bin\standalone.conf.bat in the Setting Up Virus Detection sections. |
Installing ClamAV
First, install ClamAV.
- Download ClamAV during initial
installation, or from the following location: https://www.clamav.net/downloadsCompanyname - Install it to a directory in your instance of
, for instance atCompanyname 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
toclamd.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.
- Rename the file from
- In the f
reshclam.conf.sample
file, make the following changes:- Rename the file from
freshclam.conf.sample
tofreshclam.conf
. - Comment out or delete the Example instruction.
- Rename the file from
- Run
freshclam.exe
and update the virus database.
...
CommandLineVirusDetector
has two parameters: command line
and path to temp directory
where files uploaded to the
Companyname |
---|
D:\Agiloft\jbosswildfly\bin\ewjbossrunstandalone.conf.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"
...
SocketVirusDetector has three parameters: host
, port
and socket timeout
. To add additional parameters, change the file located at D:\Agiloft\jbosswildfly\bin\ewjbossrunstandalone.conf.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
|