16
ClamAV setup (jlai.lu)
submitted 1 month ago by mat@jlai.lu to c/selfhosted@lemmy.world

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)

top 6 comments
sorted by: hot top controversial new old
[-] Dark_Arc@social.packetloss.gg 14 points 1 month ago

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 10 points 1 month ago

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

[-] psmgx@lemmy.world 10 points 1 month ago

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.

[-] catloaf@lemm.ee 9 points 1 month ago

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.

[-] macattack@lemmy.world 1 points 1 month ago

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.

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.

this post was submitted on 26 Sep 2024
16 points (90.0% liked)

Selfhosted

40183 readers
488 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS