сервис_clamav

Сервис Clamav

Установка

!!! Требуется не меньше 1024Mb RAM !!! 

Debian/Ubuntu

root@gate:~# apt install clamav-daemon

CentOS7

Настройка

Debian/Ubuntu

root@gate:~# less /etc/clamav/clamd.conf

Запуск

Debian/Ubuntu

root@gate:~# service clamav-freshclam stop
root@gate:~# rm /var/lib/clamav/freshclam.dat

root@gate:~# cat /etc/clamav/freshclam.conf
...
HTTPProxyServer gate.isp.un
HTTPProxyPort 3128
root@gate:~# service clamav-freshclam start

ИЛИ

https://packages.microsoft.com/clamav/

# wget -O /var/lib/clamav/daily.cvd https://packages.microsoft.com/clamav/daily.cvd
# wget -O /var/lib/clamav/main.cvd https://packages.microsoft.com/clamav/main.cvd

ИЛИ

root@gate:~# wget -O /var/lib/clamav/main.cld https://val.bmstu.ru/unix/clamav/main.cld
root@gate:~# wget -O /var/lib/clamav/daily.cld https://val.bmstu.ru/unix/clamav/daily.cld
root@gate:~# ls /var/lib/clamav/

root@gate:~# service clamav-daemon start

root@gate:~# ls -l /var/run/clamav/clamd.ctl

Использование

Командная строка

$ cd /tmp

$ wget http://gate.isp.un/unix/virus.zip

$ clamdscan virus.zip

API ядра FANOTIFY

$ cat /boot/config-`uname -r` | grep FANOTIFY

# cat /etc/clamav/clamd.conf
...
OnAccessIncludePath /disk2
OnAccessPrevention yes
OnAccessExcludeUname clamav
# clamonacc

Журнал

# tail -f /var/log/clamav/clamav.log
сервис_clamav.txt · Last modified: 2024/05/04 11:35 by val