Re: [PATCH] Add IPv6 support to TCP SYN cookies

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Willy Tarreau
Date: Tuesday, February 5, 2008 - 2:20 pm

On Wed, Feb 06, 2008 at 12:52:17AM +0300, Evgeniy Polyakov wrote:

All TCP options negociated during session setup are lost. In fact, some
bits (3) are still reserved for the best known value of the MSS, but
that's all. The principle of SYN cookies is that the server does not
create any session upon the SYN, but builds a sequence number constitued
from a hash and the values it absolutely needs to know when the client
validates the session with an ACK.

I've seen some firewalls acting as SYN gateways which send the options
from the server to the client in the first ACK packet from the server.
This is normally not allowed, but it seems to work with some TCP stacks
(at least for the MSS). One solution would be to extend TCP to officially
support this behaviour and to optionally use it along with SYN cookies,
but there will always be old clients not compatible with the extension.

Regards,
Willy

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add IPv6 support to TCP SYN cookies, Glenn Griffin, (Mon Feb 4, 4:01 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Alan Cox, (Tue Feb 5, 8:42 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Tue Feb 5, 8:55 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Alan Cox, (Tue Feb 5, 9:03 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Alan Cox, (Tue Feb 5, 9:14 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Tue Feb 5, 9:39 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Tue Feb 5, 9:48 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Glenn Griffin, (Tue Feb 5, 11:29 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Ross Vandegrift, (Tue Feb 5, 12:25 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Jan Engelhardt, (Tue Feb 5, 12:57 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Tue Feb 5, 1:02 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Tue Feb 5, 1:11 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Evgeniy Polyakov, (Tue Feb 5, 1:39 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Willy Tarreau, (Tue Feb 5, 1:50 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Tue Feb 5, 1:53 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Alan Cox, (Tue Feb 5, 2:20 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Willy Tarreau, (Tue Feb 5, 2:20 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Ross Vandegrift, (Tue Feb 5, 2:23 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Alan Cox, (Tue Feb 5, 2:25 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Evgeniy Polyakov, (Tue Feb 5, 2:50 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Evgeniy Polyakov, (Tue Feb 5, 2:52 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Alan Cox, (Tue Feb 5, 3:05 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Glenn Griffin, (Tue Feb 5, 6:52 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Wed Feb 6, 12:50 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Wed Feb 6, 1:53 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Evgeniy Polyakov, (Wed Feb 6, 2:13 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Glenn Griffin, (Wed Feb 6, 10:36 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Glenn Griffin, (Wed Feb 6, 11:30 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Wed Feb 6, 11:45 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Glenn Griffin, (Wed Feb 6, 4:03 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Evgeniy Polyakov, (Thu Feb 7, 12:24 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Eric Dumazet, (Thu Feb 7, 2:40 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Ross Vandegrift, (Thu Feb 7, 12:44 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Glenn Griffin, (Thu Feb 7, 10:32 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Glenn Griffin, (Thu Feb 7, 10:49 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Andi Kleen, (Fri Feb 8, 5:07 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, YOSHIFUJI Hideaki / , (Mon Feb 11, 9:07 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Ross Vandegrift, (Tue Feb 12, 1:38 pm)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, YOSHIFUJI Hideaki / , (Wed Feb 13, 12:31 am)
Re: [PATCH] Add IPv6 support to TCP SYN cookies, Glenn Griffin, (Mon Feb 18, 4:45 pm)