On Fri, 15 Jul 2011 13:58:43 +0200 Tomasz Kojm <tk...@clamav.net> wrote:
> On Thu, 14 Jul 2011 23:15:20 -0400 James Ralston
> <qralston+ml.clamav-us...@andrew.cmu.edu> wrote:
> 
>> But freshclam falls over fairly badly if you try to use it to update
>> internal clients from a private mirror, even though it has some
>> options to help adjust its behavior for that purpose.
>>
>> Now I'm thinking that if freshclam is going to be a good tool for
>> updating clients behind a private mirror, there really needs to be an
>> option to specify that directly.  Something like:
>>
>>     # If PrivateMirror is set, freshclam assumes that the server it
>>     # names is a private mirror.  In this case, freshclam does not
>>     # attempt to use DNS to determine whether its databases are
>>     # out-of-date, but instead downloads the database files from the
>>     # private mirror every time it runs.  For each database, freshclam
>>     # first attempts to download the CVD file.  If that fails,
>>     # freshclam tries to grab the CLD file.  If the attempt to
>>     # download the CVD file and attempt to download the CLD file both
>>     # fail, then that counts as a single attempt against MaxAttempts.
>>     # Default: disabled.
>>     #PrivateMirror clam-update.example.org
> 
> I see no problem adding such a feature, just open a feature request at
> bugs.clamav.net

The option has been implemented in clamav-devel. This is how it works:

# This option allows you to easily point freshclam to private mirrors.
# If PrivateMirror is set, freshclam does not attempt to use DNS
# to determine whether its databases are out-of-date, instead it will
# use the If-Modified-Since request or directly check the headers of the
# remote database files. For each database, freshclam first attempts
# to download the CLD file. If that fails, it tries to download the
# CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo
# and ScriptedUpdates. It can be used multiple times to provide
# fall-back mirrors.
# Default: disabled
#PrivateMirror mirror1.mynetwork.com
#PrivateMirror mirror2.mynetwork.com

Regards,

-- 
   oo    .....         Tomasz Kojm <tk...@clamav.net>
  (\/)\.........         http://www.ClamAV.net/gpg/tkojm.gpg
     \..........._         0DCA5A08407D5288279DB43454822DC8985A444B
       //\   /\              Mon Sep 12 16:31:07 CEST 2011
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to