Projekt

Allgemein

Profil

Setup clamav » Historie » Version 1

Jeremias Keihsler, 18.09.2024 11:09

1 1 Jeremias Keihsler
h1. Install procedure for ClamAV
2
3
h2. Requirements
4
5
To install ClamAV you will need the following:
6
* a installed and supported operating system (e.g. CentOS 9.x)
7
* root-access
8
* a fast internet connection
9
* epel
10
11
h2. Preliminary Note
12
13
This procedure is based on a documentation supplied by https://www.hostinger.com/tutorials/how-to-install-clamav-centos7
14
15
h2. Install 
16
17
<pre><code class="shell">
18
yum install clamav clamav-update clamd
19
</code></pre>
20
21
h2. SELinux config
22
23
<pre><code class="shell">
24
setsebool -P antivirus_can_scan_system 1
25
setsebool -P clamd_use_jit 1
26
</code></pre>
27
28
verify changes
29
30
<pre><code class="shell">
31
getsebool -a | grep antivirus
32
</code></pre>
33
34
<pre>antivirus_can_scan_system --> on
35
antivirus_use_jit --> on</pre>
36
37
h2. ClamAV config
38
39
open config file and uncomment following line
40
41
<pre><code class="shell">
42
vim /etc/clamd.d/scan.conf
43
</code></pre>
44
45
<pre>#LocalSocket /var/run/clamd.scan/clamd.sock</pre>
46
47
h2. update virus-DB
48
49
<pre><code class="shell">
50
freshclam
51
</code></pre>
52
53
should result in following output
54
55
<pre>
56
ClamAV update process started at Tue Dec  19 09:30:20 2016
57
main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
58
Trying host database.clamav.net (69.163.100.14)...
59
Downloading daily.cvd [100%]
60
daily.cvd updated (version: 22739, sigs: 1100989, f-level: 63, builder: neo)
61
Downloading bytecode-279.cdiff [100%]
62
Downloading bytecode-280.cdiff [100%]
63
Downloading bytecode-281.cdiff [100%]
64
Downloading bytecode-282.cdiff [100%]
65
Downloading bytecode-283.cdiff [100%]
66
bytecode.cld updated (version: 285, sigs: 57, f-level: 63, builder: bbaker)
67
Database updated (5319836 signatures) from database.clamav.net (IP: 168.143.19.95)
68
</pre>
69
70
h2. Service 
71
72
<pre><code class="shell">
73
systemctl start clamd@scan
74
systemctl enable clamd@scan
75
</code></pre>