{"id":1801,"date":"2015-02-07T06:01:24","date_gmt":"2015-02-07T06:01:24","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1801"},"modified":"2015-02-07T06:01:24","modified_gmt":"2015-02-07T06:01:24","slug":"clamd-conf-file-centos","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/07\/clamd-conf-file-centos\/","title":{"rendered":"Clamd.conf file for CentOS"},"content":{"rendered":"<p>##<br \/>\n## Example config file for the Clam AV daemon<br \/>\n## Please read the clamd.conf(5) manual before editing this file.<br \/>\n##<\/p>\n<p># Comment or remove the line below.<br \/>\n#Example<\/p>\n<p># Uncomment this option to enable logging.<br \/>\n# LogFile must be writable for the user running daemon.<br \/>\n# A full path is required.<br \/>\n# Default: disabled<br \/>\nLogFile \/var\/log\/clamav\/clamd.log<\/p>\n<p># By default the log file is locked for writing &#8211; the lock protects against<br \/>\n# running clamd multiple times (if want to run another clamd, please<br \/>\n# copy the configuration file, change the LogFile variable, and run<br \/>\n# the daemon with &#8211;config-file option).<br \/>\n# This option disables log file locking.<br \/>\n# Default: no<br \/>\n#LogFileUnlock yes<\/p>\n<p># Maximum size of the log file.<br \/>\n# Value of 0 disables the limit.<br \/>\n# You may use &#8216;M&#8217; or &#8216;m&#8217; for megabytes (1M = 1m = 1048576 bytes)<br \/>\n# and &#8216;K&#8217; or &#8216;k&#8217; for kilobytes (1K = 1k = 1024 bytes). To specify the size<br \/>\n# in bytes just don&#8217;t use modifiers. If LogFileMaxSize is enabled, log<br \/>\n# rotation (the LogRotate option) will always be enabled.<br \/>\n# Default: 1M<br \/>\nLogFileMaxSize 2M<\/p>\n<p># Log time with each message.<br \/>\n# Default: no<br \/>\n#LogTime yes<\/p>\n<p># Also log clean files. Useful in debugging but drastically increases the<br \/>\n# log size.<br \/>\n# Default: no<br \/>\n#LogClean yes<\/p>\n<p># Use system logger (can work together with LogFile).<br \/>\n# Default: no<br \/>\nLogSyslog yes<\/p>\n<p># Specify the type of syslog messages &#8211; please refer to &#8216;man syslog&#8217;<br \/>\n# for facility names.<br \/>\n# Default: LOG_LOCAL6<br \/>\n#LogFacility LOG_MAIL<\/p>\n<p># Enable verbose logging.<br \/>\n# Default: no<br \/>\n#LogVerbose yes<\/p>\n<p># Enable log rotation. Always enabled when LogFileMaxSize is enabled.<br \/>\n# Default: no<br \/>\n#LogRotate yes<\/p>\n<p># Log additional information about the infected file, such as its<br \/>\n# size and hash, together with the virus name.<br \/>\n#ExtendedDetectionInfo yes<\/p>\n<p># This option allows you to save a process identifier of the listening<br \/>\n# daemon (main thread).<br \/>\n# Default: disabled<br \/>\nPidFile \/var\/run\/clamd.pid<\/p>\n<p># Optional path to the global temporary directory.<br \/>\n# Default: system specific (usually \/tmp or \/var\/tmp).<br \/>\n#TemporaryDirectory \/var\/tmp<\/p>\n<p># Path to the database directory.<br \/>\n# Default: hardcoded (depends on installation options)<br \/>\nDatabaseDirectory \/var\/clamav<\/p>\n<p># Only load the official signatures published by the ClamAV project.<br \/>\n# Default: no<br \/>\n#OfficialDatabaseOnly no<\/p>\n<p># The daemon can work in local mode, network mode or both.<br \/>\n# Due to security reasons we recommend the local mode.<\/p>\n<p># Path to a local socket file the daemon will listen on.<br \/>\n# Default: disabled (must be specified by a user)<br \/>\nLocalSocket \/tmp\/clamd.socket<\/p>\n<p># Sets the group ownership on the unix socket.<br \/>\n# Default: disabled (the primary group of the user running clamd)<br \/>\n#LocalSocketGroup virusgroup<\/p>\n<p># Sets the permissions on the unix socket to the specified mode.<br \/>\n# Default: disabled (socket is world accessible)<br \/>\n#LocalSocketMode 660<\/p>\n<p># Remove stale socket after unclean shutdown.<br \/>\n# Default: yes<br \/>\n#FixStaleSocket yes<\/p>\n<p># TCP port address.<br \/>\n# Default: no<br \/>\nTCPSocket 3310<\/p>\n<p># TCP address.<br \/>\n# By default we bind to INADDR_ANY, probably not wise.<br \/>\n# Enable the following to provide some degree of protection<br \/>\n# from the outside world. This option can be specified multiple<br \/>\n# times if you want to listen on multiple IPs. IPv6 is now supported.<br \/>\n# Default: no<br \/>\nTCPAddr 127.0.0.1<\/p>\n<p># Maximum length the queue of pending connections may grow to.<br \/>\n# Default: 200<br \/>\nMaxConnectionQueueLength 30<\/p>\n<p># Clamd uses FTP-like protocol to receive data from remote clients.<br \/>\n# If you are using clamav-milter to balance load between remote clamd daemons<br \/>\n# on firewall servers you may need to tune the options below.<\/p>\n<p># Close the connection when the data size limit is exceeded.<br \/>\n# The value should match your MTA&#8217;s limit for a maximum attachment size.<br \/>\n# Default: 25M<br \/>\nStreamMaxLength 55M<\/p>\n<p># Limit port range.<br \/>\n# Default: 1024<br \/>\n#StreamMinPort 30000<br \/>\n# Default: 2048<br \/>\n#StreamMaxPort 32000<\/p>\n<p># Maximum number of threads running at the same time.<br \/>\n# Default: 10<br \/>\nMaxThreads 20<\/p>\n<p># Waiting for data from a client socket will timeout after this time (seconds).<br \/>\n# Default: 120<br \/>\nReadTimeout 300<\/p>\n<p># This option specifies the time (in seconds) after which clamd should<br \/>\n# timeout if a client doesn&#8217;t provide any initial command after connecting.<br \/>\n# Default: 5<br \/>\n#CommandReadTimeout 5<\/p>\n<p># This option specifies how long to wait (in miliseconds) if the send buffer is full.<br \/>\n# Keep this value low to prevent clamd hanging<br \/>\n#<br \/>\n# Default: 500<br \/>\n#SendBufTimeout 200<\/p>\n<p># Maximum number of queued items (including those being processed by MaxThreads threads)<br \/>\n# It is recommended to have this value at least twice MaxThreads if possible.<br \/>\n# WARNING: you shouldn&#8217;t increase this too much to avoid running out  of file descriptors,<br \/>\n# the following condition should hold:<br \/>\n# MaxThreads*MaxRecursion + (MaxQueue &#8211; MaxThreads) + 6< RLIMIT_NOFILE (usual max is 1024)\n#\n# Default: 100\n#MaxQueue 200\n\n# Waiting for a new job will timeout after this time (seconds).\n# Default: 30\n#IdleTimeout 60\n\n# Don't scan files and directories matching regex\n# This directive can be used multiple times\n# Default: scan all\n#ExcludePath ^\/proc\/\n#ExcludePath ^\/sys\/\n\n# Maximum depth directories are scanned at.\n# Default: 15\n#MaxDirectoryRecursion 20\n\n# Follow directory symlinks.\n# Default: no\n#FollowDirectorySymlinks yes\n\n# Follow regular file symlinks.\n# Default: no\n#FollowFileSymlinks yes\n\n# Scan files and directories on other filesystems.\n# Default: yes\n#CrossFilesystems yes\n\n# Perform a database check.\n# Default: 600 (10 min)\n#SelfCheck 600\n\n# Execute a command when virus is found. In the command string %v will\n# be replaced with the virus name.\n# Default: no\n#VirusEvent \/usr\/local\/bin\/send_sms 123456789 \"VIRUS ALERT: %v\"\n\n# Run as another user (clamd must be started by root for this option to work)\n# Default: don't drop privileges\nUser clamav\n\n# Initialize supplementary group access (clamd must be started by root).\n# Default: no\nAllowSupplementaryGroups no\n\n# Stop daemon when libclamav reports out of memory condition.\n#ExitOnOOM yes\n\n# Don't fork into background.\n# Default: no\n#Foreground yes\n\n# Enable debug messages in libclamav.\n# Default: no\n#Debug yes\n\n# Do not remove temporary files (for debug purposes).\n# Default: no\n#LeaveTemporaryFiles yes\n\n# Permit use of the ALLMATCHSCAN command. If set to no, clamd will reject\n# any ALLMATCHSCAN command as invalid.\n# Default: yes\n#AllowAllMatchScan no\n\n# Detect Possibly Unwanted Applications.\n# Default: no\n#DetectPUA yes\n\n# Exclude a specific PUA category. This directive can be used multiple times.\n# See https:\/\/github.com\/vrtadmin\/clamav-faq\/blob\/master\/faq\/faq-pua.md for \n# the complete list of PUA categories.\n# Default: Load all categories (if DetectPUA is activated)\n#ExcludePUA NetTool\n#ExcludePUA PWTool\n\n# Only include a specific PUA category. This directive can be used multiple\n# times.\n# Default: Load all categories (if DetectPUA is activated)\n#IncludePUA Spy\n#IncludePUA Scanner\n#IncludePUA RAT\n\n# In some cases (eg. complex malware, exploits in graphic files, and others),\n# ClamAV uses special algorithms to provide accurate detection. This option\n# controls the algorithmic detection.\n# Default: yes\n#AlgorithmicDetection yes\n\n# This option causes memory or nested map scans to dump the content to disk.\n# If you turn on this option, more data is written to disk and is available\n# when the LeaveTemporaryFiles option is enabled.\n#ForceToDisk yes\n\n# This option allows you to disable the caching feature of the engine. By\n# default, the engine will store an MD5 in a cache of any files that are\n# not flagged as virus or that hit limits checks. Disabling the cache will\n# have a negative performance impact on large scans.\n# Default: no\n#DisableCache yes\n\n##\n## Executable files\n##\n\n# PE stands for Portable Executable - it's an executable file format used\n# in all 32 and 64-bit versions of Windows operating systems. This option allows\n# ClamAV to perform a deeper analysis of executable files and it's also\n# required for decompression of popular executable packers such as UPX, FSG,\n# and Petite. If you turn off this option, the original files will still be\n# scanned, but without additional processing.\n# Default: yes\nScanPE yes\n\n# Certain PE files contain an authenticode signature. By default, we check\n# the signature chain in the PE file against a database of trusted and\n# revoked certificates if the file being scanned is marked as a virus.\n# If any certificate in the chain validates against any trusted root, but\n# does not match any revoked certificate, the file is marked as whitelisted.\n# If the file does match a revoked certificate, the file is marked as virus.\n# The following setting completely turns off authenticode verification.\n# Default: no\n#DisableCertCheck yes\n\n# Executable and Linking Format is a standard format for UN*X executables.\n# This option allows you to control the scanning of ELF files.\n# If you turn off this option, the original files will still be scanned, but\n# without additional processing.\n# Default: yes\n#ScanELF yes\n\n# With this option clamav will try to detect broken executables (both PE and\n# ELF) and mark them as Broken.Executable.\n# Default: no\n#DetectBrokenExecutables yes\n\n\n##\n## Documents\n##\n\n# This option enables scanning of OLE2 files, such as Microsoft Office\n# documents and .msi files.\n# If you turn off this option, the original files will still be scanned, but\n# without additional processing.\n# Default: yes\n#ScanOLE2 yes\n\n# With this option enabled OLE2 files with VBA macros, which were not\n# detected by signatures will be marked as \"Heuristics.OLE2.ContainsMacros\".\n# Default: no\n#OLE2BlockMacros no\n\n# This option enables scanning within PDF files.\n# If you turn off this option, the original files will still be scanned, but\n# without decoding and additional processing.\n# Default: yes\n#ScanPDF yes\n\n# This option enables scanning within SWF files.\n# If you turn off this option, the original files will still be scanned, but\n# without decoding and additional processing.\n# Default: yes\n#ScanSWF yes\n\n\n##\n## Mail files\n##\n\n# Enable internal e-mail scanner.\n# If you turn off this option, the original files will still be scanned, but\n# without parsing individual messages\/attachments.\n# Default: yes\nScanMail yes\n\n# Scan RFC1341 messages split over many emails.\n# You will need to periodically clean up $TemporaryDirectory\/clamav-partial directory.\n# WARNING: This option may open your system to a DoS attack.\n#\t   Never use it on loaded servers.\n# Default: no\n#ScanPartialMessages yes\n\n# With this option enabled ClamAV will try to detect phishing attempts by using\n# signatures.\n# Default: yes\n#PhishingSignatures yes\n\n# Scan URLs found in mails for phishing attempts using heuristics.\n# Default: yes\n#PhishingScanURLs yes\n\n# Always block SSL mismatches in URLs, even if the URL isn't in the database.\n# This can lead to false positives.\n#\n# Default: no\n#PhishingAlwaysBlockSSLMismatch no\n\n# Always block cloaked URLs, even if URL isn't in database.\n# This can lead to false positives.\n#\n# Default: no\n#PhishingAlwaysBlockCloak no\n\n# Detect partition intersections in raw disk images using heuristics.\n# Default: no\n#PartitionIntersection no\n\n# Allow heuristic match to take precedence.\n# When enabled, if a heuristic scan (such as phishingScan) detects\n# a possible virus\/phish it will stop scan immediately. Recommended, saves CPU\n# scan-time.\n# When disabled, virus\/phish detected by heuristic scans will be reported only at\n# the end of a scan. If an archive contains both a heuristically detected\n# virus\/phish, and a real malware, the real malware will be reported\n#\n# Keep this disabled if you intend to handle \"*.Heuristics.*\" viruses \n# differently from \"real\" malware.\n# If a non-heuristically-detected virus (signature-based) is found first, \n# the scan is interrupted immediately, regardless of this config option.\n#\n# Default: no\n#HeuristicScanPrecedence yes\n\n\n##\n## Data Loss Prevention (DLP)\n##\n\n# Enable the DLP module\n# Default: No\n#StructuredDataDetection yes\n\n# This option sets the lowest number of Credit Card numbers found in a file\n# to generate a detect.\n# Default: 3\n#StructuredMinCreditCardCount 5\n\n# This option sets the lowest number of Social Security Numbers found\n# in a file to generate a detect.\n# Default: 3\n#StructuredMinSSNCount 5\n\n# With this option enabled the DLP module will search for valid\n# SSNs formatted as xxx-yy-zzzz\n# Default: yes\n#StructuredSSNFormatNormal yes\n\n# With this option enabled the DLP module will search for valid\n# SSNs formatted as xxxyyzzzz\n# Default: no\n#StructuredSSNFormatStripped yes\n\n\n##\n## HTML\n##\n\n# Perform HTML normalisation and decryption of MS Script Encoder code.\n# Default: yes\n# If you turn off this option, the original files will still be scanned, but\n# without additional processing.\n#ScanHTML yes\n\n\n##\n## Archives\n##\n\n# ClamAV can scan within archives and compressed files.\n# If you turn off this option, the original files will still be scanned, but\n# without unpacking and additional processing.\n# Default: yes\nScanArchive yes\n\n# Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR).\n# Default: no\n#ArchiveBlockEncrypted no\n\n\n##\n## Limits\n##\n\n# The options below protect your system against Denial of Service attacks\n# using archive bombs.\n\n# This option sets the maximum amount of data to be scanned for each input file.\n# Archives and other containers are recursively extracted and scanned up to this\n# value.\n# Value of 0 disables the limit\n# Note: disabling this limit or setting it too high may result in severe damage\n# to the system.\n# Default: 100M\n#MaxScanSize 150M\n\n# Files larger than this limit won't be scanned. Affects the input file itself\n# as well as files contained inside it (when the input file is an archive, a\n# document or some other kind of container).\n# Value of 0 disables the limit.\n# Note: disabling this limit or setting it too high may result in severe damage\n# to the system.\n# Default: 25M\n#MaxFileSize 30M\n\n# Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR\n# file, all files within it will also be scanned. This options specifies how\n# deeply the process should be continued.\n# Note: setting this limit too high may result in severe damage to the system.\n# Default: 16\n#MaxRecursion 10\n\n# Number of files to be scanned within an archive, a document, or any other\n# container file.\n# Value of 0 disables the limit.\n# Note: disabling this limit or setting it too high may result in severe damage\n# to the system.\n# Default: 10000\n#MaxFiles 15000\n\n# Maximum size of a file to check for embedded PE. Files larger than this value\n# will skip the additional analysis step.\n# Note: disabling this limit or setting it too high may result in severe damage\n# to the system.\n# Default: 10M\n#MaxEmbeddedPE 10M\n\n# Maximum size of a HTML file to normalize. HTML files larger than this value\n# will not be normalized or scanned.\n# Note: disabling this limit or setting it too high may result in severe damage\n# to the system.\n# Default: 10M\n#MaxHTMLNormalize 10M\n\n# Maximum size of a normalized HTML file to scan. HTML files larger than this\n# value after normalization will not be scanned.\n# Note: disabling this limit or setting it too high may result in severe damage\n# to the system.\n# Default: 2M\n#MaxHTMLNoTags 2M\n\n# Maximum size of a script file to normalize. Script content larger than this\n# value will not be normalized or scanned.\n# Note: disabling this limit or setting it too high may result in severe damage\n# to the system.\n# Default: 5M\n#MaxScriptNormalize 5M\n\n# Maximum size of a ZIP file to reanalyze type recognition. ZIP files larger\n# than this value will skip the step to potentially reanalyze as PE.\n# Note: disabling this limit or setting it too high may result in severe damage\n# to the system.\n# Default: 1M\n#MaxZipTypeRcg 1M\n\n# This option sets the maximum number of partitions of a raw disk image to be scanned.\n# Raw disk images with more partitions than this value will have up to the value number\n# partitions scanned. Negative values are not allowed.\n# Note: setting this limit too high may result in severe damage or impact performance.\n# Default: 50\n#MaxPartitions 128\n\n# This option sets the maximum number of icons within a PE to be scanned.\n# PE files with more icons than this value will have up to the value number icons scanned.\n# Negative values are not allowed.\n# WARNING: setting this limit too high may result in severe damage or impact performance.\n# Default: 100\n#MaxIconsPE 200\n\n##\n## On-access Scan Settings\n##\n\n# Enable on-access scanning. Currently, this is supported via fanotify.\n# Clamuko\/Dazuko support has been deprecated.\n# Default: no\n#ScanOnAccess yes\n\n# Don't scan files larger than OnAccessMaxFileSize\n# Value of 0 disables the limit.\n# Default: 5M\n#OnAccessMaxFileSize 10M\n\n# Set the include paths (all files inside them will be scanned). You can have\n# multiple OnAccessIncludePath directives but each directory must be added\n# in a separate line. (On-access scan only)\n# Default: disabled\n#OnAccessIncludePath \/home\n#OnAccessIncludePath \/students\n\n# Set the exclude paths. All subdirectories are also excluded.\n# (On-access scan only)\n# Default: disabled\n#OnAccessExcludePath \/home\/bofh\n\n# With this option you can whitelist specific UIDs. Processes with these UIDs\n# will be able to access all files.\n# This option can be used multiple times (one per line).\n# Default: disabled\n#OnAccessExcludeUID 0\n\n\n##\n## Bytecode\n##\n\n# With this option enabled ClamAV will load bytecode from the database. \n# It is highly recommended you keep this option on, otherwise you'll miss detections for many new viruses.\n# Default: yes\n#Bytecode yes\n\n# Set bytecode security level.\n# Possible values:\n#       None - no security at all, meant for debugging. DO NOT USE THIS ON PRODUCTION SYSTEMS\n#         This value is only available if clamav was built with --enable-debug!\n#       TrustSigned - trust bytecode loaded from signed .c[lv]d files,\n#                insert runtime safety checks for bytecode loaded from other sources\n#       Paranoid - don't trust any bytecode, insert runtime checks for all\n# Recommended: TrustSigned, because bytecode in .cvd files already has these checks\n# Note that by default only signed bytecode is loaded, currently you can only\n# load unsigned bytecode in --enable-debug mode.\n#\n# Default: TrustSigned\n#BytecodeSecurity TrustSigned\n\n# Set bytecode timeout in miliseconds.\n# \n# Default: 5000\n# BytecodeTimeout 1000\n\n##\n## Statistics gathering and submitting\n##\n\n# Enable statistical reporting.\n# Default: no\n#StatsEnabled yes\n\n# Disable submission of individual PE sections for files flagged as malware.\n# Default: no\n#StatsPEDisabled yes\n\n# HostID in the form of an UUID to use when submitting statistical information.\n# Default: auto\n#StatsHostID auto\n\n# Time in seconds to wait for the stats server to come back with a response\n# Default: 10\n#StatsTimeout 10\n[\/bash]\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>## ## Example config file for the Clam AV daemon ## Please read the clamd.conf(5) manual before editing this file. ## # Comment or remove the line below. #Example # Uncomment this option to enable logging. # LogFile must be writable for the user running daemon. # A full path is required. # Default: disabled &#8230; <a title=\"Clamd.conf file for CentOS\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/02\/07\/clamd-conf-file-centos\/\" aria-label=\"Read more about Clamd.conf file for CentOS\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1801","post","type-post","status-publish","format-standard","hentry","category-clamav"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=1801"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1801\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}