Copyright 2021 Simon Quantrill, All Rights Reserved

Adding virus protection to a Linux Server

Tue 23 December 2014

Adding Virus checking to Linux servers is a fairly easy task and is all fairly standard stuff.

here it goes apt-get update && apt-get install clamav clamav-daemon clamav-freshclam clamav-unofficial-sigs clamtk /etc/init.d/clamav-freshclam restart /usr/bin/freshclam

this will install the tools you need to allow virus scanning this install includes the graphic user interface version of the tool but its easier I find to run it from crontab



Add this to crontab

30 01 * * /usr/bin/freshclam —quiet; /usr/bin/clamscan —recursive —no-summary —infected / 2>/dev/null /29 * * /usr/bin/freshclam —quiet; /usr/bin/clamscan —recursive —no-summary —infected —remove /var/www/ 2>/dev/null ` -

on the top