Skip to content

Commit a1b1b31

Browse files
committed
Update clamav_control.md
1 parent f5e6ecc commit a1b1b31

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

documentation/modules/auxiliary/scanner/misc/clamav_control.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,62 @@ To install ClamAV from Ubuntu:
1212
```
1313
$ sudo apt-get install clamav clamav-daemon
1414
$ sudo freshclam
15+
```
16+
17+
You might also need to add the following to /etc/clamav/clamd.conf:
18+
19+
```
20+
# TCP port address.
21+
# Default: no
22+
TCPSocket 3310
23+
24+
# TCP address.
25+
# By default we bind to INADDR_ANY, probably not wise.
26+
# Enable the following to provide some degree of protection
27+
# from the outside world.
28+
# Default: no
29+
TCPAddr 0.0.0.0
30+
31+
# Maximum length the queue of pending connections may grow to.
32+
# Default: 15
33+
MaxConnectionQueueLength 30
34+
35+
# Clamd uses FTP-like protocol to receive data from remote clients.
36+
# If you are using clamav-milter to balance load between remote clamd daemons
37+
# on firewall servers you may need to tune the options below.
38+
39+
# Close the connection when the data size limit is exceeded.
40+
# The value should match your MTA's limit for a maximum attachment size.
41+
# Default: 10M
42+
StreamMaxLength 55M
43+
44+
# Limit port range.
45+
# Default: 1024
46+
#StreamMinPort 30000
47+
# Default: 2048
48+
#StreamMaxPort 32000
49+
50+
# Maximum number of threads running at the same time.
51+
# Default: 10
52+
MaxThreads 50
53+
54+
# Waiting for data from a client socket will timeout after this time (seconds).
55+
# Value of 0 disables the timeout.
56+
# Default: 120
57+
ReadTimeout 300
58+
59+
# Waiting for a new job will timeout after this time (seconds).
60+
# Default: 30
61+
#IdleTimeout 60
62+
63+
# Maximum depth directories are scanned at.
64+
# Default: 15
65+
#MaxDirectoryRecursion 20
66+
```
67+
68+
And finally, start the service:
69+
70+
```
1571
$ sudo /etc/init.d/clamav-daemon start
1672
```
1773

0 commit comments

Comments
 (0)