192 |
- |
1 |
##
|
|
|
2 |
## Example config file for freshclam
|
|
|
3 |
## Please read the freshclam.conf(5) manual before editing this file.
|
|
|
4 |
##
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
# Comment or remove the line below.
|
200 |
- |
8 |
#Example
|
192 |
- |
9 |
|
|
|
10 |
# Path to the database directory.
|
|
|
11 |
# WARNING: It must match clamd.conf's directive!
|
|
|
12 |
# Default: hardcoded (depends on installation options)
|
|
|
13 |
#DatabaseDirectory /var/lib/clamav
|
|
|
14 |
|
|
|
15 |
# Path to the log file (make sure it has proper permissions)
|
|
|
16 |
# Default: disabled
|
|
|
17 |
#UpdateLogFile /var/log/freshclam.log
|
|
|
18 |
|
|
|
19 |
# Maximum size of the log file.
|
|
|
20 |
# Value of 0 disables the limit.
|
|
|
21 |
# You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
|
|
|
22 |
# and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes).
|
|
|
23 |
# in bytes just don't use modifiers. If LogFileMaxSize is enabled,
|
|
|
24 |
# log rotation (the LogRotate option) will always be enabled.
|
|
|
25 |
# Default: 1M
|
|
|
26 |
#LogFileMaxSize 2M
|
|
|
27 |
|
|
|
28 |
# Log time with each message.
|
|
|
29 |
# Default: no
|
|
|
30 |
#LogTime yes
|
|
|
31 |
|
|
|
32 |
# Enable verbose logging.
|
|
|
33 |
# Default: no
|
|
|
34 |
#LogVerbose yes
|
|
|
35 |
|
|
|
36 |
# Use system logger (can work together with UpdateLogFile).
|
|
|
37 |
# Default: no
|
|
|
38 |
#LogSyslog yes
|
|
|
39 |
|
|
|
40 |
# Specify the type of syslog messages - please refer to 'man syslog'
|
|
|
41 |
# for facility names.
|
|
|
42 |
# Default: LOG_LOCAL6
|
|
|
43 |
#LogFacility LOG_MAIL
|
|
|
44 |
|
|
|
45 |
# Enable log rotation. Always enabled when LogFileMaxSize is enabled.
|
|
|
46 |
# Default: no
|
|
|
47 |
#LogRotate yes
|
|
|
48 |
|
|
|
49 |
# This option allows you to save the process identifier of the daemon
|
197 |
- |
50 |
# This file will be owned by root, as long as freshclam was started by root.
|
|
|
51 |
# It is recommended that the directory where this file is stored is
|
|
|
52 |
# also owned by root to keep other users from tampering with it.
|
192 |
- |
53 |
# Default: disabled
|
|
|
54 |
#PidFile /var/run/freshclam.pid
|
|
|
55 |
|
|
|
56 |
# By default when started freshclam drops privileges and switches to the
|
|
|
57 |
# "clamav" user. This directive allows you to change the database owner.
|
|
|
58 |
# Default: clamav (may depend on installation options)
|
200 |
- |
59 |
#DatabaseOwner clamupdate
|
192 |
- |
60 |
|
|
|
61 |
# Use DNS to verify virus database version. Freshclam uses DNS TXT records
|
|
|
62 |
# to verify database and software versions. With this directive you can change
|
|
|
63 |
# the database verification domain.
|
|
|
64 |
# WARNING: Do not touch it unless you're configuring freshclam to use your
|
|
|
65 |
# own database verification domain.
|
|
|
66 |
# Default: current.cvd.clamav.net
|
|
|
67 |
#DNSDatabaseInfo current.cvd.clamav.net
|
|
|
68 |
|
|
|
69 |
# database.clamav.net is now the primary domain name to be used world-wide.
|
|
|
70 |
# Now that CloudFlare is being used as our Content Delivery Network (CDN),
|
|
|
71 |
# this one domain name works world-wide to direct freshclam to the closest
|
|
|
72 |
# geographic endpoint.
|
|
|
73 |
# If the old db.XY.clamav.net domains are set, freshclam will automatically
|
|
|
74 |
# use database.clamav.net instead.
|
200 |
- |
75 |
DatabaseMirror database.clamav.net
|
192 |
- |
76 |
|
|
|
77 |
# How many attempts to make before giving up.
|
|
|
78 |
# Default: 3 (per mirror)
|
|
|
79 |
#MaxAttempts 5
|
|
|
80 |
|
|
|
81 |
# With this option you can control scripted updates. It's highly recommended
|
|
|
82 |
# to keep it enabled.
|
|
|
83 |
# Default: yes
|
|
|
84 |
#ScriptedUpdates yes
|
|
|
85 |
|
|
|
86 |
# By default freshclam will keep the local databases (.cld) uncompressed to
|
|
|
87 |
# make their handling faster. With this option you can enable the compression;
|
|
|
88 |
# the change will take effect with the next database update.
|
|
|
89 |
# Default: no
|
|
|
90 |
#CompressLocalDatabase no
|
|
|
91 |
|
|
|
92 |
# With this option you can provide custom sources for database files.
|
|
|
93 |
# This option can be used multiple times. Support for:
|
|
|
94 |
# http(s)://, ftp(s)://, or file://
|
|
|
95 |
# Default: no custom URLs
|
|
|
96 |
#DatabaseCustomURL http://myserver.example.com/mysigs.ndb
|
|
|
97 |
#DatabaseCustomURL https://myserver.example.com/mysigs.ndb
|
|
|
98 |
#DatabaseCustomURL https://myserver.example.com:4567/whitelist.wdb
|
|
|
99 |
#DatabaseCustomURL ftp://myserver.example.com/example.ldb
|
|
|
100 |
#DatabaseCustomURL ftps://myserver.example.com:4567/example.ndb
|
|
|
101 |
#DatabaseCustomURL file:///mnt/nfs/local.hdb
|
|
|
102 |
|
|
|
103 |
# This option allows you to easily point freshclam to private mirrors.
|
|
|
104 |
# If PrivateMirror is set, freshclam does not attempt to use DNS
|
|
|
105 |
# to determine whether its databases are out-of-date, instead it will
|
|
|
106 |
# use the If-Modified-Since request or directly check the headers of the
|
|
|
107 |
# remote database files. For each database, freshclam first attempts
|
|
|
108 |
# to download the CLD file. If that fails, it tries to download the
|
|
|
109 |
# CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo
|
|
|
110 |
# and ScriptedUpdates. It can be used multiple times to provide
|
|
|
111 |
# fall-back mirrors.
|
|
|
112 |
# Default: disabled
|
|
|
113 |
#PrivateMirror mirror1.example.com
|
|
|
114 |
#PrivateMirror mirror2.example.com
|
|
|
115 |
|
|
|
116 |
# Number of database checks per day.
|
|
|
117 |
# Default: 12 (every two hours)
|
|
|
118 |
#Checks 24
|
|
|
119 |
|
|
|
120 |
# Proxy settings
|
|
|
121 |
# The HTTPProxyServer may be prefixed with [scheme]:// to specify which kind
|
|
|
122 |
# of proxy is used.
|
|
|
123 |
# http:// HTTP Proxy. Default when no scheme or proxy type is specified.
|
|
|
124 |
# https:// HTTPS Proxy. (Added in 7.52.0 for OpenSSL, GnuTLS and NSS)
|
|
|
125 |
# socks4:// SOCKS4 Proxy.
|
|
|
126 |
# socks4a:// SOCKS4a Proxy. Proxy resolves URL hostname.
|
|
|
127 |
# socks5:// SOCKS5 Proxy.
|
|
|
128 |
# socks5h:// SOCKS5 Proxy. Proxy resolves URL hostname.
|
|
|
129 |
# Default: disabled
|
|
|
130 |
#HTTPProxyServer https://proxy.example.com
|
|
|
131 |
#HTTPProxyPort 1234
|
|
|
132 |
#HTTPProxyUsername myusername
|
|
|
133 |
#HTTPProxyPassword mypass
|
|
|
134 |
|
|
|
135 |
# If your servers are behind a firewall/proxy which applies User-Agent
|
|
|
136 |
# filtering you can use this option to force the use of a different
|
|
|
137 |
# User-Agent header.
|
|
|
138 |
# Default: clamav/version_number
|
|
|
139 |
#HTTPUserAgent SomeUserAgentIdString
|
|
|
140 |
|
|
|
141 |
# Use aaa.bbb.ccc.ddd as client address for downloading databases. Useful for
|
|
|
142 |
# multi-homed systems.
|
|
|
143 |
# Default: Use OS'es default outgoing IP address.
|
|
|
144 |
#LocalIPAddress aaa.bbb.ccc.ddd
|
|
|
145 |
|
|
|
146 |
# Send the RELOAD command to clamd.
|
|
|
147 |
# Default: no
|
|
|
148 |
#NotifyClamd /path/to/clamd.conf
|
|
|
149 |
|
|
|
150 |
# Run command after successful database update.
|
200 |
- |
151 |
# Use EXIT_1 to return 1 after successful database update.
|
192 |
- |
152 |
# Default: disabled
|
|
|
153 |
#OnUpdateExecute command
|
|
|
154 |
|
|
|
155 |
# Run command when database update process fails.
|
|
|
156 |
# Default: disabled
|
|
|
157 |
#OnErrorExecute command
|
|
|
158 |
|
|
|
159 |
# Run command when freshclam reports outdated version.
|
|
|
160 |
# In the command string %v will be replaced by the new version number.
|
|
|
161 |
# Default: disabled
|
|
|
162 |
#OnOutdatedExecute command
|
|
|
163 |
|
|
|
164 |
# Don't fork into background.
|
|
|
165 |
# Default: no
|
|
|
166 |
#Foreground yes
|
|
|
167 |
|
|
|
168 |
# Enable debug messages in libclamav.
|
|
|
169 |
# Default: no
|
|
|
170 |
#Debug yes
|
|
|
171 |
|
|
|
172 |
# Timeout in seconds when connecting to database server.
|
|
|
173 |
# Default: 30
|
|
|
174 |
#ConnectTimeout 60
|
|
|
175 |
|
197 |
- |
176 |
# Maximum time in seconds for each download operation. 0 means no timeout.
|
192 |
- |
177 |
# Default: 0
|
|
|
178 |
#ReceiveTimeout 1800
|
|
|
179 |
|
|
|
180 |
# With this option enabled, freshclam will attempt to load new
|
|
|
181 |
# databases into memory to make sure they are properly handled
|
|
|
182 |
# by libclamav before replacing the old ones.
|
|
|
183 |
# Default: yes
|
|
|
184 |
#TestDatabases yes
|
|
|
185 |
|
|
|
186 |
# This option enables support for Google Safe Browsing. When activated for
|
|
|
187 |
# the first time, freshclam will download a new database file
|
|
|
188 |
# (safebrowsing.cvd) which will be automatically loaded by clamd and
|
|
|
189 |
# clamscan during the next reload, provided that the heuristic phishing
|
|
|
190 |
# detection is turned on. This database includes information about websites
|
|
|
191 |
# that may be phishing sites or possible sources of malware. When using this
|
|
|
192 |
# option, it's mandatory to run freshclam at least every 30 minutes.
|
|
|
193 |
# Freshclam uses the ClamAV's mirror infrastructure to distribute the
|
|
|
194 |
# database and its updates but all the contents are provided under Google's
|
|
|
195 |
# terms of use.
|
|
|
196 |
# See https://transparencyreport.google.com/safe-browsing/overview
|
|
|
197 |
# and https://www.clamav.net/documents/safebrowsing for more information.
|
|
|
198 |
# Default: no
|
|
|
199 |
#SafeBrowsing yes
|
|
|
200 |
|
|
|
201 |
# This option enables downloading of bytecode.cvd, which includes additional
|
|
|
202 |
# detection mechanisms and improvements to the ClamAV engine.
|
|
|
203 |
# Default: yes
|
|
|
204 |
#Bytecode no
|
|
|
205 |
|
|
|
206 |
# Include an optional signature databases (opt-in).
|
|
|
207 |
# This option can be used multiple times.
|
|
|
208 |
#ExtraDatabase dbname1
|
|
|
209 |
#ExtraDatabase dbname2
|
|
|
210 |
|
|
|
211 |
# Exclude a standard signature database (opt-out).
|
|
|
212 |
# This option can be used multiple times.
|
|
|
213 |
#ExcludeDatabase dbname1
|
|
|
214 |
#ExcludeDatabase dbname2
|