Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clamav freshclam hitting CDN rate limits #30

Closed
maxadamo opened this issue May 1, 2024 · 2 comments
Closed

clamav freshclam hitting CDN rate limits #30

maxadamo opened this issue May 1, 2024 · 2 comments

Comments

@maxadamo
Copy link
Contributor

maxadamo commented May 1, 2024

I am trying to setup this container for the first time.
I got an issue with Nomad, for some reason freshclam failed a few times, and I got banned for 1 hour with the following message:

2024-05-01 11:14:01.024682668  [freshclam]  3. If you have more than 10 hosts on your network attempting to download,
2024-05-01 11:14:01.025815402  [freshclam]     it is recommended that you set up a private mirror on your network using
2024-05-01 11:14:01.025819441  [freshclam]     cvdupdate (https://pypi.org/project/cvdupdate/) to save bandwidth on the
2024-05-01 11:14:01.025820913  [freshclam]     CDN and your own network.

Unfortunately the mirror is hardcoded here:
https://github.com/mikenye/docker-postfix/blob/master/rootfs/etc/cont-init.d/30-clamav-generate-freshclam.conf.sh#L13

Imagine I have multiple images, on multiple environment. I thought it's worth setting up this mirror, but how do I tell Clamav, on this container, to use my mirror?

@maxadamo maxadamo changed the title clamav freshclam hitting CDN rate limits and clamav freshclam hitting CDN rate limits May 1, 2024
@maxadamo
Copy link
Contributor Author

maxadamo commented May 1, 2024

on another note, in my understanding /var/lib/clamav can be shared among container, and it will reduce the number of requests.
I'll share my Terraform/Nomad job once I get it working.

@maxadamo
Copy link
Contributor Author

maxadamo commented May 1, 2024

fixed by #31

@mikenye mikenye closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants