freshclam.conf(5)
π freshclam.conf(5) π
okay bestie, gather round, because we're about to read the config file for freshclam.conf β that's the Configuration file for Clam AntiVirus database update tool, aka the little file that tells freshclam(1) how to go get your virus databases. she's not the star of the show, she's the manager of the star of the show, and honestly? manager energy is main character energy. π
β¨ DESCRIPTION β¨
so. the file freshclam.conf configures the Clam AntiVirus Database Updater, which is freshclam(1). that's it. that's the whole vibe. she configures, she updates, she slays. π
πΈ FILE FORMAT πΈ
the file is literally just comments and options with arguments, no cap. every line that starts with a hash (#) gets ignored by the parser β so go ahead and yap in the comments, nobody's reading them but you. π«Ά
options and arguments are case sensitive and look like this: Option Argument.
the arguments come in these types:
BOOLβ a boolean value. you can writeyes/noortrue/falseor1/0. pick your fighter. β¨STRINGβ a string without blank characters. no spaces, bestie, she will not tolerate them.SIZEβ size in bytes. you can useMormfor megabytes andKorkfor kilobytes. the lowercase ones are just as valid, she's not picky like that. πNUMBERβ an unsigned integer. no negatives, we're staying positive in this household.
π DIRECTIVES π
when an option is not used β meaning it's hashed out, or it just straight-up doesn't exist in the config file β freshclam takes a default action. so if you don't say anything, she's still gonna do something. iconique.
Exampleβ if this option is set,freshclamwill not run. that's it. that's the whole thing. she's a little troll like that. πLogFileMaxSizeSIZE β limits the size of the log file. the logger gets automatically disabled if the file is greater than SIZE. a value of0disables the limit entirely (yolo mode). Default:1MLogTimeBOOL β log the time with each message. timestamps, bestie, they're giving accountability. Default:noLogSyslogBOOL β enable logging to Syslog. may be used in combination withUpdateLogFile. Default: disabled.LogFacilitySTRING β specify the type of syslog messages β please refer toman syslogfor facility names. Default:LOG_LOCAL6LogVerboseBOOL β enable verbose logging. she will tell you everything. π Default: disabledLogRotateBOOL β rotate log file. requires theLogFileMaxSizeoption to be set prior to this option. Default:noPidFileSTRING β write the daemon's pid to the specified file. Default: disabledDatabaseDirectorySTRING β path to a directory containing database files. this directory must already exist, must be an absolute path, must be writeable by freshclam and readable by clamd/clamscan. all four, no exceptions, she's checking. π₯ Default:/var/lib/clamavCVDCertsDirectorySTRING β path to a directory containing ClamAV CA certificate files used to verify signed database archives (e.g. CVD files). this directory must already exist, must be an absolute path, and must be readable by freshclam, clamd, clamscan, and sigtool. Default:/etc/clamav/certsFIPSCryptoHashLimitsBOOL β enforce FIPS-like limits on using hash algorithms for cryptographic purposes. this will disable MD5 & SHA1 FP sigs and will require.signfiles to verify CVD authenticity. she's locking it down. π Default:noForegroundBOOL β don't fork into background. she stays right here with you. π«Ά Default:noDebugBOOL β enable debug messages in libclamav. Default:noUpdateLogFileSTRING β enable logging to a specified file. highly recommended β like, genuinely, bestie, do this one. Default: disabled.DatabaseOwnerSTRING β when started by root, drop privileges to a specified user. humble queen behavior. Default:clamavChecksNUMBER β number of database checks per day. Default:12DNSDatabaseInfoSTRING β use DNS to verify the virus database version. FreshClam uses DNS TXT records to verify the versions of the database and software itself. with this directive you can change the database verification domain.
β οΈ WARNING: please don't change it unless you're configuring freshclam to use your own database verification domain.
Default: enabled, pointing to current.cvd.clamav.net
DatabaseMirrorSTRING βDatabaseMirrorspecifies to which mirror(s) freshclam should connect. you should have at least one entries:database.clamav.net. now that CloudFlare is being used as our Content Delivery Network (CDN), this one domain name works world-wide to direct freshclam to the closest geographic endpoint. one domain, whole planet, she ate. π Default:database.clamav.netPrivateMirrorSTR β this option allows you to easily point freshclam to private mirrors. ifPrivateMirroris set, freshclam does not attempt to use DNS to determine whether its databases are out-of-date; instead it will use theIf-Modified-Sincerequest or directly check the headers of the remote database files. for each database, freshclam first attempts to download theCLDfile. if that fails, it tries to download theCVDfile. this option overridesDatabaseMirror,DNSDatabaseInfoandScriptedUpdates. it can be used multiple times to provide fall-back mirrors. Default: disabledMaxAttemptsNUMBER β how many attempts (per mirror) to make before giving up. she's persistent but she's not that persistent. Default:3(per mirror)ScriptedUpdatesBOOL β with this option you can control scripted updates. it's highly recommended to keep it enabled. Default:yesTestDatabasesBOOL β with this option enabled, freshclam will attempt to load new databases into memory to make sure they are properly handled by libclamav before replacing the old ones. vibe check before commitment, love that for her. β¨ Default: enabledCompressLocalDatabaseBOOL β by default freshclam will keep the local databases (.cld) uncompressed to make their handling faster. with this option you can enable the compression; the change will take effect with the next database update. Default:noExtraDatabaseSTRING β download an additional 3rd party signature database distributed through the ClamAV mirrors. this option can be used multiple times. Default: disabledExcludeDatabaseSTRING β exclude a standard signature database (opt-out). this option can be used multiple times. Default: disabledDatabaseCustomURLSTRING β with this option you can provide custom sources for database files. this option can be used multiple times. support for:http(s)://,ftp(s)://, orfile://. example usage:
DatabaseCustomURL https://myserver.com:4567/allow_list.wdb
Default: disabled
HTTPProxyServerSTR,HTTPProxyPortNUMBER β use given proxy server and TCP port for database downloads. theHTTPProxyServermay be prefixed with[scheme]://to specify which kind of proxy is used.http://β HTTP Proxy. Default when no scheme or proxy type is specified.https://β HTTPS Proxy. (Added in 7.52.0 for OpenSSL, GnuTLS and NSS)socks4://β SOCKS4 Proxy.socks4a://β SOCKS4a Proxy. Proxy resolves URL hostname.socks5://β SOCKS5 Proxy.socks5h://β SOCKS5 Proxy. Proxy resolves URL hostname.
HTTPProxyUsernameSTR,HTTPProxyPasswordSTRING β proxy usage is authenticated through given username and password. Default: disabledHTTPUserAgentSTRING β if your servers are behind a firewall/proxy which applies User-Agent filtering, you can use this option to force the use of a different User-Agent header. as of ClamAV 0.103.3, this setting may not be used when updating from the clamav.net CDN and can only be used when updating from a private mirror. Default:clamav/version_numberNotifyClamdSTRING β notify a runningclamd(8)to reload its database after a download has occurred. the path forclamd.conffile must be provided. Default: the default is to not notify clamd. seeclamd.conf(5)'s optionSelfCheckfor howclamd(8)handles database updates in this case.OnUpdateExecuteSTRING β execute this command after the database has been successfully updated. π Default: disabledOnErrorExecuteSTRING β execute this command after a database update has failed. π Default: disabledOnOutdatedExecuteSTRING β execute this command when freshclam reports outdated version. in the command string%vwill be replaced by the new version number. Default: disabledLocalIPAddressIP β use IP as client address for downloading databases. useful for multi homed systems. Default: use OS'es default outgoing IP address.ConnectTimeoutNUMBER β timeout in seconds when connecting to database server. Default:10ReceiveTimeoutNUMBER β maximum time in seconds for each download operation.0means no timeout. Default:0BytecodeBOOL β this option enables downloading ofbytecode.cvd, which includes additional detection mechanisms and improvements to the ClamAV engine. Default:yes
π FILES π
/etc/clamav/freshclam.conf
π AUTHOR π
- Thomas Lamy
<thomas.lamy@netwake.de> - Tomasz Kojm
<tkojm@clamav.net> - Kevin Lin
<klin@sourcefire.com>
the trio, the icons, the legends. π
π¦ SEE ALSO π¦
okay and that's the whole page, bestie!! π this one's from ClamAV 1.5.4, dated December 4, 2013 β yeah she's an elder but she still ate, fr fr. go configure your databases and stay safe out there, mwah π«Άβ¨πΈ
π¦ where this page comes from
- arch rolling: clamav 1.5.4-1 Β· GPL-2.0-only
- ubuntu jammy: clamav-freshclam 1.5.4+dfsg-0ubuntu0.22.04.1 Β· GPL-2.0-only
- ubuntu noble: clamav-freshclam 1.5.4+dfsg-0ubuntu0.24.04.1 Β· GPL-2.0-only
- ubuntu resolute: clamav-freshclam 1.5.4+dfsg-0ubuntu0.26.04.1 Β· GPL-2.0-only
- ubuntu stonking: clamav-freshclam 1.5.4+dfsg-0ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms