We've been under DDoS attack since Friday. From Friday until around 10 hours ago, I thought it was something else, then ran a netstat command:
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
Which returns almost 200 IPs trying to connect to the server (
http://pastie.org/2410271), the top ones being:
9 86.111.75.8
10 195.245.97.181
10 95.30.133.238
11 178.125.237.157
14 31.43.82.236
14 95.135.19.200
15 178.124.84.155
16 92.112.165.39
18 78.30.228.147
112 2.134.153.23
All of these IPs are in random foreign countries. We get about 30,000 unique visitors per month, 99% in the US, so this must be a DDoS attack.
I have exhausted seemingly all options and I do not know what to do.
-Installed mod_security and mod_evasive.
-Added a rule to IPTABLE.
-Binded mysql to 127.0.0.1
This is my config for mod_evasive:
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 20
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
DOSLogDir /var/log/apache2/mod_evasive
DOSEmailNotify
alex@rentabilities.com
DOSWhitelist 127.0.0.1
I even created a new linode, and changed our DNS. Right away, the attack started happening on the new linode. So that leads me to believe they're attacking our hostname.
I can't think of any reason anyone would want to attack us. Our hostname is rentabilities.com - we're a startup that makes it easy to rent anything (ala ebay for renting), and as far as I know we don't have any enemies
Has anyone experienced DDoS attacks before and found a way to solve it?
We're on a 4GB linode. Maybe resizing would help, but I somehow doubt it.
Any help is truly appreciated!