При обновлении ClamAV с помощью freshclam, в логах возникает ошибка "FreshClam previously received error code 429 or 403 from the ClamAV Content Delivery Network (CDN)"
Полный тест ошибки
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | freshclam daemon 0.103.7 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64) ClamAV update process started at Tue Oct 4 07:49:52 2022 daily database available for download (remote version: 26679) WARNING: Can't download daily.cvd from https://database.clamav.net/daily.cvd WARNING: FreshClam received error code 403 from the ClamAV Content Delivery Network (CDN). This could mean several things: 1. You are running an out-of-date version of ClamAV / FreshClam. Ensure you are the most updated version by visiting https://www.clamav.net/downloads 2. Your network is explicitly denied by the FreshClam CDN. In order to rectify this please check that you are: a. Running an up-to-date version of FreshClam b. Running FreshClam no more than once an hour c. If you have checked (a) and (b), please open a ticket at https://github.com/Cisco-Talos/clamav/issues and we will investigate why your network is blocked. WARNING: You are on cool-down until after: 2022-10-05 07:49:53 ERROR: Database update process failed: Forbidden; Blocked by CDN ERROR: Update failed. WARNING: FreshClam was forbidden from downloading a database. WARNING: This is fatal. Retrying later won't help. Exiting now. |
Решение проблемы с обновлением ClamAV
Останавливаем сервис clamav-freshclam
1 | service clamav-freshclam stop |
открываем файл конфигурации
1 | nano /etc/clamav/freshclam.conf |
комментируем все DatabaseMirrors и добавляем строку
1 | PrivateMirror pivotal-clamav-mirror.s3.amazonaws.com |
сохраняем изменения
Обязатель удаляем файл freshclam.dat
1 | rm -f /var/lib/clamav/freshclam.dat |
и запускаем сервис
1 | service clamav-freshclam start |
результат обновляем можем посмотреть в файле /var/log/clamav/freshclam.log
1 | tail -f /var/log/clamav/freshclam.log |