[clamav-users] Need help to use a local server for updating

Dennis Peterson dennispe at inetnw.com
Tue Jan 27 21:37:02 UTC 2015


On 1/27/15 2:32 AM, stef stef wrote:
> Thanks for this. So, now I write on my freshclam.conf :PrivateMirror 192.168.0.200
> And no more "Error can't find Name or service not known"
> But, my client don't find .cvd :WARNING: main.cld not found on remote server
>
> Now, how indicate to the client that it have to find files *cvd on a special repository on the server ?
> Thnaks again !
>
With the PrivateMirror option Freshclam looks in the document root of the web 
server for main, daily, and bytecode files (both cvd and cld). You may find 
greater success if you create a virtual host in your web server that has a 
dedicated document root that holds nothing but signatures.

If that is unacceptable then you can go outside the box and change some other 
parameters in freshclam.conf. The example assumes you have created a clamav 
directory under the document root of your web server (e.g. myhost below but use 
your actual host name):

DatabaseMirror myhost

# Comment out what is not needed
#DatabaseCustomURL http://myhost/clamav/main.cld
DatabaseCustomURL http://myhost/clamav/main.cvd

#DatabaseCustomURL http://myhost/clamav/daily.cld
DatabaseCustomURL http://myhost/clamav/daily.cvd

#DatabaseCustomURL http://myhost/clamav/bytecode.cld
DatabaseCustomURL http://myhost/clamav/bytecode.cvd

The files main, daily, and bytecode need to be there and updated by some 
external atomic process that pulls them in from a clamav.net mirror. The 
filename extensions can be cld or cvd. You cannot have a main.cld and a main.cvd 
- same with the other files, it is one or the other but never with both 
extensions. If you are sure you know which you have you can eliminate the 
unneeded custom URLs so freshclam doesn't log an unfound file error.

dp



More information about the clamav-users mailing list