All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geliang Tang <geliangtang at gmail.com>
To: mptcp at lists.01.org
Subject: [MPTCP] Re: [MPTCP][PATCH mptcp-next 1/3] mptcp: add add_addr_echo sysctl
Date: Fri, 25 Sep 2020 13:25:11 +0800	[thread overview]
Message-ID: <CA+WQbwtFDBAQEuYU9dQMrc0UWiq+DoAe2uaHTemOsdR_dqc1uw@mail.gmail.com> (raw)
In-Reply-To: d6f2c576a003194210726ff820df728640340bb8.camel@redhat.com

[-- Attachment #1: Type: text/plain, Size: 1403 bytes --]

Hi Paolo,

Paolo Abeni <pabeni(a)redhat.com> 于2020年9月23日周三 下午6:26写道:
>
> On Tue, 2020-09-22 at 16:12 +0800, Geliang Tang wrote:
> > This patch added a new sysctl, named add_addr_echo, to control the
> > ADD_ADDR
> > echo ability.
> >
> > Signed-off-by: Geliang Tang <geliangtang(a)gmail.com>
>
> If I read the series correctly, this sysctl is only needed for self-
> test's sake, right? can you instead drop the add_addr packet with some
> netfilter rules ? possibly matching on TCP PROTO, TCP len == 0 and the
> appropriate packet len should be sufficient.

I still have not found the rules that can drop ADD_ADDR packets. But I found
something useful like this:

# iptables -A OUTPUT -p tcp --tcp-option 30 -m length --length 0:100 -j DROP

"tcp-option 30" can match MPTCP packets, and "length" can match the IP
packet's total length. But they are not sufficient.

Could you please give me some suggestions about this? Can I write a new
netfiler module to do this? Is this acceptable?

Thanks.

-Geliang

>
> Disabling the echo would likely violate the RFC, I think that exposing
> this ability to user-space would be too much even for unix
> philosophy[1] ;)
>
> Cheers,
>
> Paolo
>
> [1] http://www.anvari.org/fortune/Miscellaneous_Collections/412232_the-unix-philosophy-basically-involves-giving-you-enough-rope-to-hang-yourself.html
>

             reply	other threads:[~2020-09-25  5:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25  5:25 Geliang Tang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-27 10:36 [MPTCP] Re: [MPTCP][PATCH mptcp-next 1/3] mptcp: add add_addr_echo sysctl Geliang Tang
2020-09-25 20:45 Matthieu Baerts
2020-09-25  8:55 Paolo Abeni
2020-09-23 10:26 Paolo Abeni

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=CA+WQbwtFDBAQEuYU9dQMrc0UWiq+DoAe2uaHTemOsdR_dqc1uw@mail.gmail.com \
    --to=unknown@example.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.