DDOS or bad robot problem
I have a DDOS problem, the attack occurs by sending a series of requests - for a long time,
That takes all of my VPS resources
so its deny the server from serving any users/visitors.
all requests logs in access_log of Apache, and its normal requests
-first time I do Firewall the range of IPs that used to make this attack
-but after a while (2weeks) the attack comes back with new range of IPs (all IPS used were static and some of them are in blacklist)
-I installed modevasive and modsecurity of apache,
but they can not stop this type of attach as well.
please help to solve this problem…
thanks and regards
7 Replies
does it bring your vps down because of the bandwidth or processing time of the request?
what do you have… apache? mysql?
if apache, have you looked into mod_cband?
> what kind of requests? web? or just packets?
its a web requests, ie urls
> does it bring your vps down because of the bandwidth or processing time of the request?
I get my 4 CPUs in 100% usage
and get all allowed Apache MaxSpareServer ( 8 ) works
> what do you have… apache? mysql?
Apache, mysql, and php, all serve Drupal CMS
and about mod_cband, I have not used it, because thinking that its CPU/process problem
and I will left this VPS for 1 website
Thank you very much for help
regards
how many IPs are attacking you at the same time?
if you're facing DDOS where the number of IPs initiating the attack is large, then it's a much harder problem
But as you're using Drupal, it may not be that easy (I'm not familiar with Drupal). Maybe there are Drupal modules (or whatever they're called) to enforce such limitations?
> the excessive CPU consumption comes from too many requests
yes That's exactly what I see using "htop" to monitor CPU and "tail -f acces_log" to see requests
so I will install modthrottle/modcband and hope that help,
but are there a suitable configurations can I set them up to those modules?
> how many IPs are attacking you at the same time?
them were not much ie. the first attack was using the range
"–src-range 196.219.224.1-196.219.224.254"
and I firewall it
and will looking for drupal module can adjustment IP-limitation functions
Thank you very much and regards
it's not only a matter of "installing and hoping it helps" unfortunately
best regards