Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-15-2006, 09:11 AM
|
#1
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Rep:
|
Apache is flooded with hundreds of readings for vhost
Apache is flooded with hundreds of readings for vhost
When I goto the apache server status page it shows hundreds of:
13-2 22464 0/177/5517 R 6.63 3 0 0.0 4.32 53.65 ? ? ..reading..
Appearently a script is half connecting to apache and then leaving the connection open and connecting again until Max Clients is hit
I have Timeout set to 5 and keep alive off. I also have mod dos evasive installed.
How can I get apache to drop the connections that are "reading"?
|
|
|
02-16-2006, 10:51 PM
|
#2
|
Member
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549
Rep:
|
check with netstat if the requests all come from the same ip. if so, then firewall it.
|
|
|
02-17-2006, 02:35 AM
|
#3
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Original Poster
Rep:
|
They are from hundreds of different IPs
|
|
|
02-17-2006, 12:37 PM
|
#4
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
Quote:
Originally Posted by abefroman
They are from hundreds of different IPs
|
That would be called a DDoS (Distributed Denial of Service) attack. This board, and The Internet in general, are filled with info on how to tweak Apache (and Linux in general) to survive DDoS.
|
|
|
02-17-2006, 03:06 PM
|
#5
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Original Poster
Rep:
|
Quote:
Originally Posted by Darin
That would be called a DDoS (Distributed Denial of Service) attack. This board, and The Internet in general, are filled with info on how to tweak Apache (and Linux in general) to survive DDoS.
|
I have made all those tweaks, how can I stop this one level above the server?
|
|
|
02-17-2006, 04:18 PM
|
#6
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
|
|
|
02-20-2006, 04:05 AM
|
#7
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
If the packets arrive on your network/webserver, even if you refuse all of them or rate-limit them with the most powerfull firewall on earth, they still arrive.. and if the attackers have a bigger bandwidth than you, it will overflow your bandwidth.
And in your case, its not even spoofing or icmp flooding, no, its just legitimate web traffic.
As said in another thread, only the ISP can do something about it.
|
|
|
All times are GMT -5. The time now is 06:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|