netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Willy Tarreau <w@1wt.eu>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [PATCH] add a sysctl to disable TCP simultaneous connection opening
Date: Thu, 09 Oct 2008 05:49:30 +0200	[thread overview]
Message-ID: <87abdetol1.fsf@basil.nowhere.org> (raw)
In-Reply-To: <20081008081109.GA25342@1wt.eu> (Willy Tarreau's message of "Wed, 8 Oct 2008 10:11:09 +0200")

Willy Tarreau <w@1wt.eu> writes:
> As a reminder (especially for those who are not aware of this feature),
> it is possible with TCP to connect two clients together if both send
> crossed SYNs, then SYN-ACKs, then ACKs. This implies that each side
> accepts the sequence number of the other one without any ability to
> check that it matches its SYN. So it's trivial for an attacker to
> prevent one client from establishing a connection from a known port
> to a known address/port by sending it a SYN to that port. The client
> will then send a SYN-ACK and will not accept the expected server's
> SYN-ACK because the SYN SEQ will be different. The server might also
> send an RST on the client's SYN-ACK if it's not firewalled. The
> connection will eventually timeout in a SYN-RECV state or simply be
> aborted.

One reasonable tweak for this would be to use a very aggressive
timeout for simultaneously opened connections that didn't get an ACK
yet.

But to be honest it doesn't seem like a very pressing problem to me either.

-Andi

-- 
ak@linux.intel.com

      parent reply	other threads:[~2008-10-09  3:49 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-08  8:11 [PATCH] add a sysctl to disable TCP simultaneous connection opening Willy Tarreau
     [not found] ` <20081008081109.GA25342-K+wRfnb2/UA@public.gmane.org>
2008-10-08  9:19   ` Michael Kerrisk
2008-10-08 11:54 ` Stephen Hemminger
2008-10-08 12:10   ` Willy Tarreau
2008-10-09 16:21   ` Rémi Denis-Courmont
2008-10-09 21:42     ` Willy Tarreau
2008-10-10  7:59       ` Rémi Denis-Courmont
2008-10-10  8:10         ` Willy Tarreau
2008-10-10  8:44           ` Rémi Denis-Courmont
2008-10-10  8:57             ` Willy Tarreau
2008-10-08 12:16 ` Pavel Emelyanov
2008-10-08 12:26   ` Willy Tarreau
2008-10-08 12:32     ` Pavel Emelyanov
2008-10-08 12:56       ` Willy Tarreau
2008-10-08 15:50 ` Randy Dunlap
2008-10-08 16:04   ` Willy Tarreau
2008-10-08 16:42 ` David Miller
2008-10-08 17:07   ` Willy Tarreau
2008-10-08 18:21     ` David Miller
2008-10-08 18:24       ` Willy Tarreau
2008-10-09  3:49 ` Andi Kleen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87abdetol1.fsf@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=w@1wt.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).