« Fedora/Clamav » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
|||
| (4 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
yum install clamav clamav-server- | == Installation == | ||
yum install clamav clamav-scanner clamav-update clamav-server clamav clamav-server-system clamav-scanner-systemd | |||
== Configuration == | |||
Fichier <path>/etc/freshclam.conf</path> | |||
<pre> | |||
LogSyslog yes | |||
DatabaseMirror database.clamav.net | |||
</pre> | |||
Fichier <path>/etc/clamd.d/scan.conf</path> | |||
<pre> | |||
LogSyslog yes | |||
LocalSocket /var/run/clamd.scan/clamd.sock | |||
TCPSocket 3310 | |||
User clamscan | |||
AllowSupplementaryGroups yes | |||
</pre> | |||
Fichier <path>/etc/sysconfig/freshclam</path> | |||
<pre> | |||
# FRESHCLAM_MOD= | |||
# FRESHCLAM_DELAY= | |||
</pre> | |||
Mise à jour manuelle des définitions | |||
<pre> | |||
freshclam | |||
</pre> | |||
Démarrer et activer le service | |||
<pre> | |||
systemctl start clamd@scan.service | |||
systemctl enable clamd@scan.service | |||
</pre> | |||
== Test == | |||
On télécharge un virus inoffensif: wget http://www.eicar.org/download/eicar_com.zip | |||
<pre> | |||
clamscan --infected --recursive | |||
/root/eicar_com.zip: Eicar-Test-Signature FOUND | |||
----------- SCAN SUMMARY ----------- | |||
Known viruses: 3303166 | |||
Engine version: 0.98.1 | |||
Scanned directories: 111 | |||
Scanned files: 223 | |||
Infected files: 1 | |||
Data scanned: 54.51 MB | |||
Data read: 59.24 MB (ratio 0.92:1) | |||
Time: 19.310 sec (0 m 19 s) | |||
</pre> | |||
[[Catégorie:Fedora|Clamav]] | [[Catégorie:Fedora|Clamav]] | ||
[[Catégorie: | [[Catégorie:Application|Clamav]] | ||
[[Catégorie:Installation|Clamav]] | [[Catégorie:Installation|Clamav]] | ||
Dernière version du 25 septembre 2014 à 07:46
Installation
yum install clamav clamav-scanner clamav-update clamav-server clamav clamav-server-system clamav-scanner-systemd
Configuration
Fichier <path>/etc/freshclam.conf</path>
LogSyslog yes DatabaseMirror database.clamav.net
Fichier <path>/etc/clamd.d/scan.conf</path>
LogSyslog yes LocalSocket /var/run/clamd.scan/clamd.sock TCPSocket 3310 User clamscan AllowSupplementaryGroups yes
Fichier <path>/etc/sysconfig/freshclam</path>
# FRESHCLAM_MOD= # FRESHCLAM_DELAY=
Mise à jour manuelle des définitions
freshclam
Démarrer et activer le service
systemctl start clamd@scan.service systemctl enable clamd@scan.service
Test
On télécharge un virus inoffensif: wget http://www.eicar.org/download/eicar_com.zip
clamscan --infected --recursive /root/eicar_com.zip: Eicar-Test-Signature FOUND ----------- SCAN SUMMARY ----------- Known viruses: 3303166 Engine version: 0.98.1 Scanned directories: 111 Scanned files: 223 Infected files: 1 Data scanned: 54.51 MB Data read: 59.24 MB (ratio 0.92:1) Time: 19.310 sec (0 m 19 s)