logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can mod_reqtimeout mitigate against slowloris?
Author
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Sun 02 Sep '12 12:08    Post subject: Can mod_reqtimeout mitigate against slowloris? Reply with quote

I find an post there at asf.https://issues.apache.org/bugzilla/show_bug.cgi?id=51103

Does it mean that mod_reqtimeout for apache 2.4 can't stop the slowloris attack if I don't install mod_antiloris module either? Smile
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 03 Sep '12 15:36    Post subject: Reply with quote

Did you read all the answers? It is already in apache 2.4 and in 2.2 since 2.2.20
As far as I understood that it is only about the logging now.
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Wed 05 Sep '12 3:23    Post subject: Reply with quote

I look that post,but it seems inexplicit.I post this to make confirm.

As far as I know.the mod_antiloris is the only to mitigate slowloris.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 05 Sep '12 6:31    Post subject: Reply with quote

Well, let's look at what the module does and how Slowloris works.

Slowloris opens a lot of connections and never completes the request, so the server sits there waiting for it to complete.

mod_reqtimeout doesn't care if a request ever gets complete, after so much time it will just time out. You set it with a base ammount of time to wait before closing the connection. You can set it short because you also tell it to give more time as more of the request comes in (to handle slow clients on slow connections without cutting them off).

So yes, in a way it does guard against slowloris. The one thing it doesn't do is limit the number of connections. So on Windows versions that have that ugly connection limit (all non-server versions), slowloris could still use them all up. But if the timeouts are set low enough, they may not be able to fill up.

mod_reqtimeout also handles the other side of the equation, the response. Like the request side, if the response doesn't complete soon enough, the connection is closed. Same thing applies, as more of the response is sent, more time is allotted for it to finish.

Even with mod_reqtimeout, I wouldn't get rid of mod_antiloris. I use both.
Back to top


Reply to topic   Topic: Can mod_reqtimeout mitigate against slowloris? View previous topic :: View next topic
Post new topic   Forum Index -> Apache