Install Mod_evasive On CentOS

Install Mod_Evasive On CentOS

ติดตั้ง Mod_Evasive เพื่อป้องกันการโจมตีแบบ DDOS

wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz

tar xvfz mod_evasive_1.10.1.tar.gz

cd mod_evasive

apxs -cia mod_evasive20.c

mkdir /var/log/httpd/mod_evasive

chmod 640 /var/log/httpd/mod_evasive/

vi /etc/httpd/conf/httpd.conf

LoadModule evasive20_module   /usr/lib/httpd/modules/mod_evasive20.so

<IfModule mod_evasive20.c>
DOSHashTableSize    3097
DOSPageCount        2
DOSSiteCount        40
DOSPageInterval     1
DOSSiteInterval     1
DOSBlockingPeriod   3600
DOSLogDir           /var/log/httpd/mod_evasive/
DOSWhitelist   127.0.0.1
</IfModule>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.