ILIAS-7-Install-Tutorial for Ubuntu 20.04

Clamav

ClamAV is a virus scanner.

Install Service

  • apt-get install clamav clamav-freshclam
  • apt-get install clamav-daemon
  • touch /opt/scripts/myclamscan
  • chmod +x  /opt/scripts/myclamscan
  • nano /opt/scripts/myclamscan
  • Paste the following code in:

The code means that infected files will be printed but not deleted or repaired. You will get a mail with the scan result.

1
2
3
4
5
#!/bin/bash
#freshclam
clamscan -r --infected --max-filesize=4000M --max-scansize=4000M --bytecode-timeout=190000 /opt
clamscan -r --infected --max-filesize=4000M --max-scansize=4000M --bytecode-timeout=190000 /var/www/html
exit
  • nano /etc/crontab
  • Paste in this line:
    • #Clamscan
      01 22 * * * root /opt/scripts/myclamscan | mail -s "Virenscan MyServer" wolfgang.huebsch@gmx.de

Create a Whitelist

  • touch /var/lib/clamav/whitelist.ign2
  • nano /var/lib/clamav/whitelist.ign2
  • Example content:

Win.Dropper.Crypto-6825095-0
Win.Dropper.Crypto-6825095-0



No comment has been posted yet.