Wiki source code of Configuration de ClamAV (Linux)
Last modified by Aurelie Bertrand on 2026/01/12 16:46
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{ddtoc/}} | ||
| 2 | |||
| 3 | ---- | ||
| 4 | |||
| 5 | = Installation = | ||
| 6 | |||
| 7 | Installing antivirus software on a DigDash server to prevent users from uploading and downloading malicious files from DigDash is possible using software such as [[ClamAV>>https://www.clamav.net/]]. | ||
| 8 | |||
| 9 | To do this | ||
| 10 | |||
| 11 | * Install ClamAV on the server | ||
| 12 | * Run the following command to update the ClamAV virus database: {{code language="bash" cssClass="notranslate"}}freshclam{{/code}} | ||
| 13 | * Configure the [[On-Access Scanning>>https://www.clamav.net/documents/on-access-scanning]] feature to monitor sensitive folders (DigDash's AppData folder, for example) | ||
| 14 | * Run {{code language="bash" cssClass="notranslate"}}clamd{{/code}} and {{code language="bash" cssClass="notranslate"}}clamonacc{{/code}} | ||
| 15 | |||
| 16 | = Automatic update of the virus database = | ||
| 17 | |||
| 18 | The command {{code language="bash" cssClass="notranslate"}}freshclam{{/code}} command is used to manually update the ClamAV virus database. | ||
| 19 | |||
| 20 | There are two ways of ensuring that the database is updated regularly: | ||
| 21 | |||
| 22 | * **Use a service**: Services exist under certain Linux distributions which allow the database to be refreshed periodically in the background (see clamav-freshclam.service). | ||
| 23 | * **Run the command using a task scheduler**: A scheduler such as cron can be used to run the {{code language="bash" cssClass="notranslate"}}freshclam{{/code}} at regular intervals. | ||
| 24 | |||
| 25 | The database can be updated 4 times an hour ([[ClamAV Virus Database FAQ>>https://www.clamav.net/documents/clamav-virus-database-faq#how-many-times-per-hour-shall-i-run-freshclam]]). |