Fedora 14
Sponsored Link

Install Anti-Virus - Clamav
2010/11/04
  Install Clam AntiVirus to protect from virus.

[1] Install Clamav
[root@mail ~]#
yum -y install clamav clamav-update


[root@mail ~]#
vi /etc/freshclam.conf


# line 8: make it comment

#
Example

[root@mail ~]#
freshclam
# update pattern files

ClamAV update process started at Thu Nov 4 13:57:19 2010
Downloading main.cvd [100%]
main.cvd updated (version: 52, sigs: 704727, f-level: 44, builder: sven)
Downloading daily.cvd [100%]
daily.cvd updated (version: 12202, sigs: 144664, f-level: 53, builder: guitar)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 89, sigs: 10, f-level: 53, builder: edwin)
Database updated (849401 signatures) from database.clamav.net (IP: 203.212.42.128)
[2] Try to scan
[root@mail ~]#
clamscan --infected --remove --recursive /home


----------- SCAN SUMMARY -----------
Known viruses: 848164
Engine version: 0.96.3
Scanned directories: 73
Scanned files: 62
Infected files: 0
Data scanned: 0.84 MB
Data read: 0.74 MB (ratio 1.13:1)
Time: 3.019 sec (0 m 3 s)

# try to download trial virus

[root@mail ~]#
wget http://www.eicar.org/download/eicar.com


[root@mail ~]#
clamscan --infected --remove --recursive .

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.
# just detected


----------- SCAN SUMMARY -----------
Known viruses: 848164
Engine version: 0.96.3
Scanned directories: 1
Scanned files: 10
Infected files: 1
Data scanned: 0.02 MB
Data read: 0.01 MB (ratio 2.00:1)
Time: 3.331 sec (0 m 3 s)
Matched Content