[clamav-users] Script PHP to refresh private miror in sinergy with freshclam

Vincent GUESNARD vincent.guesnard at touchweb.fr
Mon Mar 8 05:55:59 UTC 2021


You’re right on the bandwith point of view, not sure about CPU consommuning point of view. I’ve edited it for 2000. Does it sounds good to you ?

I’ve tested the script on PHP 5.6 to PHP 8.0 (and edited dependancies as well) – NB : not on all uses cases, maybe this should be adjust in the futur.

Have a nice week,

Vincent

De : Joel Esler (jesler) <jesler at cisco.com>
Envoyé : lundi 8 mars 2021 00:39
À : ClamAV users ML <clamav-users at lists.clamav.net>
Cc : Vincent GUESNARD <vincent.guesnard at touchweb.fr>
Objet : Re: [clamav-users] Script PHP to refresh private miror in sinergy with freshclam

Also this:

“ SERIOUSLY ? MORE THAN 100 DAYS WITHOUT UPDATE ? IT WILL COST LESS MONEY ON BANDWITH AT CLAMAV IF YOU DOWNLOAD THE FULL NEW DATABASE";”

Is incorrect.  It costs less to download 100 cdiffs than it does to download the full daily.
Sent from my  iPhone


On Mar 7, 2021, at 18:07, Vincent GUESNARD via clamav-users <clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>> wrote:

My last edit for today just to magnify cli return.

De : clamav-users <clamav-users-bounces at lists.clamav.net<mailto:clamav-users-bounces at lists.clamav.net>> De la part de Vincent GUESNARD via clamav-users
Envoyé : dimanche 7 mars 2021 23:53
À : 'ClamAV users ML' <clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>>
Cc : Vincent GUESNARD <vincent.guesnard at touchweb.fr<mailto:vincent.guesnard at touchweb.fr>>
Objet : Re: [clamav-users] Script PHP to refresh private miror in sinergy with freshclam

Here is the user-agent edited Joel for « PHP-ClamAV-Private-Miror-Refresh/<version of the script>»

Does it sounds good to you ?

De : clamav-users <clamav-users-bounces at lists.clamav.net<mailto:clamav-users-bounces at lists.clamav.net>> De la part de Vincent GUESNARD via clamav-users
Envoyé : dimanche 7 mars 2021 23:27
À : 'ClamAV users ML' <clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>>
Cc : Vincent GUESNARD <vincent.guesnard at touchweb.fr<mailto:vincent.guesnard at touchweb.fr>>
Objet : [clamav-users] Script PHP to refresh private miror in sinergy with freshclam

Hello,

In case you need it, here is our workarround (bandwith friendly and freshclam compliant).

Feel free to contact us if you need help.

Vincent

De : clamav-users <clamav-users-bounces at lists.clamav.net<mailto:clamav-users-bounces at lists.clamav.net>> De la part de Vincent GUESNARD via clamav-users
Envoyé : dimanche 7 mars 2021 06:46
À : 'clamav-users at lists.clamav.net' <clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>>
Cc : Vincent GUESNARD <vincent.guesnard at touchweb.fr<mailto:vincent.guesnard at touchweb.fr>>
Objet : [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
<clamav-refresh.php>

_______________________________________________

clamav-users mailing list
clamav-users at lists.clamav.net<mailto:clamav-users at lists.clamav.net>
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20210308/975f50b0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clamav-refresh.php
Type: application/octet-stream
Size: 13504 bytes
Desc: clamav-refresh.php
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20210308/975f50b0/attachment.obj>


More information about the clamav-users mailing list