Linux - Installare Clamav su Server Linux Centos

1) yum --enablerepo=rpmforge -y install clamav # installare da DAG


Per aggiungere un repository andare al seguente post del bloc:


http://alessandromazzanti.blogspot.com/2011/05/centos-aggiungere-repository.html


2) vim /etc/freshclam.conf
    # line 122: commentare la riga 96
    #NotifyClamd /etc/clamd.conf
#84 scommentare

ScriptedUpdates yes


3) freshclam # aggiorniamo l’antivirus

ClamAV update process started at Mon Apr 23 00:52:58 2007
main.cvd is up to date (version: 43, sigs: 104500, f-level: 14, builder: sven)
Downloading daily-3147.cdiff [100%]
Downloading daily-3147.cdiff [100%]
daily.cvd updated (version: 3147, sigs: 6671, f-level: 15, builder: sven)
Database updated (111171 signatures) from db.jp.clamav.net (IP: 61.205.61.201)


#Procediamo ad effettuare una scansione di prova
4) clamscan --infected --remove --recursive /home

----------- SCAN SUMMARY -----------
Known viruses: 111194
Engine version: 0.90.2
Scanned directories: 23
Scanned files: 33
Infected files: 0
Data scanned: 0.16 MB
Time: 2.721 sec (0 m 2 s)

# Scarichiamo un virus di prova
5) wget http://www.eicar.org/download/eicar.com

Resolving www.eicar.org... 88.198.38.136
Connecting to www.eicar.org|88.198.38.136|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68 [application/x-msdos-program]
Saving to: `eicar.com'

100%[=======================================>] 68    --.-K/s in 0s

19:26:23 (5.90 MB/s) - `eicar.com' saved [68/68]
#Eseguiamo la scansione
6) clamscan --infected --remove --recursive

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


----------- SCAN SUMMARY -----------
Known viruses: 111194
Engine version: 0.90.2
Scanned directories: 5