hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : need help with httpd ddos attack
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

need help with httpd ddos attack

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-20-2010, 09:54 PM
hikaro hikaro is offline
Newbie
 
Join Date: Oct 2007
Location: Malaysia
Posts: 26
*

need help with httpd ddos attack


currently my servers under ddos attack, i check the access log and here are some of the output

HTML Code:
218.172.218.39 - - [20/Jan/2010:16:46:45 -0800] "POST /6xeeyco8ugvk HTTP/1.1" 200 18938 "http://www.MYDOMAIN.COM/6xeeyco8ugvk" "Mozilla/5.0 (Macintosh; U; 68K Mac OS X 10.5; en; rv:1.9.0.7) Gecko/1975101419 Firefox/3.0.7"
114.36.155.22 - - [20/Jan/2010:16:46:45 -0800] "GET /fugp7u60w9p5 HTTP/1.1" 200 13457 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10"
114.36.155.22 - - [20/Jan/2010:16:46:45 -0800] "GET /hgowoh6w03fo HTTP/1.1" 200 13457 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10"
114.36.155.22 - - [20/Jan/2010:16:46:45 -0800] "GET /6ylbxdiy1u3g HTTP/1.1" 200 13457 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042
113.160.130.113 - - [20/Jan/2010:16:46:45 -0800] "GET /vhjd4bfymqn7 HTTP/1.1" 200 13457 "-" "Mozilla/5.0 (X11; U; OpenBSD amd64; en-US; rv:1.8.1) Gecko/20091021 Firefox/2.0"
114.47.171.84 - - [20/Jan/2010:16:46:44 -0800] "POST /q2052v89jwge HTTP/1.1" 200 18853 "http://www.MYDOMAIN.COM/q2052v89jwge" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10"
114.24.144.127 - - [20/Jan/2010:16:46:45 -0800] "POST /zr45cr5htsiu HTTP/1.1" 302 0 "http://www.MYDOMAIN.COM/zr45cr5htsiu" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10"
from my thought, those botnet just try to GET or POST /xxxxxxxxxxxx which is x could be a-z A-Z or 0-9 and total characters are always 12 chars.
how could i prevent this by redirecting permanently to others site or block it ? perhaps using .htaccess method ?
this attack really makes me stress as they have tons of ips, its impossible for me to block one by one.

hope any experts here could help me, thank you in advance

Reply With Quote


Sponsored Links
  #2  
Old 01-20-2010, 11:42 PM
khunj khunj is offline
Web Hosting Guru
 
Join Date: Mar 2009
Location: /home/khunj
Posts: 313
You could use mod_security and drop such requests.

But I'm wondering why did your HTTP server return a 200 OK code ?

__________________
NinTechNet : IT Security, Virus & Hacking Recovery, Monitoring

Reply With Quote
  #3  
Old 01-21-2010, 01:46 AM
hikaro hikaro is offline
Newbie
 
Join Date: Oct 2007
Location: Malaysia
Posts: 26
yea i just realize it goes to members account, its a hash that redirect there. so it wont work to block using mod_security i guess, not sure how to block this now..

Reply With Quote
Sponsored Links
  #4  
Old 01-21-2010, 06:19 AM
LeaTrueman LeaTrueman is offline
Web Hosting Guru
 
Join Date: Oct 2009
Posts: 275
Hello,

Could you please check the number of connections using,

netstat -alpn | grep :80 | awk '{print $5}' | cut-d: -f1 | sort | uniq -c | sort -n

Then configure CSF on your server and set a connection limit in CSF according to the above output.

Reply With Quote
  #5  
Old 01-21-2010, 06:48 AM
inspiron inspiron is offline
Support Facility
 
Join Date: Jun 2009
Posts: 2,318
Check the output of the following command,

netstat -n | grep :80 | grep SYN |wc -l

If the connections are more than 100, then you are having trouble with SYNC attack on the server.

__________________
Support Facility | 24/7 web hosting technical support services
Technical support | Server management | Data migration

