Aktionen
Install procedure for ClamAV¶
Requirements¶
To install ClamAV you will need the following:- a installed and supported operating system (e.g. CentOS 7.x)
- root-access
- a fast internet connection
- epel
Preliminary Note¶
This procedure is based on a documentation supplied by https://www.hostinger.com/tutorials/how-to-install-clamav-centos7
Install¶
yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
SELinux config¶
setsebool -P antivirus_can_scan_system 1
setsebool -P clamd_use_jit 1
verify changes
getsebool -a | grep antivirus
antivirus_can_scan_system --> on antivirus_use_jit --> on
ClamAV config¶
remove 'example'-string from config-file
sed -i -e "s/^Example/#Example/" /etc/clamd.d/scan.conf
open config file and uncomment following line
vim /etc/clamd.d/scan.conf
#LocalSocket /var/run/clamd.scan/clamd.sock
remove 'example'-string from freshclam-config file
sed -i -e "s/^Example/#Example/" /etc/freshclam.conf
update virus-DB¶
freshclam
should result in following output
ClamAV update process started at Tue Dec 19 09:30:20 2016 main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer) Trying host database.clamav.net (69.163.100.14)... Downloading daily.cvd [100%] daily.cvd updated (version: 22739, sigs: 1100989, f-level: 63, builder: neo) Downloading bytecode-279.cdiff [100%] Downloading bytecode-280.cdiff [100%] Downloading bytecode-281.cdiff [100%] Downloading bytecode-282.cdiff [100%] Downloading bytecode-283.cdiff [100%] bytecode.cld updated (version: 285, sigs: 57, f-level: 63, builder: bbaker) Database updated (5319836 signatures) from database.clamav.net (IP: 168.143.19.95)
Service¶
systemctl start clamd@scan
systemctl enable clamd@scan
Von Jeremias Keihsler vor mehr als 1 Jahr aktualisiert · 3 Revisionen