Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel

Patch: freshclam: keep downloaded cdiffs for local distribution

 

 

ClamAV devel RSS feed   Index | Next | Previous | View Threaded


a.kasparas at gmc

Mar 22, 2007, 12:45 AM

Post #1 of 7 (1853 views)
Permalink
Patch: freshclam: keep downloaded cdiffs for local distribution

Hi,

I have over 200 ClamWins installed on my network and before 0.90
version I distributed {main|daily}.cvd files to them from local server,
as described in the FAQ (second option of 11th item in "Updating the
ClamAV Virus Database" in http://www.clamav.net/support/faq/ ).

v. 0.90.1 applies downloaded cdiffs and removes them, so there is no
way to distribute them to local clients. Attached patch allows to keep
them and configure movement to RootDirectory of local web server.

Amount of testing:
Last night freshclam with this patch downloaded daily-289{3-8}.cdiffs
and put where they should be. Local test client updated using these cdiffs.
Movement of main-X.cdiff is not tested.
Paths may not correspond defaults used in the project as I used debian
package sources.
Docs was not read by native|good english speaker.

Opinions and suggestions very wellcome.

--
Aidas Kasparas
IT administrator
GM Consult Group, UAB


a.kasparas at gmc

Mar 22, 2007, 1:11 AM

Post #2 of 7 (1754 views)
Permalink
Re: Patch: freshclam: keep downloaded cdiffs for local distribution [In reply to]

For some reason patch did not went to the list. Copy saved in
http://www.gmc.lt/~kaspar/keep-cdiffs.diff


--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


trog at uncon

Mar 22, 2007, 1:32 AM

Post #3 of 7 (1759 views)
Permalink
Re: Patch: freshclam: keep downloaded cdiffs for local distribution [In reply to]

On Thu, 2007-03-22 at 10:11 +0200, Aidas Kasparas wrote:
> For some reason patch did not went to the list. Copy saved in
> http://www.gmc.lt/~kaspar/keep-cdiffs.diff
>
>

please open a bug on bugzilla, and mark it as an enhancement.

-trog
Attachments: signature.asc (0.18 KB)


tkojm at clamav

Mar 22, 2007, 3:47 AM

Post #4 of 7 (1756 views)
Permalink
Re: Patch: freshclam: keep downloaded cdiffs for local distribution [In reply to]

On Thu, 22 Mar 2007 09:45:29 +0200
Aidas Kasparas <a.kasparas [at] gmc> wrote:

> v. 0.90.1 applies downloaded cdiffs and removes them, so there is no
> way to distribute them to local clients. Attached patch allows to keep
> them and configure movement to RootDirectory of local web server.

There's no need for such a patch, please check the latest version of the FAQ.

--
oo ..... Tomasz Kojm <tkojm [at] clamav>
(\/)\......... http://www.ClamAV.net/gpg/tkojm.gpg
\..........._ 0DCA5A08407D5288279DB43454822DC8985A444B
//\ /\ Thu Mar 22 11:46:55 CET 2007
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


a.kasparas at gmc

Mar 22, 2007, 8:57 PM

Post #5 of 7 (1749 views)
Permalink
Re: Patch: freshclam: keep downloaded cdiffs for local distribution [In reply to]

Tomasz Kojm wrote:
> On Thu, 22 Mar 2007 09:45:29 +0200
> Aidas Kasparas <a.kasparas [at] gmc> wrote:
>
>> v. 0.90.1 applies downloaded cdiffs and removes them, so there is no
>> way to distribute them to local clients. Attached patch allows to keep
>> them and configure movement to RootDirectory of local web server.
>
> There's no need for such a patch, please check the latest version of the FAQ.
>

Which one is the latest?
- speaking about ScriptedUpdates, or
- speaking about caching proxy as the only option?
- or anything else?

--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


luca at clamav

Mar 23, 2007, 4:01 PM

Post #6 of 7 (1747 views)
Permalink
Re: Patch: freshclam: keep downloaded cdiffs for local distribution [In reply to]

Hello Aidas,

> >> v. 0.90.1 applies downloaded cdiffs and removes them, so there is no
> >> way to distribute them to local clients. Attached patch allows to keep
> >> them and configure movement to RootDirectory of local web server.
> >
> > There's no need for such a patch, please check the latest version of the FAQ.
>
> Which one is the latest?

Obviously the one linked on our website:
http://www.clamav.net/support/faq

> - speaking about ScriptedUpdates, or
> - speaking about caching proxy as the only option?
> - or anything else?

The FAQ explains why a patch is not needed:

* I’m running ClamAV on a lot of clients on my local network. Can I serve the cvd files from a local server so that each client doesn’t have to download them from your servers?

* Sure, there are two possible solutions.
* If you want to take advantage of incremental updates, install a proxy server and then configure your freshclam clients to use it (watch for the HTTPProxyServer parameter in man freshclam.conf).
* The second possible solution is to configure a local webserver on one of your machines (say machine1.mylan) and let freshclam download the *.cvd files from http://database.clamav.net to the webserver’s DocumentRoot. Finally, change freshclam.conf on your clients so that it reads:
* DatabaseMirror machine1.mylan
First the database will be downloaded to the local webserver and then the other clients on the network will update their copy of the database from it. For this to work, you have to add ScriptedUpdates off on all of your machines!


Best regards

--
Luca Gibelli (luca _at_ clamav.net) - ClamAV, a GPL anti-virus toolkit
[Tel] +1 706 7054022 [Fax] +1 706 5345792 [IM] nervous/jabber.linux.it
PGP key id 5EFC5582 @ key server || http://www.clamav.net/gpg/luca.gpg
Attachments: signature.asc (0.33 KB)


a.kasparas at gmc

Mar 24, 2007, 12:49 AM

Post #7 of 7 (1746 views)
Permalink
Re: Patch: freshclam: keep downloaded cdiffs for local distribution [In reply to]

Luca Gibelli wrote:
> Hello Aidas,
>
>>>> v. 0.90.1 applies downloaded cdiffs and removes them, so there is no
>>>> way to distribute them to local clients. Attached patch allows to keep
>>>> them and configure movement to RootDirectory of local web server.
>>> There's no need for such a patch, please check the latest version of the FAQ.
>> Which one is the latest?
>
> Obviously the one linked on our website:
> http://www.clamav.net/support/faq

Well, you have this faq, and you have faq in the wiki. They differ. And
I was not sure that options which do not apply anymore was not removed
from wiki.

>
> The FAQ explains why a patch is not needed:
>
> * I’m running ClamAV on a lot of clients on my local network. Can I serve the cvd files from a local server so that each client doesn’t have to download them from your servers?
>
> * Sure, there are two possible solutions.
> * If you want to take advantage of incremental updates, install a proxy server and then configure your freshclam clients to use it (watch for the HTTPProxyServer parameter in man freshclam.conf).
> * The second possible solution is to configure a local webserver on one of your machines (say machine1.mylan) and let freshclam download the *.cvd files from http://database.clamav.net to the webserver’s DocumentRoot. Finally, change freshclam.conf on your clients so that it reads:
> * DatabaseMirror machine1.mylan
> First the database will be downloaded to the local webserver and then the other clients on the network will update their copy of the database from it. For this to work, you have to add ScriptedUpdates off on all of your machines!
>

Again, I was (still am) not confident.

If I put ScriptUpdates off, then freshclam will get udpates the old way
-- by downloading megabyte size file on every update. This is not a good
option because:
- throws away all developer efforts to minimize traffic from signature
mirrors (and I preffer to be a good user);
- do not allow to minimize traffic in my network (of which only some
25% are on "unlimited" LAN, all others are located in other cities,
connected over not so wide pipes, some even on GPRS, where every byte
counts)

I am not happy with cacheing proxy solution because some of my users are
mobile and from time to time they connect their computers from outside
of my network. Some my users are outside of my network allways, but
connected over hardware which is incapable to work as cacheing HTTP
proxy server. So, if I'll go the proxy way, I'll have to open [limited]
HTTP proxy functionality to clients from internet side, which I preffer
to avoid for number of reasons.

Therefore, keeping modus operandi and serving freshclam downloaded
cdiffs doesn't seems so stupid and unnecessary idea to me.

The only problem -- current clamwin [I know, I should complain to them]
configuration fallbacks directly to the old way if it can't find the
very latest cdiff. And now dailies comes so often that chances are no
longer minimal that clients will ask for cdiff at the moment when new
daily is advertised on dns but it is not yet downloaded by freshclam.
Even with allowed 4 times per hour schedule.

--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

ClamAV devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.