Login Register






How to protect against DDOS on VPS filter_list
Author
Message
How to protect against DDOS on VPS #1
These Denial Of Service attacks can be prevented easily by installing mod_evasive Similar to mo_security it's useful.
Run
Code:
sudo apt-get install libapache2-mod-evasive


Make the log directory

Code:
sudo mkdir /var/log/mod_evasive

Change the permissions
Code:
sudo chown www-data:www-data /var/log/mod_evasive/

Create the config file and configure it

Code:
sudo vi /etc/apache2/mods-available/mod-evasive.conf

Add the following to the file

Code:
<ifmodule mod_evasive20.c>   DOSHashTableSize 3097   DOSPageCount  2   DOSSiteCount  50   DOSPageInterval 1   DOSSiteInterval  1   DOSBlockingPeriod  10   DOSLogDir   /var/log/mod_evasive   DOSEmailNotify  EMAIL@DOMAIN.com   DOSWhitelist   127.0.0.1 </ifmodule>

Fix the email bug

Code:
sudo ln -s /etc/alternatives/mail /bin/mail/

Check to see if it's enabled

Code:
sudo a2enmod mod-evasive

Then restart apache

Code:
service apache2 restart
(This post was last modified: 06-10-2015, 08:53 AM by EquinoxRhyme.)

Reply

RE: How to protect against DDOS on VPS #2
Thanks for sharing! Biggrin

Reply

RE: How to protect against DDOS on VPS #3
(06-10-2015, 04:45 PM)Nath Wrote: Thanks for sharing! Biggrin

Welcome

Reply

RE: How to protect against DDOS on VPS #4
Clean tutorial and effective. Nice!
[img=0x150]http://imgur.com/BD5LxZb.png[/img]
I'm done being an autism.  

Reply

RE: How to protect against DDOS on VPS #5
(08-11-2015, 09:24 AM)Angel Wrote: Clean tutorial and effective. Nice!

Thank you

Reply

RE: How to protect against DDOS on VPS #6
Well mr.coder this was a nice tutorial man
@Ami is my bitch!
@Nath is my sidechick
@Mayo is my sidechick's, sidechick 
@Man is my sidechick's, sidechick's, sidechick 




Reply