Technical Articles

Reply With Quote
  #6  
Old 01-21-2010, 06:59 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,493
Right, check out if you are receiving a SYN attack and modify the "SYN_FLOOD" parameter accordingly. CSF "connection limit" option may not be of any help instead it will block legit requests if set incorrectly.

BTW, as requested earlier by other guys here, what is the output of?

Quote:
netstat -alpn | grep :80 | awk '{print $5}' | cut-d: -f1 | sort | uniq -c | sort -n
Quote:
netstat -n | grep :80 | grep SYN |wc -l

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #7  
Old 01-21-2010, 07:45 AM
khunj khunj is offline
Web Hosting Guru
 
Join Date: Mar 2009
Location: /home/khunj
Posts: 313
I can't be a SYN flood (Apache wouldn't log it).


@hikaro : can't you try to modify your hash ? Say, add one more character at the end. If your script needs to check it, it can truncate it and ignore that extra char. You could then drop those 12 char requests.

__________________
NinTechNet : IT Security, Virus & Hacking Recovery, Monitoring

Reply With Quote
  #8  
Old 01-21-2010, 11:04 AM
hikaro hikaro is offline
Newbie
 
Join Date: Oct 2007
Location: Malaysia
Posts: 26
i manage to block it by installing litespeed, not sure why nginx cant prevent it, perhaps my config is not correct.
Yes it is a httpd ddos, and its still flooding 2 of my servers.

@LeaTrueman: Csf not help much as the floods too much, i tried APF also with dos defelate and not help much. tried install PSAD as well, actually pretty good but too slow when block rapid connection.

@khunj: yes i can do that, will do after i got good configuration or something to block it.
change the hash is not good idea maybe, attacker could just simply follow what i do.

anyway, thanks all for the input. Really need the solution asap..

Reply With Quote
  #9  
Old 01-21-2010, 11:50 AM
madaboutlinux madaboutlinux is offline
Web Hosting Master
 
Join Date: Jul 2009
Posts: 1,493
High density DDOS attacks are not easy to resist with software firewalls like CSF or APF. You will have to look for a Hardware firewall for a long term solution.

__________________
Linux WebHosting Solutions
http://linuxhostingsupport.net/blog/
MSN: madaboutlinux@hotmail.com

Reply With Quote
  #10  
Old 01-21-2010, 06:44 PM
hikaro hikaro is offline
Newbie
 
Join Date: Oct 2007
Location: Malaysia
Posts: 26
yes i know, but i dont think its worth it to buy now, and yes its good for long term solution.
any recommendation about the hardware ? i heard toplayer has a good one.

Reply With Quote
  #11  
Old 01-23-2010, 10:15 AM
Crashus Crashus is offline
Corporate Member
 
Join Date: Apr 2009
Posts: 801
synflood and finwait timeouts can be usually tuned via sysctl, what is your OS?

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this a DDoS attack? pedro2010 Hosting Security and Technology 8 08-05-2009 06:07 PM
major httpd problem, ddos attack? Calibaba Hosting Security and Technology 12 10-03-2007 12:03 PM
What to do during/after a DDoS attack Mitsurugi Hosting Security and Technology 4 07-31-2007 09:51 AM
what is ddos attack?? shadows123 Hosting Security and Technology 1 04-16-2007 03:37 PM
httpd attack r00t pAsSw0rd Hosting Security and Technology 4 09-17-2006 11:16 AM

Related posts from TheWhir.com
Title Type Date Posted
Blogging Site LiveJournal Hit by Ongoing DDoS Attack Web Hosting News 2011-12-08 16:35:38
4Chan Website Back Online After Days of Sustained DDoS Attack Web Hosting News 2011-11-16 15:44:05
Web Host Netregistry Hit by DDoS Attack Web Hosting News 2011-09-26 14:11:33
WHIR TV - Rick from Neustar Discusses DDOS Threats and Defense Blog 2011-09-23 13:52:45
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?