Virus-Scanner for NAS-Files

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
AnBad
Posts: 30
Joined: Sat Jan 12, 2019 4:40 pm

Virus-Scanner for NAS-Files

Post by AnBad »

Is there a way to scan on a regular basis all files which are saved at the raspberry and shared (via SyncThing)to the home-network to the Windows Mashines?
User avatar
WarHawk
Posts: 774
Joined: Thu Jul 20, 2017 8:55 am

Re: Virus-Scanner for NAS-Files

Post by WarHawk »

ClamAV would be my guess

https://www.clamav.net/documents/instal ... tributions
https://www.clamav.net/documents/scanning

I just did a

Code: Select all

#apt install clamav
and it has an already compiled binary for dietpi's main OS base (I am however running x86-64 so unsure if ARM is supported)

Code: Select all

 apt install clamav
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  clamav-base clamav-freshclam libclamav9 libltdl7 libmspack0 libtfm1
  logrotate
Suggested packages:
  libclamunrar clamav-docs apparmor libclamunrar9
Recommended packages:
  bsd-mailx | mailx
The following NEW packages will be installed:
  clamav clamav-base clamav-freshclam libclamav9 libltdl7 libmspack0 libtfm1
  logrotate
running

Code: Select all

#clamscan -v -r /
scanned everything on the drive, so I guess you could point it at a directory and have it scan it with a crontab entry
User avatar
Joulinar
Posts: 5688
Joined: Sat Nov 16, 2019 12:49 am

Re: Virus-Scanner for NAS-Files

Post by Joulinar »

yes it is available on ARM as well

Code: Select all

root@DietPiProd:~# apt show clamav
Package: clamav
Version: 0.102.4+dfsg-0+deb10u1
According web site, latest version is 0.103.1 from Feb 2021, while the version on ARM is 0.102.4 created in Jul 2020. However you are able to compile it yourself by following instructions on their web site.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
WarHawk
Posts: 774
Joined: Thu Jul 20, 2017 8:55 am

Re: Virus-Scanner for NAS-Files

Post by WarHawk »

Found the walkthru w/ copy/paste commands

https://www.clamav.net/documents/instal ... tributions
Post Reply