Artigos‎ > ‎Ferramentas de Escritório‎ > ‎Antivirus‎ > ‎

Configurando ClamAV Daemon

Link: http://www.vivaolinux.com.br/etc/clamav.conf-rdsat

Precisa adaptar para ubuntu assim:

#Automatically Generated by clamav-base postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-base
#Please read /usr/share/doc/clamav-base/README.Debian.gz for details


# TemporaryDirectory is not set to its default /tmp here to make overriding
# the default with environment variables TMPDIR/TMP/TEMP possible

LogFile /var/log/clamav/clamav.log
LogTime true
LogFileUnlock false
LogFileMaxSize 0
LogSyslog false
LogFacility LOG_LOCAL6
LogClean false
LogVerbose false

PidFile /var/run/clamav/clamd.pid

DatabaseDirectory /var/lib/clamav

LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket true

# TCP
TCPSocket 3310
TCPAddr 127.0.0.1

MaxConnectionQueueLength 15

#StreamSaveToDisk true
StreamMaxLength 10M
MaxThreads 12

#ThreadTimeout 500
MaxDirectoryRecursion 15
FollowDirectorySymlinks false
FollowFileSymlinks false

SelfCheck 3600
User clamav
AllowSupplementaryGroups true
Foreground false
Debug false

ScanPE true
ScanOLE2 true
ScanHTML true
ScanELF true

ScanMail true
ScanPartialMessages false

#ScanRAR true
ScanArchive true
ArchiveBlockEncrypted false
#ArchiveMaxFileSize 10M
#ArchiveMaxRecursion 5
#ArchiveMaxFiles 1000
#ArchiveMaxCompressionRatio 200
#ArchiveLimitMemoryUsage true
#ArchiveDetectEncrypted true

DetectBrokenExecutables false
MailFollowURLs false
ExitOnOOM false
LeaveTemporaryFiles false
AlgorithmicDetection true

IdleTimeout 30
PhishingSignatures true
PhishingScanURLs true
PhishingAlwaysBlockSSLMismatch false
PhishingAlwaysBlockCloak false
DetectPUA false

HeuristicScanPrecedence false
StructuredDataDetection false
CommandReadTimeout 5
SendBufTimeout 200
MaxQueue 100
ReadTimeout 180


# Enable Clamuko. Dazuko (/dev/dazuko) must be configured and running.
#ClamukoScanOnLine true
#ClamukoScanOnOpen true
#ClamukoScanOnClose true
#ClamukoScanOnExec true
#ClamukoIncludePath /home
#ClamukoIncludePath /var/spool
#ClamukoExcludePath /tmp
#ClamukoMaxFileSize 1M
#ClamukoScanArchive true

 

Para verificar se esta rodando:

ps ax | grep [c]lamd

Para reiniciar:

/etc/init.d/clamav-daemon restart
 

Repositório de pacotes do ubuntu para atulização e instalação do clamav.

Adicione os seguintes repositorios ao /etc/apt/sources.list
deb http://ppa.launchpad.net/ubuntu-clamav/ppa/ubuntu jaunty main 
deb-src http://ppa.launchpad.net/ubuntu-clamav/ppa/ubuntu jaunty main
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5ADC2037 
apt-get update
apt-get install clamav-daemon 
Para atualizar utilize:
freshclam
 
Comments