[Résolu] clamav : Can't download *.cvd

Started by Darkopnsense, December 30, 2019, 05:54:37 PM

Previous topic - Next topic
maybe if you were so kind you would write a small tourtial as you started the anti-virus on your machine. As simple as for an amateur :)

February 01, 2020, 11:45:32 PM #31 Last Edit: February 12, 2020, 08:50:04 PM by Darkopnsense
Hi,

oops disappeared

Sincerely, (French mother tongue)

Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

58/5000
Hello ,
I understand that I should download the signatures in the tmp directory?

hi,

no, result for command #ls

Sincerely, (French mother tongue)
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

ok I started clamav, :) now I have a problem setting clamav protection. doing a test on eicar does not display the warning page from clamav.



przy próbie pobrania pliku korzystając z http nie pobiera , czyli ochrona działa ale nie wyświetla strony ostrzegawczej natomiast prz https nie działa

when you try to download a file using http it does not download, i.e. protection works but does not display a warning page while https does not work

Hi,

I saw that you had to try. I unlocked the download * .CVD for you.
I hope you understood where you screwed up in your thinking.

Already, you need a very good basis for the structure of what you want to use. With efforts, and relevant leads and with the desire to understand, for example consult the product on the basis https://github.com/search?q=clamav

The more details there are of what we did in the call for help, the more the answer will be relevant.

We are all lacking in knowledge, and we are dependent on a mentor who is willing to respond in profane language.

Sincerely, (French mother tongue)
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

HI all,

I have the same problem on a fresh installation of Opnsense 20

how can i resolve ?

i follow this steps but some procedures are missing.

what are the steps after download (with wget) main cvd ?

Hi,
You run the daemon.
Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

I followed all the steps, from the uninstallation of clamav, to the deletion of the databases and the reinstallation of the package, but the creation of the main.cvd continues to fail and it never manages to download it all.
I tried to copy the clam av db that I have on the opnsense virtual machine and it seemed to be going, but today I have the service out of use again I don't know what to do.


Hi,
Publish the entire step-by-step procedure you enter in console mode.
We'll see where it gets stuck.
Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

February 11, 2020, 10:02:45 PM #42 Last Edit: February 11, 2020, 10:47:43 PM by AlexV
Disable clamd and freshclam, then via CLI:

pkg remove os-clamav clamav
rm -rf /var/db/clamav
pkg install os-clamav
pkg install wget

wget   main.cvd
mv main.db /var/db/clamav
chown clamav:clamav main.cvd
chmod 640 main.cvd (the same of daily.cvd)
freshclam

with these step working but the night when run the cron script for freshclam the db will corrupted.




root@OPNsense:~ # freshclam
Tue Feb 11 21:58:29 2020 -> ClamAV update process started at Tue Feb 11 21:58:29 2020
Tue Feb 11 21:58:30 2020 -> ^Your ClamAV installation is OUTDATED!
Tue Feb 11 21:58:30 2020 -> ^Local version: 0.102.1 Recommended version: 0.102.2
Tue Feb 11 21:58:30 2020 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Tue Feb 11 21:58:30 2020 -> daily.cvd database is up to date (version: 25720, sigs: 2181998, f-level: 63, builder: raynman)
Tue Feb 11 21:58:30 2020 -> main database available for download (remote version: 59)
Tue Feb 11 21:59:30 2020 -> ^Download failed (28) Tue Feb 11 21:59:30 2020 -> ^ Message: Timeout was reached
Tue Feb 11 21:59:30 2020 -> ^getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Feb 11 21:59:30 2020 -> Trying again in 5 secs...
Tue Feb 11 21:59:35 2020 -> main database available for download (remote version: 59)
Tue Feb 11 22:00:35 2020 -> ^Download failed (28) Tue Feb 11 22:00:35 2020 -> ^ Message: Timeout was reached
Tue Feb 11 22:00:35 2020 -> ^getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Feb 11 22:00:35 2020 -> Trying again in 5 secs...
Tue Feb 11 22:00:41 2020 -> main database available for download (remote version: 59)
Tue Feb 11 22:01:41 2020 -> !Download failed (28) Tue Feb 11 22:01:41 2020 -> ! Message: Timeout was reached
Tue Feb 11 22:01:41 2020 -> !getcvd: Can't download main.cvd from https://database.clamav.net/main.cvd
Tue Feb 11 22:01:41 2020 -> Giving up on https://database.clamav.net...
Tue Feb 11 22:01:41 2020 -> !Update failed for database: main
Tue Feb 11 22:01:41 2020 -> ^fc_update_databases: fc_update_database failed: Connection failed (5)
Tue Feb 11 22:01:41 2020 -> !Database update process failed: Connection failed (5)
Tue Feb 11 22:01:41 2020 -> !Update failed.

February 12, 2020, 12:46:46 PM #43 Last Edit: February 12, 2020, 08:51:02 PM by Darkopnsense
Hi,

oops disappeared

Cordialy, (French mother tongue)
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).