Subversion Repositories configs

Rev

Rev 197 | Rev 200 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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.
198 - 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)
198 - 59
#DatabaseOwner clamav
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.
198 - 75
DatabaseMirror db.local.clamav.net
76
DatabaseMirror db.local.clamav.net
192 - 77
 
78
# How many attempts to make before giving up.
79
# Default: 3 (per mirror)
80
#MaxAttempts 5
81
 
82
# With this option you can control scripted updates. It's highly recommended
83
# to keep it enabled.
84
# Default: yes
85
#ScriptedUpdates yes
86
 
87
# By default freshclam will keep the local databases (.cld) uncompressed to
88
# make their handling faster. With this option you can enable the compression;
89
# the change will take effect with the next database update.
90
# Default: no
91
#CompressLocalDatabase no
92
 
93
# With this option you can provide custom sources for database files.
94
# This option can be used multiple times. Support for:
95
#   http(s)://, ftp(s)://, or file://
96
# Default: no custom URLs
97
#DatabaseCustomURL http://myserver.example.com/mysigs.ndb
98
#DatabaseCustomURL https://myserver.example.com/mysigs.ndb
99
#DatabaseCustomURL https://myserver.example.com:4567/whitelist.wdb
100
#DatabaseCustomURL ftp://myserver.example.com/example.ldb
101
#DatabaseCustomURL ftps://myserver.example.com:4567/example.ndb
102
#DatabaseCustomURL file:///mnt/nfs/local.hdb
103
 
104
# This option allows you to easily point freshclam to private mirrors.
105
# If PrivateMirror is set, freshclam does not attempt to use DNS
106
# to determine whether its databases are out-of-date, instead it will
107
# use the If-Modified-Since request or directly check the headers of the
108
# remote database files. For each database, freshclam first attempts
109
# to download the CLD file. If that fails, it tries to download the
110
# CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo
111
# and ScriptedUpdates. It can be used multiple times to provide
112
# fall-back mirrors.
113
# Default: disabled
114
#PrivateMirror mirror1.example.com
115
#PrivateMirror mirror2.example.com
116
 
117
# Number of database checks per day.
118
# Default: 12 (every two hours)
119
#Checks 24
120
 
121
# Proxy settings
122
# The HTTPProxyServer may be prefixed with [scheme]:// to specify which kind
123
# of proxy is used.
124
#   http://     HTTP Proxy. Default when no scheme or proxy type is specified.
125
#   https://    HTTPS Proxy. (Added in 7.52.0 for OpenSSL, GnuTLS and NSS)
126
#   socks4://   SOCKS4 Proxy.
127
#   socks4a://  SOCKS4a Proxy. Proxy resolves URL hostname.
128
#   socks5://   SOCKS5 Proxy.
129
#   socks5h://  SOCKS5 Proxy. Proxy resolves URL hostname.
130
# Default: disabled
131
#HTTPProxyServer https://proxy.example.com
132
#HTTPProxyPort 1234
133
#HTTPProxyUsername myusername
134
#HTTPProxyPassword mypass
135
 
136
# If your servers are behind a firewall/proxy which applies User-Agent
137
# filtering you can use this option to force the use of a different
138
# User-Agent header.
139
# Default: clamav/version_number
140
#HTTPUserAgent SomeUserAgentIdString
141
 
142
# Use aaa.bbb.ccc.ddd as client address for downloading databases. Useful for
143
# multi-homed systems.
144
# Default: Use OS'es default outgoing IP address.
145
#LocalIPAddress aaa.bbb.ccc.ddd
146
 
147
# Send the RELOAD command to clamd.
148
# Default: no
149
#NotifyClamd /path/to/clamd.conf
150
 
151
# Run command after successful database update.
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