yum -y install perl-ExtUtils-MakeMaker perl-Digest-SHA perl-Net-DNS perl-NetAddr-IP perl-Archive-Tar perl-IO-Zlib perl-Digest-SHA perl-Mail-SPF \perl-IP-Country perl-Razor2 perl-Net-Ident perl-IO-Socket-INET6 perl-IO-Socket-SSL perl-Mail-DKIM perl-DBI perl-Encode-Detect perl-HTML-Parser \perl-HTML-Tagset perl-Time-HiRes perl-libwww-perl perl-Sys-Syslog perl-DB_File perl-Razor-Agent pyzor cd /usr/local/directadmin/custombuild ./build set spamd spamassassin ./build spamassassin
cd /usr/local/src/ wget --passive-ftp ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz tar xvfz chkrootkit.tar.gz cd chkrootkit-*/ yum install glibc-static make sense cd .. mv chkrootkit-0.52 /usr/local/chkrootkit ln -s /usr/local/chkrootkit/chkrootkit /usr/local/bin/chkrootkit cd chkrootkit nano -w /etc/cron.daily/chkrootkit.sh #!/bin/bashcd /usr/local/src/chkrootkit-*/ ; ./chkrootkit |grep -v not| /bin/mail -s 'CHROOTKIT Scan Result' api@netway.ezyadmin.com chmod 700 /etc/cron.daily/chkrootkit.sh
cd /usr/local/src wget https://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.6/rkhunter-1.4.6.tar.gz tar -zxvf rkhunter-1.4.6.tar.gz cd rkhunter-* ./installer.sh --layout default --install rkhunter --update rkhunter -c nano -w /etc/rkhunter.conf Search for MAIL-ON-WARNING, then add an email address. api@netway.ezyadmin.com nano -w /etc/cron.daily/rkhunter.sh #!/bin/sh(/usr/local/bin/rkhunter --versioncheck/usr/local/bin/rkhunter --update/usr/local/bin/rkhunter --cronjob --report-warnings-only) | /bin/mail -s 'rkhunter Daily Run (server.systemnetway.com)' api@netway.ezyadmin.com chmod 700 /etc/cron.daily/rkhunter.sh
cd /usr/local/directadmin/custombuild ./build update ./build set clamav yes ./build clamav freshclam -v systemctl restart exim nano -w /etc/freshclam.conf Add row DatabaseCustomURL DatabaseCustomURL http://cdn.malware.expert/malware.expert.ndb DatabaseCustomURL http://cdn.malware.expert/malware.expert.hdb DatabaseCustomURL http://cdn.malware.expert/malware.expert.ldb DatabaseCustomURL http://cdn.malware.expert/malware.expert.fp freshclam -v
Error*WARNING* URLGET set to use LWP but perl module is not installed, reverting to HTTP::Tiny yum install perl-libwww-perl net-tools perl-LWP-Protocol-https -y