Install Maldetect
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xvf maldetect-current.tar.gz
ls -l | grep maldetect
cd maldetect-* ./install.sh
Edit the config file to set options like email alerts.
Vi /usr/local/maldetect/conf.maldet
Sample config file looks like this:
[ EMAIL ALERTS ]
#The default email alert toggle
[0 = disabled, 1 = enabled]
email_alert=1
#The subject line for email alerts
email_subj="maldet alert from server_name"
The destination addresses for email alerts
[ values are comma (,) spaced ]
email_addr="alerts@yourdomain.com"
Install ClamAV, you will need to install the Epel repo first.
yum install epel-release –y
yum install clamav clamd
Set Clamd to start automatically on reboot.
chkconfig clamd on service clamd start
apt-get install clamav apt-get install clamav- daemon apt-get install clamav-freshclam
0 Comments
Please log in to leave a comment.