Wiki source code of Configuration de ClamAV (Linux)
Last modified by Aurelie Bertrand on 2026/01/12 16:46
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{ddtoc/}} |
| 2 | |||
| 3 | ---- | ||
| 4 | |||
| 5 | = Installation = | ||
| |
2.1 | 6 | |
| |
3.1 | 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/]]. |
| |
1.1 | 8 | |
| |
3.1 | 9 | To do this |
| |
2.1 | 10 | |
| |
3.1 | 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}} | ||
| |
1.1 | 15 | |
| |
3.1 | 16 | = Automatic update of the virus database = |
| |
2.1 | 17 | |
| |
3.1 | 18 | The command {{code language="bash" cssClass="notranslate"}}freshclam{{/code}} command is used to manually update the ClamAV virus database. |
| |
1.1 | 19 | |
| |
3.1 | 20 | There are two ways of ensuring that the database is updated regularly: |
| |
1.1 | 21 | |
| |
3.1 | 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. | ||
| |
1.1 | 24 | |
| |
3.1 | 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]]). |