۱۳۹۵ شهریور ۲۷, شنبه

آموزش نصب آنتی شلر maldet

در این آموزش به نصب آنتی شل maldet می پردازیم.
در ابتدا yam را به روزرسانی می کنیم.
yum update -y
حال به سراغ نصب maldet می رویم
ابتدا کد زیر را در ssh وارد نمائید
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz

حال فایل را از حالت فشرده خارج می کنیم
tar xfz maldetect-current.tar.gz

و به کمک دستور زیر به شاخه مورد نظر می رویم
cd maldetect-*

سپس با این دستور نصب می کنیم 
./install.sh

بعد از نصب برای کانفیگ آنتی شل فایل conf.maldet را ویرایش می کنیم
nano /usr/local/maldetect/conf.maldet

لطفا فایل کانفیگ را به شکل زیر تغییر دهید

email_alert=1

email_addr=”info@pangash.ir”

quar_hits=1

quar_clean=1


قبل از تنظیم کردن maldet به حالت real time (بدون مکس) باید پکیج های inotify-tools و epel را نصب نمایید در غیر این صورت در هنگام تنظیم maldet به حالت real time با مشکل رو به رو خواهید شد.
ابتدا با کمک دستور های زیر متناسب با سیستم خود epel را نصب کرده 

RHEL/CentOS 7 64 Bit


## RHEL/CentOS 7 64-Bit ##
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
# rpm -ivh epel-release-7-8.noarch.rpm

RHEL/CentOS 6 32-64 Bit

## RHEL/CentOS 6 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
## RHEL/CentOS 6 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

RHEL/CentOS 5 32-64 Bit

## RHEL/CentOS 5 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm
## RHEL/CentOS 5 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm

RHEL/CentOS 4 32-64 Bit

## RHEL/CentOS 4 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm
# rpm -ivh epel-release-4-10.noarch.rpm
## RHEL/CentOS 4 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm
# rpm -ivh epel-release-4-10.noarch.rpm

سپس inotify-tools را نصب می کنید 
yum --enablerepo=epel -y install inotify-tools

در انتها با دستور زیر maldet را به حالت real time تنظیم می کنیم.

maldet --monotor users



موفق باشید 
(مبین هاست)

هیچ نظری موجود نیست:

ارسال یک نظر