Mailing List Archive

[clamav-users] How force freshclamav to preserve cdiffs OR how generate cdiff since you forced us to use freshclamav on private mirrors
Hello,

We perfectly understood your problems with bandwith and there is no problem here to < hack > freschclam to make our privates mirrors work again.

But please, help us since we do not want to replay 2018- with huge instabilisaties on public infrastructure of Clamav (we really want to preserve our private mirrors) AND we do not find anything about forcing freschclam to preserve cdiff.

So here is the question (Joel : that we post here since we think we are not alone to got this problem) :

How do we force freschclam to preserve cdiffs OR How can we generate cdiff (freshclam compliant) to make our private mirrors work again ?

Thanks you,

Vincent

TW CTO
Re: [clamav-users] How force freshclamav to preserve cdiffs OR how generate cdiff since you forced us to use freshclamav on private mirrors [ In reply to ]
Vincent, all:

I spent my weekend crafting a tool that to download & maintain CVD's and CDIFF's for use in a private mirror.
The tool named "cvdupdate" and is available on:
- PyPI: https://pypi.org/project/cvdupdate/0.1.0/
- Github: https://github.com/micahsnyder/cvdupdate **Disclaimer: This repository may be transferred to a new clamav org on Github in the nearish future.

Requirements: python 3.6 or newer, and an internet connection with DNS enabled.

You can install it with `pip3 install -user cvdupdate`, or `python3 -m pip install -user cvdupdate`

The simplest use case: install it and then run `cvd update`.
The CVDs and CDIFFs will be downloaded to `~/.cvdupdate/database`.
Run it as often as you need, in a cron job for example.
Please see the readme for more usage options/features.

In the future we may add an option to Freshclam to keep CDIFFs so you can use Freshclam for private mirror maintenance instead. But for now, this "cvdupdate" tool should work nicely.
Please ONLY use this tool to maintain private mirrors. DON'T use it for updating your regular clamav database. Use Freshclam instead for that.

I really hope this helps. Any feedback is welcome. You should be able to create Issues on the github repo if you find any problems.

Best regards,
Micah

Micah Snyder
ClamAV Development
Talos
Cisco Systems, Inc.





From: clamav-users <clamav-users-bounces@lists.clamav.net> On Behalf Of Vincent GUESNARD via clamav-users
Sent: Saturday, March 6, 2021 9:46 PM
To: 'clamav-users@lists.clamav.net' <clamav-users@lists.clamav.net>
Cc: Vincent GUESNARD <vincent.guesnard@touchweb.fr>
Subject: [clamav-users] How force freshclamav to preserve cdiffs OR how generate cdiff since you forced us to use freshclamav on private mirrors

Hello,

We perfectly understood your problems with bandwith and there is no problem here to < hack > freschclam to make our privates mirrors work again.

But please, help us since we do not want to replay 2018- with huge instabilisaties on public infrastructure of Clamav (we really want to preserve our private mirrors) AND we do not find anything about forcing freschclam to preserve cdiff.

So here is the question (Joel : that we post here since we think we are not alone to got this problem) :

How do we force freschclam to preserve cdiffs OR How can we generate cdiff (freshclam compliant) to make our private mirrors work again ?

Thanks you,

Vincent

TW CTO
Re: [clamav-users] How force freshclamav to preserve cdiffs OR how generate cdiff since you forced us to use freshclamav on private mirrors [ In reply to ]
Micah,

Thanks you for this one, since it was urgent to do something here, as you may seen we locked 4 hours on Sunday to develop our own script in PHP.

It works in synergy with Freshclam which fit with your needs.

We cannot spend more time this week on this problem, so please consider a grace for our user agent script.

Best regards,

Vincent

De : Micah Snyder (micasnyd) <micasnyd@cisco.com>
Envoy? : lundi 8 mars 2021 06:53
? : ClamAV users ML <clamav-users@lists.clamav.net>
Cc : Vincent GUESNARD <vincent.guesnard@touchweb.fr>
Objet : RE: How force freshclamav to preserve cdiffs OR how generate cdiff since you forced us to use freshclamav on private mirrors

Vincent, all:

I spent my weekend crafting a tool that to download & maintain CVD's and CDIFF's for use in a private mirror.
The tool named "cvdupdate" and is available on:
- PyPI: https://pypi.org/project/cvdupdate/0.1.0/
- Github: https://github.com/micahsnyder/cvdupdate **Disclaimer: This repository may be transferred to a new clamav org on Github in the nearish future.

Requirements: python 3.6 or newer, and an internet connection with DNS enabled.

You can install it with `pip3 install -user cvdupdate`, or `python3 -m pip install -user cvdupdate`

The simplest use case: install it and then run `cvd update`.
The CVDs and CDIFFs will be downloaded to `~/.cvdupdate/database`.
Run it as often as you need, in a cron job for example.
Please see the readme for more usage options/features.

In the future we may add an option to Freshclam to keep CDIFFs so you can use Freshclam for private mirror maintenance instead. But for now, this "cvdupdate" tool should work nicely.
Please ONLY use this tool to maintain private mirrors. DON'T use it for updating your regular clamav database. Use Freshclam instead for that.

I really hope this helps. Any feedback is welcome. You should be able to create Issues on the github repo if you find any problems.

Best regards,
Micah

Micah Snyder
ClamAV Development
Talos
Cisco Systems, Inc.





From: clamav-users <clamav-users-bounces@lists.clamav.net<mailto:clamav-users-bounces@lists.clamav.net>> On Behalf Of Vincent GUESNARD via clamav-users
Sent: Saturday, March 6, 2021 9:46 PM
To: 'clamav-users@lists.clamav.net' <clamav-users@lists.clamav.net<mailto:clamav-users@lists.clamav.net>>
Cc: Vincent GUESNARD <vincent.guesnard@touchweb.fr<mailto:vincent.guesnard@touchweb.fr>>
Subject: [clamav-users] How force freshclamav to preserve cdiffs OR how generate cdiff since you forced us to use freshclamav on private mirrors

Hello,

We perfectly understood your problems with bandwith and there is no problem here to ? hack ? freschclam to make our privates mirrors work again.

But please, help us since we do not want to replay 2018- with huge instabilisaties on public infrastructure of Clamav (we really want to preserve our private mirrors) AND we do not find anything about forcing freschclam to preserve cdiff.

So here is the question (Joel : that we post here since we think we are not alone to got this problem) :

How do we force freschclam to preserve cdiffs OR How can we generate cdiff (freshclam compliant) to make our private mirrors work again ?

Thanks you,

Vincent

TW CTO