Welcome! Log In Create A New Profile

Advanced

Re: DoS attack in the wild

June 20, 2009 08:41AM
On Sat, Jun 20, 2009 at 03:33:40PM +0300, luben karavelov wrote:

> J??r??me Loyet wrote:
> >this attack works great on apache but I was unable, yet, to make it
> >works on nginx (0.8.3).
> >
>
> On nginx it exhuases the available sockets. My setup is nginx-0.7.58
> with cofig: :
>
> worker_processes 4;
> worker_rlimit_nofile 5000;
> events {
> worker_connections 2048;
> use epoll;
> }
>
>
> and without the fixes I could DoS the server with:
> ./slowloris.pl -dns photomoment.bg -timeout 30 -num 10000 -tcpto 5
>
> exhausts available sockets and the server stops replying to new requests.

5000 and 2048 are too small values in modern Internet, I use usually
about 200,000.

You need to increase
1) OS sockets limit,
2) OS network memory limits (buffers, etc.)
3) OS files limit,
4) OS per process files limit (worker_rlimit_nofile),
5) and finally, nginx's worker_connections.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

DoS attack in the wild

luben karavelov June 19, 2009 02:45PM

Re: DoS attack in the wild

luben karavelov June 19, 2009 03:09PM

Re: DoS attack in the wild

Cliff Wells June 19, 2009 03:31PM

Re: DoS attack in the wild

Cliff Wells June 19, 2009 03:22PM

Re: DoS attack in the wild

Neelesh Gurjar June 19, 2009 04:10PM

Re: DoS attack in the wild

Jérôme Loyet June 19, 2009 04:19PM

Re: DoS attack in the wild

luben karavelov June 20, 2009 08:33AM

Re: DoS attack in the wild

Igor Sysoev June 20, 2009 08:41AM

Re: DoS attack in the wild

Igor Sysoev June 20, 2009 08:50AM

Re: DoS attack in the wild

E. Johnson June 19, 2009 04:24PM

Re: DoS attack in the wild

Cliff Wells June 19, 2009 04:52PM

Re: DoS attack in the wild

Igor Sysoev June 20, 2009 04:59AM

Re: DoS attack in the wild

Cliff Wells June 19, 2009 03:39PM

Re: DoS attack in the wild

w3wsrmn June 19, 2009 08:09PM

Re: DoS attack in the wild

Igor Sysoev June 20, 2009 04:54AM

Re: DoS attack in the wild

Weibin Yao June 22, 2009 06:51AM

Re: DoS attack in the wild

Istv June 22, 2009 08:40AM

Re: DoS attack in the wild

Weibin Yao June 22, 2009 10:34PM

Re: DoS attack in the wild

Istv June 23, 2009 03:46AM

Re: DoS attack in the wild

Weibin Yao June 23, 2009 04:09AM

Re: DoS attack in the wild

Istv June 23, 2009 05:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 319
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready