Solved

Dos attackes on apache

Posted on 2002-06-28
9
335 Views
Last Modified: 2010-03-04
how to prevent DoS attackes on my apache web server (1.3.26)
these attackes are on a particular site (100 get request per second). due to this server server httpd process exceed their limit .
I also used tcp interest on cisco router but these attacks also exceed the tcp intercept blocking limit.
any help will be highly appreciated..
thanks
0
Comment
Question by:shahid1
  • 4
  • 3
9 Comments
 
LVL 15

Expert Comment

by:samri
Comment Utility
Shahid,

You have about 10 pending questions.  Please revisit the Q, and feedback the members that is/are already spent their quality time to help you :)

Back to the question about Dos Attach on apache;

To my knowledge, Apache there is no mechanism in Apache to detect such activity.  However, if we look at the nature of DoS attack, we might be able to hack apache a bit to at lest minimise the chances of getting the daemon to suck up system resources.

Off-hand, all I can think off is getting a firewall in between;  Might not be a good choice since it would involves time and/or money.

Another option, which I would think is possible is to control number of connection from a specific client/IP address.

This can be done using mod_throttle

http://www.snert.com/Software/mod_throttle/

I personally haven't tried to implement mod_throttle yet, that is why I cannot guarantee that I would work as expected.

Some readings on DoS attack on Apache:
http://www.linuxplanet.com/linuxplanet/tutorials/1527/1/

I kinda like this one from SANs:  You might need to register (free) to view the page;  But it is good.

http://rr.sans.org/sysadmin/apache.php

--- some excerpts from the site.
Security Related Directives - Buffer Overflow and HTTP DoS

  Covered in this section are several of the server security related directives and their purpose. There are
  many directives available with Apache. They can be found on the Apache HTTP Server Project Web Site
  http://httpd.apache.org/docs/mod/directives.html.

  Using following directives will help reduce the risk of DoS and Buffer Overflow attacks.

  Denial of Service attack (DoS).

  LimitRequestbody: Numeric parameter controlling maximum HTTP request body size.

  LimitRequestFields: Numeric parameter that limits allowable number of request headers.

  KeepAlive: Setting this parameter to off will disable a constant connection.

  KeepAliveTimeout: Limits the time Apache will wait for additional requests.

  Buffer Overflow attack.

  LimitRequestFieldSize: Limits the size of each request header.

  LimitRequestLine: Limits the length of each request line.
0
 

Author Comment

by:shahid1
Comment Utility
I am talking about yaha.E worm who generate actual and ligitimate http request for a particular web-site from infected computer.
and the server hosted that site goes down within no time.
these http requests go on increasing as worm spreads through out the world.

regd...shahids
0
 
LVL 15

Expert Comment

by:samri
Comment Utility
shahid1,

Thanks for the information.  I might be able to dig some threads here and there.

However, most article that I came across did mention that it is quite hard to control such attack, since it is done at OS layer.  Most sites would implement firewall, that has a predefined attack pattern.  I would suspect that yaha.E worm would need to flood an Apache at a high volume and high frequecy of request, and only the deamon would eventuall went down.  Most (or Some) firewall would trigger, and deny the source address is such pattern is detected.

The proposed solution- mod_throlle should be able to control the # of request, or interval between request.  This would at least slow down the attact, and let the apache daemon from taking too much resources, and bring the whole machine down.

cheers.
0
 

Author Comment

by:shahid1
Comment Utility
I am talking about yaha.E worm who generate actual and ligitimate http request for a particular web-site from infected computer.
and the server hosted that site goes down within no time.
these http requests go on increasing as worm spreads through out the world.

regd...shahids
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 15

Accepted Solution

by:
samri earned 200 total points
Comment Utility
shahid,

accidental repeat or intentional repeats?

cheers
0
 

Author Comment

by:shahid1
Comment Utility
samri,
sorry, it was accidental.

shahids
0
 
LVL 15

Expert Comment

by:periwinkle
Comment Utility
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area with the following recommendation for this question:

Answered by samri

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

periwinkle
EE Cleanup Volunteer
0
 

Author Comment

by:shahid1
Comment Utility
np
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now