How to Install and configure Clamav Antivirus
Install Clamav to protect from Virus.
1. Install Clamav
[root@mail ~]#yum --enablerepo=rpmforge -y install clamav # install from RPMforge
[root@mail ~]#vi /etc/freshclam.conf # line 122: make it comment
NotifyClamd /etc/clamd.conf
[root@mail ~]#freshclam # update pattern files
ClamAV update process started at Sun Jul 10 22:10:08 2011
main.cvd is up to date (version: 53, sigs: 846214, f-level: 53, builder: sven)
daily.cvd is up to date (version: 13304, sigs: 144473, f-level: 60, builder: guitar)
bytecode.cvd is up to date (version: 143, sigs: 40, f-level: 60, builder: edwin)
2. Try to Scan.
# try to scan
[root@mail ~]# clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 989350
Engine version: 0.97.1
Scanned directories: 3
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 2.060 sec (0 m 2 s)
Known viruses: 989350
Engine version: 0.97.1
Scanned directories: 3
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 2.060 sec (0 m 2 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.
./eicar.com: Removed.
# just detected
----------- SCAN SUMMARY -----------
nown viruses: 989350
Engine version: 0.97.1
Scanned directories: 1
Scanned files: 13
Infected files: 1
Data scanned: 0.02 MB
Data read: 0.01 MB (ratio 2.00:1)
Time: 2.079 sec (0 m 2 s)
Hope you Enjoy the tutorial.
Very informative article post.Really looking forward to read more. Really Great.
ReplyDeleteexcellent submit, very informative. I wonder why the other specialists of this sector do not notice this. You must proceed your writing. I’m sure, you have a great readers’ base already!
ReplyDeleteThank you for your Comments. We are expecting your co-operation in future as well. - iMagia Support Team
ReplyDelete