I. Introduction
Clam AntiVirus is a free anti-virus software based on UNIX/LINUX operating systems. It supports online updating of virus libraries.
Features 1.1
GNU open-source software
Quick Scan
It can detect 35000 types of viruses, including Microsoft Office documents and macro viruses.
Ability to detect compressed files (Zip RAR Tar Gzip Bzip2 ......)
Powerful email Scanning
High scalability
1.2 virus submission
If you find a virus that ClamVA cannot kill, you can enter relevant information on the following URL:
Http://www.clamav.net/sendvirus.html
Ii. Software Installation
Operating System Environment: RedHat linux es5
Generally, two files need to be installed. gmp is mainly used to update the virus database.
$ Rpm-vih gmp-4.1.4-3.el5.i386.rpm clamav-0.91.2-31.el5.i386.rpm
3. Configure clamav. conf and freshclam. conf
After installation, the configuration file is in the/etc/directory, clamav. conf is the main configuration file of anti-virus software, freshclam. conf is the configuration file for updating the virus database. Below are the configuration instances of the two files, which can be modified according to the environment:
Note: You need to comment out the "Example" at the beginning of the clamd. conf and freshclam. conf files"
$ Vi/etc/clamav. conf
LogFile/var/log/clamd
LogTime
LogSyslog
PidFile/var/lib/clamav/clamd. pid
DatabaseDirectory/var/lib/clamav
TCPSocket 3310
TCPAddr 127.0.0.1
MaxDirectoryRecursion 15
User vscan
Foreground
ScanOLE2
ScanMail
ScanArchive
ArchiveMaxFileSize 10 M
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000
ArchiveMaxCompressionRatio 200
$ Vi/etc/freshclam. conf
UpdateLogFile/var/log/freshclam. log
LogSyslog
DatabaseMirror database.clamav.net
MaxAttempts 3
Checks 12
After the configuration is complete, start clam:
$/Etc/init. d/clamd start
Start update:
$ Freshclam
ERROR: Cant't open/var/log/freshclam. log in append mode.
ERROR: Problem with internal logger.
If the above error occurs, create the file and set the permission:
$ Touch/var/log/freshclam. log
$ Chmod 777/var/log/freshclam. log
Run the command freshclam again.
$ Freshclam
ClamAV update process started at Thu Nov 10 15:04:26 2005
Reading CVD header (main. cvd): OK
Downloading main. cvd [*]
Main. cvd updated (version: 34, sigs: 39625, f-level: 5, builder: tkojm)
......