ClamAV setup
from mat@jlai.lu to selfhosted@lemmy.world on 26 Sep 13:38
https://jlai.lu/post/10889384

Hello everyone, I have some questions and need food for thought about clamAV. First, do you use it and why ? If yes, how are you running it ? I plan to maybe use it for nextcloud (and *arr stack later)

#selfhosted

threaded - newest

Dark_Arc@social.packetloss.gg on 26 Sep 13:44 next collapse

ClamAV is mostly for filtering things on mail servers or uploads to a shared resource like a wiki.

You can also use it as a system virus scanner, but most viruses it detects are Windows viruses.

mat@jlai.lu on 26 Sep 13:46 collapse

So, for nextcloud and automatic torrenting it should not be too bad to protect windows users ?

psmgx@lemmy.world on 26 Sep 14:54 next collapse

Antivirus as a thing is mostly dead, or has morphed into more aggressive endpoint protection. In that sense ClamAV is mostly to scan for known malware in things like mail servers. Make sure people aren’t sending malicious stuff, albeit mostly low hanging fruit.

Nextcloud, wikis, or other similar aggregation sites are also a usecase, but again low hanging fruit.

Set up a cron job and have it run periodically, like once an hour / day / week, whatever. Make sure you set up something that alerts you if/when it hits on something.

macattack@lemmy.world on 26 Sep 14:57 next collapse

I use it. I think it was a hardening recommendation from lynis IIRC.

I definitely experienced a lot more freezing on my laptop after installing it (it’s a memory hog) so I upped my swap and things are back to normal.

catloaf@lemm.ee on 26 Sep 16:14 next collapse

ClamAV is great for exactly one thing: checking the “has antivirus” checkbox on company security audits.

Don’t get me wrong, it’s a real AV product, but there’s no real need for it. You’ll get much better results just being careful about what you run and having a system and network firewall. And not running everything as root.

LunchMoneyThief@links.hackliberty.org on 03 Oct 02:26 collapse

I do use ClamAV. Most users just run some sort of daily scan, but this is remedial and not preventative.

In order to truly harness clamav’s potential, you need to configure clamonacc on-access scanning. It passes items off to clamd with lowered privileges and prevents file access through inotify until its realtime scan has cleared.