hi
I have FreeBSD 7.3 and clamav installed from ports:
I need clamav for the squid proxy using HAVP.
My configuration:
1.) Do I need to create a cron job to update clamav, for example:
Or will it be done automatically from freshclam?
2.) How to create a cron job to scan all files?
I have FreeBSD 7.3 and clamav installed from ports:
Code:
# pkg_info | grep clamav
clamav-0.97 Command line virus scanner written entirely in C
# ps aux | grep clamav
clamav 866 0.0 20.9 113000 106480 ?? Is 3:17PM 0:12.08 /usr/local/sbin/clamd
clamav 871 0.0 0.6 15492 3188 ?? Is 3:17PM 0:02.85 /usr/local/bin/freshclam --daemon -p /var/run/clamav/fresh
I need clamav for the squid proxy using HAVP.
My configuration:
Code:
# cat [B]/usr/local/etc/clamd.conf[/B]
LogFile /var/log/clamav/clamd.log
LogFileUnlock yes
LogFileMaxSize 2M
LogTime yes
LogClean yes
PidFile /var/run/clamav/clamd.pid
TemporaryDirectory /tmp
DatabaseDirectory /var/db/clamav
LocalSocket /var/run/clamav/clamd
FixStaleSocket yes
MaxConnectionQueueLength 30
StreamMaxLength 10M
ReadTimeout 120
IdleTimeout 30
MaxDirectoryRecursion 20
FollowFileSymlinks no
User clamav
AlgorithmicDetection yes
ScanPE yes
ScanELF yes
DetectBrokenExecutables no
ScanOLE2 yes
ScanPDF yes
ScanMail yes
PhishingSignatures yes
PhishingScanURLs yes
PhishingAlwaysBlockSSLMismatch no
PhishingAlwaysBlockCloak no
ScanHTML yes
ScanArchive yes
MaxScanSize 150M
MaxFileSize 30M
MaxRecursion 10
MaxFiles 15000
Code:
# cat [file]/usr/local/etc/freshclam.conf[/file]
DatabaseDirectory /var/db/clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogFileMaxSize 2M
LogTime yes
PidFile /var/run/clamav/freshclam.pid
DatabaseOwner clamav
DNSDatabaseInfo current.cvd.clamav.net
DatabaseMirror db.ch.clamav.net
DatabaseMirror switch.clamav.net
DatabaseMirror clamav.ftp.genotec.ch
DatabaseMirror clamav.datev.de
DatabaseMirror database.clamav.net
DatabaseMirror clamav.gencore.org
DatabaseMirror database.clamav.net
MaxAttempts 5
ScriptedUpdates yes
Checks 2
NotifyClamd /usr/local/etc/clamd.conf
ConnectTimeout 60
ReceiveTimeout 30
1.) Do I need to create a cron job to update clamav, for example:
Code:
0 2,8,14,20 * * * /usr/local/bin/freshclam --quiet -l /var/log/clam-update.log --daemon notify=/usr/local/etc/clamav.conf
Or will it be done automatically from freshclam?
2.) How to create a cron job to scan all files?