Date: Tue, 23 Jun 2009 17:23:19 +0200 From: Fabian Keil <freebsd-listen@fabiankeil.de> To: freebsd-questions@freebsd.org Subject: Re: slowloris, accf_http and POST requests Message-ID: <20090623172319.1343511f@fabiankeil.de> In-Reply-To: <20090623083930.GA90810@ei.bzerk.org> References: <20090622112607.GA80249@ei.bzerk.org> <200906220845.23920.npapke@acm.org> <20090622171516.GA82862@ei.bzerk.org> <20090622223556.GC76275@dan.emsphone.com> <20090623083930.GA90810@ei.bzerk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/qMBlAkfBuA4_ukwJjgudjjk Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Ruben de Groot <mail25@bzerk.org> wrote: > On Mon, Jun 22, 2009 at 05:35:56PM -0500, Dan Nelson typed: > > In the last episode (Jun 22), Ruben de Groot said: > > >=20 > > > My main concern here is if applying the trivial patch I posted would > > > break anything in the http protocol layer. And if not, why isn't the > > > POST method included in the http accept filter in the first place? > >=20 > > The filter wasn't designed to be an anti-DOS tool; it was an > > optimization to save some context switches at the beginning of every > > request. POSTs are >=20 > I know this. But in this particular case, it *works* as an anti-DOS > tool. And a pretty good one too. How did you verify this? accf_http doesn't require a complete request but will also pass the connection to the userland if its buffer is full. If you continue to send headers that will happen eventually and if you're impatient, you simply have to send a bit more headers at the beginning to reach the application faster. Fabian --Sig_/qMBlAkfBuA4_ukwJjgudjjk Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpA820ACgkQBYqIVf93VJ3EXQCglvhlrRjy0P7uBLX4PmkaEoov VkoAnjB9xZBfpKHElLdvI1+2HFv8pVHJ =3Ibq -----END PGP SIGNATURE----- --Sig_/qMBlAkfBuA4_ukwJjgudjjk--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090623172319.1343511f>