Mod_Evasive: Memproteksi Server Apache dari serangan DOS, DDOS, Brute force

Untuk proteksi webserver Apache dari serangan DOS/DDOS/BruteForce dapat kita lakukan dengan mengakifkan module mod_evasive pada server tersebut. Langkah-langkahnya adalah sebagai berikut:

1. Download paket modul mod_evasive_1.10.1.tar.gz (click disini).

2. Install httpd-devel :

# yum -y install httpd-devel

3. Ekstrak file mod_evasive_1.10.1.tar.gz :

# tar xzvf mod_evasive_1.10.1.tar.gz

4. PIndah ke direktori mod_evasive :

# cd mod_evasive

5. Install paket modul mod_evasive :

# /usr/sbin/apxs -i -a -c mod_evasive20.c

6. Buka file /etc/httpd/conf/httpd.conf

# vi /etc/httpd/conf/httpd.conf

dan di bawah perintah LoadModule evasive20_module modules/mod_evasive20.so tulis directive seperti di bawah ini:

<IfModule mod_evasive20.c>

DOSHashTableSize 3097

DOSPageCount 2

DOSSiteCount 50

DOSPageInterval 1

DOSSiteInterval 1

DOSBlockingPeriod 10

DOSWhitelist 127.0.0.*

DOSEmailNotify your@domain.com

</IfModule>

7. Restart Apache:

# /etc/init.d/httpd restart

8. Test :

# chmod +x test.pl

# ./test.pl

Iklan

2 pemikiran pada “Mod_Evasive: Memproteksi Server Apache dari serangan DOS, DDOS, Brute force

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

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