LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 07-11-2009, 04:41 PM   #1
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Rep: Reputation: 30
Apache DOS


hi
to prevent DOS on Apache what solution do you suggest ??
thanks for any help or guidance
 
Old 07-11-2009, 08:00 PM   #2
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 539

Rep: Reputation: 39
in the config you can define the max connections.
apache will just ignore requests over the connection limit
 
Old 07-14-2009, 06:04 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD
Posts: 3,755
Blog Entries: 5

Rep: Reputation: Disabled
To be fair, that would represent a DoS situation. If one or more attackers used up max MaxConnections, then legitimate users would be unable to access the httpd service.

@nima0102: DoS attacks by a lone wolf can (normally) be handled pretty easily. DDoS attacks can be difficult to stop. What is your situation, exactly?
 
Old 07-14-2009, 09:00 PM   #4
viGeek
LQ Newbie
 
Registered: Jul 2009
Posts: 28

Rep: Reputation: 17
Make the following modifications to /etc/sysctl.conf

net.ipv4.tcp_synack_retries = 5
net.ipv4.tcp_syn_retries = 5

afterwords sysctl -p
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache / Squid - DoS attack tool in the wild.. farslayer Linux - Security 5 06-21-2009 12:26 AM
apache 2.2.11 UNIX distro has DOS-formatted txt file - WTF ? foampile Linux - General 1 02-13-2009 11:38 AM
Executing Perl under Dos /Creating an executable for DOS alix123 Programming 1 02-15-2006 04:07 AM
apache , MaxClients, and Dos abulmagd Linux - Networking 1 02-02-2006 11:08 AM
Protecting Apache from DOS & Brute Force wwnexc Linux - Software 3 11-01-2005 05:30 AM


All times are GMT -5. The time now is 12:18 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration