Hello everyone.
Please try to help me before my client helps him self with a sharp knife.
I'm on a linode512. Having Apache/PHP/MySql/Wordpress site with an ftp server (turned off) and postfix/dovecot combination.
Please look at what is going on with my server graphs the last few hours:
As you can see I've even tried to restart the server after restarting httpd & mysqld (yeah I know it's stupid, but I had a client yelling over the phone so I was looking for a quick fix)... obviously it didn't help.
Code:
netstat -an | grep :80
gave me some unusual number of open connections, so I became suspicious of a DOS or DDOS attack and started googling. I found the following command which should give me the number of connections per IP address:
Code:
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nThis is the output:
Code:
1 146.255.65.245
1 213.149.150.251
1 31.11.72.38
1 31.11.73.110
1 31.11.84.175
1 46.217.69.242
1 46.217.94.33
1 77.199.39.207
1 77.28.13.29
1 77.29.134.127
1 77.29.150.201
1 77.29.201.128
1 77.29.5.110
1 79.125.129.119
1 79.125.139.83
1 79.125.148.229
1 79.125.169.178
1 79.125.179.183
1 79.125.193.7
1 79.126.132.200
1 79.126.193.104
1 79.126.243.230
1 79.126.251.213
1 89.205.7.113
1 89.205.7.72
1 92.53.0.195
1 92.53.15.71
1 95.156.52.17
1 95.86.52.159
2 195.26.144.127
2 77.28.12.63
2 77.28.156.97
2 77.28.28.247
2 77.29.173.157
2 77.29.79.7
2 78.157.2.114
2 78.157.27.0
2 79.125.197.222
2 79.125.234.208
2 79.126.208.111
2 79.126.214.155
2 79.126.217.97
2 89.185.195.212
2 89.185.221.229
2 89.205.14.161
3 151.67.110.91
3 31.11.79.4
3 46.217.116.213
3 46.217.3.153
3 62.162.205.250
3 77.28.35.111
3 77.28.98.134
3 77.29.216.94
3 77.29.51.90
3 89.205.42.167
3 92.55.104.182
4 46.217.12.13
4 77.28.149.35
4 79.141.120.118
4 87.4.65.169
4 92.53.62.25
5 77.28.114.120
5 77.29.208.192
5 79.141.125.231
6 78.157.17.3
6 79.125.198.179
15 0.0.0.0
1816
Would you look at that LAST row. What is that number ?!? Can I find out what that is??
Now, I know I can optimize the apache & mysql configuration up until a certain point. This is my current configuration which worked great up until what happend few hours ago:
Code:
thread_cache_size = 4
tmp_table_size = 32M
max_heap_table_size = 32M
max_write_lock_count = 1
query_cache_type = 1
query_cache_limit = 1M
query_cache_size = 16M
Code:
<IfModule prefork.c>
StartServers 3
MinSpareServers 3
MaxSpareServers 8
ServerLimit 12
MaxClients 12
MaxRequestsPerChild 1000
</IfModule>
I'm also logging slow MySQL queries for an hour now, and the file is still empty...
So at this point I really don't know what to do. And what are those 1816 which are apparently coming from nowhere...
Please..... help..............