netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luca Pesce <pesce.luca@gmail.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: xt_TCPMSS target dropping SYN packets with data: suggested mod
Date: Thu, 16 Jul 2009 09:15:32 +0200	[thread overview]
Message-ID: <873dce860907160015n6a37715x10aae10249ece994@mail.gmail.com> (raw)
In-Reply-To: <4A5DF7DD.2050908@trash.net>

Hi Patrick,
    thanks for your answer.
I completely agree with you about the actual usefulness of such a mod:
in real life SYNs with payload are almost not present, unfortunately I
found one of those cases and I was thinking about this mod.

Apart from the real life scenarios, I do not understand your sentence:

> It doesn't seem like a very useful feature,
> considering all the stacks supporting syn cookies.

Did you mean that syn cookies would drop that SYN with data anyway? Or
that MSS mangling itself would harm syn cookies tecniques?
Thanks for your clarifications.

Luca


On Wed, Jul 15, 2009 at 5:38 PM, Patrick McHardy <kaber@trash.net> wrote:
>
> Luca Pesce wrote:
> > Hi all,
> >    I have a question and a possible patch/mod for target TCPMSS (xt_TCPMSS.c).
> > At the very beginning of function tcpmss_mangle_packet(), the skb containing the
> > TCP SYN packet is checked to see if it is containing data (on a side note, SYN
> > with data is quite unusual...); if so, the packet is drastically dropped.
> > The reason is explained in RR's comment to the code, I am copy/pasting the
> > beginning of this function with the length check at the bottom of this mail.
> > RR says that we cannot change MSS on a packet which is already carrying data
> > (it would be too late): could we relax this check, seeing if the tcp payload is
> > less than the MSS we are about to set?
>
> We probably could change that. I'm wondering though, did you actually
> see this in real life? It doesn't seem like a very useful feature,
> considering all the stacks supporting syn cookies.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-07-16  7:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-09 13:41 xt_TCPMSS target dropping SYN packets with data: suggested mod Luca Pesce
2009-07-15 15:38 ` Patrick McHardy
2009-07-16  7:15   ` Luca Pesce [this message]
2009-07-16 11:17     ` Pascal Hambourg
2009-07-17  7:44       ` Luca Pesce
2009-07-17  9:46         ` Pascal Hambourg

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=873dce860907160015n6a37715x10aae10249ece994@mail.gmail.com \
    --to=pesce.luca@gmail.com \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    /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).