This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_clamav [2020/08/30 18:19] val [API ядра FANOTIFY] |
сервис_clamav [2022/03/31 12:13] val [Debian/Ubuntu] |
||
---|---|---|---|
Line 30: | Line 30: | ||
root@gate:~# ls /var/lib/clamav/ | root@gate:~# ls /var/lib/clamav/ | ||
+ | |||
+ | 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:~# service clamav-daemon start | root@gate:~# service clamav-daemon start | ||
Line 42: | Line 46: | ||
$ cd /tmp | $ cd /tmp | ||
- | $ wget http://val.bmstu.ru/unix/virus.zip | + | $ wget http://gate.isp.un/unix/virus.zip |
$ clamdscan virus.zip | $ clamdscan virus.zip | ||
Line 52: | Line 56: | ||
* [[https://www.clamav.net/documents/on-access-scanning|On-Access Scanning]] | * [[https://www.clamav.net/documents/on-access-scanning|On-Access Scanning]] | ||
* [[https://blog.clamav.net/2016/03/configuring-on-access-scanning-in-clamav.html|Configuring On-Access Scanning in ClamAV]] | * [[https://blog.clamav.net/2016/03/configuring-on-access-scanning-in-clamav.html|Configuring On-Access Scanning in ClamAV]] | ||
- | * Для Ubuntu отключить [[Модуль AppArmor]] | + | * [[Модуль AppArmor]] |
<code> | <code> | ||
Line 60: | Line 64: | ||
</code><code> | </code><code> | ||
... | ... | ||
- | OnAccessIncludePath /home | + | OnAccessIncludePath /disk2 |
OnAccessPrevention yes | OnAccessPrevention yes | ||
OnAccessExcludeUname clamav | OnAccessExcludeUname clamav | ||
- | ... | ||
</code><code> | </code><code> | ||
# clamonacc | # clamonacc | ||
Line 70: | Line 73: | ||
<code> | <code> | ||
# tail -f /var/log/clamav/clamav.log | # tail -f /var/log/clamav/clamav.log | ||
- | |||
- | debian# cat /etc/logrotate.d/clamav-daemon | ||
</code> | </code> |