Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 11:56:27 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Site being DDOSed  (Read 1417 times)
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« on: January 04, 2008, 01:09:26 PM »

After a few hours of testing and being desperate, I'm now 100% convinced some jerk is DDOSing our site (www.freelanc3r.org), the access log shows this:

Quote
82.168.40.249 - - [04/Jan/2008:07:34:43 -0800] "GET /main/index.php HTTP/1.1" 404 290 "-" "Jakarta Commons-HttpClient/3.1"
82.168.40.249 - - [04/Jan/2008:07:34:43 -0800] "GET /main/index.php HTTP/1.1" 404 290 "-" "Jakarta Commons-HttpClient/3.1"
82.168.40.249 - - [04/Jan/2008:07:34:43 -0800] "GET /main/index.php HTTP/1.1" 404 290 "-" "Jakarta Commons-HttpClient/3.1"
........ etc

for about 1000x times

In the error log I find the error appearing suggesting me to higher the MaxClients value:
server reached MaxClients setting, consider raising the MaxClients setting

Well the site is completely down (I can access FTP, database, plesk etc) however in PHPMyAdmin on the "Processes" page I clearly see someone is still sending queries to the site.
I highered the MaxClients value to 256 (it used to be 10) which caused him to open even more connections with our site and resulted in our memory usage & cpu usage raising to 100%, and also suddenly the list on the "Processes" page on PHPMyAdmin shows about 10 pages full of processes.

Anyone who knows how to deal with this situation? Our site is offline for about 4 hours so far, any help appreciated.
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Online Online

Posts: 6174



WWW
« Reply #1 on: January 04, 2008, 01:21:23 PM »

Have you contacted support? If you put in a ticket to support, or you have I could pass them along the ticket number and see if we can get an update on the situation for you from support.  Thanks.

Additional:  send in an e-mail to dedicated@lunarpages.com with as much log info as you can, so that we can get an admin to investigate the issue.  Thanks!

Just found your ticket and moved it over to our dedicated desk so our dedicated server admins can have a look.  Thumbs Up
« Last Edit: January 04, 2008, 01:31:58 PM by Mitch » Logged

Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« Reply #2 on: January 04, 2008, 01:46:34 PM »

I've logged his IP and check this WHOIS record:
http://whois.domaintools.com/85.17.42.128

Quote
remarks:        Please send email to "abuse@leaseweb.com" for complaints
remarks:        regarding portscans, DoS attacks and spam.
Head Bashin
Logged
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« Reply #3 on: January 08, 2008, 08:08:02 AM »

By the way is it possible to know which type of CPU the server has?
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Online Online

Posts: 6174



WWW
« Reply #4 on: January 08, 2008, 08:15:05 AM »

That would be something you'd have to ask support about directly. 
Logged

perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 896



« Reply #5 on: January 09, 2008, 07:48:04 AM »

Hello Scream,

Just to add, from the excerpt from the logs you provided it appears that there was only one IP address hitting your pages and you could block it via firewall on your VPS to get rid of the issue.
Logged

Kind Regards,
Vlad Artamonov
geolev
Intergalactic Cowboy
*****
Offline Offline

Posts: 64


WWW
« Reply #6 on: January 12, 2008, 08:28:32 AM »

Actually, I thought our VPS plans included DDOS protection. Is there something we need to do to implement it?

George
Logged

perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 896



« Reply #7 on: January 12, 2008, 11:52:58 PM »

Actually, I thought our VPS plans included DDOS protection. Is there something we need to do to implement it?

George

George,

DDOS protection is not automatic. You need to open a support ticket in order our network engineers could check and adjust the protection system to start blocking some traffic to your VPS. Sometimes it would be much faster to block IPs via firewall on your VPS if the attack is not big. This has a benefit as well: you can always unblock those IPs when it is needed.
Logged

Kind Regards,
Vlad Artamonov
geolev
Intergalactic Cowboy
*****
Offline Offline

Posts: 64


WWW
« Reply #8 on: January 16, 2008, 08:32:37 PM »

Out of curiosity, which log did you get the information out of? I want to monitor my system but I don't know where to look.

Thanks,
George
Logged

perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 896



« Reply #9 on: January 16, 2008, 09:48:24 PM »

Out of curiosity, which log did you get the information out of? I want to monitor my system but I don't know where to look.

Thanks,
George

George, I'm sorry, but what information are you concerned about?
Logged

Kind Regards,
Vlad Artamonov
Scream
Spacescooter Operator
*****
Offline Offline

Posts: 34


« Reply #10 on: January 25, 2008, 06:38:43 AM »

Access logs Razz

/etc/httpd/logs/  and in that directory you should find a whole bunch of log files
Logged
vlad.panainte
SysAdmin
Trekkie
*****
Offline Offline

Posts: 14


« Reply #11 on: April 12, 2008, 05:43:39 PM »

Hello

I believe the following script is useful to check how many connection has an IP and you can block the offended IP:

netstat -ntp | grep -v Proto | grep -v Active  | awk '{print$5}' | awk -F ":" '{R=NF-1; print$R}' | sort | uniq -c | sort -n

I hope this helps
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM