netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: "Rémi Denis-Courmont" <rdenis@simphalempin.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>, netdev@vger.kernel.org
Subject: Re: [PATCH] add a sysctl to disable TCP simultaneous connection opening
Date: Fri, 10 Oct 2008 10:57:57 +0200	[thread overview]
Message-ID: <20081010085757.GA27597@1wt.eu> (raw)
In-Reply-To: <200810101144.06869.rdenis@simphalempin.com>

On Fri, Oct 10, 2008 at 11:44:06AM +0300, Rémi Denis-Courmont wrote:
> On Friday 10 October 2008 11:10:22 ext Willy Tarreau, you wrote:
> > > Duh? If you require a SYN from the outside to the server, before you
> > > allow the server to send either SYN or SYN/ACK, I fail to see the
> > > problem.
> >
> > Requiring the firewall to expect a first SYN to come from the internet is
> > like doing no check at all.
> 
> On ports which are open to the outside you MUST allow inbound SYNs anyway. 
> >From a security perspective, it does not matter whether the server answers 
> with a SYN/ACK as normally or with a SYN-not-ACK as in "simultaneous open".
> 
> On ports which the server is using outbound only (if any), you can expect the 
> server to send a SYN out first. It again does not matter whether the other 
> end answers with a SYN/ACK or a SYN-not-ACK.
> 
> On other ports, a plain dumb stateless blackhole will do.
> 
> > When your server has been rooted, you can 
> > pretty much expect that your guest has no problem sending you a SYN.
> 
> And why would (s)he have problem sending a SYN/ACK? It makes no difference.

It's just that it would be useless. If sending a fake SYN from port 25 to your
server's port 443 allows it to establish connections from port 443 to port 25,
it becomes an easy spam platform. That's just an example. I'm just trying to
explain that supporting simultaneous connect on a firewall prevents you from
precisely controlling the direction of the streams.

Willy


  reply	other threads:[~2008-10-10  8:58 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 [this message]
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

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=20081010085757.GA27597@1wt.eu \
    --to=w@1wt.eu \
    --cc=netdev@vger.kernel.org \
    --cc=rdenis@simphalempin.com \
    --cc=shemminger@vyatta.com \
    /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).