Re: [v6ops] [IPv6] Why folks are blocking IPv6 extension headers? (Episode 1000 and counting) (Linux DoS)

David Farmer <farmer@umn.edu> Mon, 22 May 2023 15:31 UTC

Return-Path: <farmer@umn.edu>
X-Original-To: v6ops@ietfa.amsl.com
Delivered-To: v6ops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CAFECC159A1D for <v6ops@ietfa.amsl.com>; Mon, 22 May 2023 08:31:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.097
X-Spam-Level:
X-Spam-Status: No, score=-7.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=umn.edu
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GDZomJyWRb2F for <v6ops@ietfa.amsl.com>; Mon, 22 May 2023 08:31:24 -0700 (PDT)
Received: from mta-p7.oit.umn.edu (mta-p7.oit.umn.edu [134.84.196.207]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 414E1C151087 for <v6ops@ietf.org>; Mon, 22 May 2023 08:31:23 -0700 (PDT)
Received: from localhost (unknown [127.0.0.1]) by mta-p7.oit.umn.edu (Postfix) with ESMTP id 4QQ1d65f0Tz9vBsV for <v6ops@ietf.org>; Mon, 22 May 2023 15:31:22 +0000 (UTC)
X-Virus-Scanned: amavisd-new at umn.edu
Received: from mta-p7.oit.umn.edu ([127.0.0.1]) by localhost (mta-p7.oit.umn.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1CRHW264auxe for <v6ops@ietf.org>; Mon, 22 May 2023 10:31:22 -0500 (CDT)
Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mta-p7.oit.umn.edu (Postfix) with ESMTPS id 4QQ1d626NWz9vBs1 for <v6ops@ietf.org>; Mon, 22 May 2023 10:31:22 -0500 (CDT)
DMARC-Filter: OpenDMARC Filter v1.3.2 mta-p7.oit.umn.edu 4QQ1d626NWz9vBs1
DKIM-Filter: OpenDKIM Filter v2.11.0 mta-p7.oit.umn.edu 4QQ1d626NWz9vBs1
Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-51392d645d5so1941703a12.1 for <v6ops@ietf.org>; Mon, 22 May 2023 08:31:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umn.edu; s=google; t=1684769480; x=1687361480; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7ihapGl5mxaPDKg0xgm+orQIj4wSeoZvOQ4fKGz4lOI=; b=amshsb/K2UfJ8ZfrohQAu3vytO62Z8R6EDTx2beDnQ5YxqZEvxSTOEVQ8t7SHZ6Ohe goh221Zs77OAeJ4H+VVX9DupwE9Lb0ON59OM4U1+xBfpFvjb5jwNxkjitgibFVUzQy5s oRZGYSD1sLOusQfw74XVhOWCineeAqwGu8naH7D9Ftp5RiZOXK7uK2uX2cLIeB17ctSi OskE+Asf373Yx3BXb3fXjHB/RWd9Y12wvbOyUVCPkfSo1U+uFSdINn1wUj4VN+rIH+2s nr0qrjfi2NsyCsfCXSERYvYG7BAewK/SFElmcsZhmmd5onko6NG4iTnyPXgHusN9x5tn VU8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684769480; x=1687361480; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7ihapGl5mxaPDKg0xgm+orQIj4wSeoZvOQ4fKGz4lOI=; b=VdKVu8IAuDuzIQSet0KdygobDghTmYOTKElT/oynkhcr2eNA5RMG8mJ9ZlAvcHfDrE 0iUfurvRF5SqZ5604dsRk4FQA16Uu/qGqDNA6f0I82QFM0nxjrhFpNRcAsX2x1j18UA8 QydlNObcVLRQjme8cycNGYPn5mOBTqVECqBDI19G8pqy5oK/Aj4mAzmMl97sZ3ZKkZBh /laWj9J3H+6+JdB8aNDUZdMPjtq7ZboDNF8ilFKStgLI8lMZCtZGZKA9XeT98qs34mo+ ypTPiRu8cz5WYxkm+XvSt4M7yzSb+6Th4mni17y/TPbcCEUlr8sV1J4kK3R6a0hJ4WWM 7eXQ==
X-Gm-Message-State: AC+VfDwruL2JJQeQGQ7mwuu8QcM2GriKn1DoxNu1kEvAHsKcZ+6sdtF+ bgmoo7+t6SCQwbHsgsgzCLyWkZo00mpN0LRcY2K8+19+K70p9/F+8EJTa2FbXVTWXRCBwts20sp MGOxD7VihTC59y4QMESoJ8PY86VlzHdqHaRYS
X-Received: by 2002:aa7:c45a:0:b0:50b:c380:a929 with SMTP id n26-20020aa7c45a000000b0050bc380a929mr8383842edr.10.1684769480635; Mon, 22 May 2023 08:31:20 -0700 (PDT)
X-Google-Smtp-Source: ACHHUZ6c3rsOLbokXR5UFVazA2j/SII5Hiq+sdlEZ4oH07XcDuYoE1j0gN+pTDXkw0YkioamPRW6KooS7hykCq5fnyw=
X-Received: by 2002:aa7:c45a:0:b0:50b:c380:a929 with SMTP id n26-20020aa7c45a000000b0050bc380a929mr8383808edr.10.1684769480057; Mon, 22 May 2023 08:31:20 -0700 (PDT)
MIME-Version: 1.0
References: <11087a11-476c-5fb8-2ede-e1b3b6e95e48@si6networks.com> <CALx6S343f_FPXVxuZuXB4j=nY-SuTEYrnxb3O5OQ3fv5uPwT8g@mail.gmail.com> <CAN-Dau1pTVr6ak9rc9x7irg+aLhq0N8_WOyySqx5Syt74HMX=g@mail.gmail.com> <a087b963-1e12-66bf-b93e-5190ce09914b@si6networks.com> <CALx6S349nNA8L5+_1hrbWayqp8GfTYypWy_SP57c_Xxams=csg@mail.gmail.com> <51a066b3-4b4c-d573-ffbe-d6b44a4f193f@gont.com.ar> <a411a1b0-c521-c456-3d44-d99a1cc0975b@gmail.com>
In-Reply-To: <a411a1b0-c521-c456-3d44-d99a1cc0975b@gmail.com>
From: David Farmer <farmer@umn.edu>
Date: Mon, 22 May 2023 10:31:03 -0500
Message-ID: <CAN-Dau3MLvK2A_Rt_TnXqZY-zOR12NhF-16tKDv4E4s9qR1D_Q@mail.gmail.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Cc: Fernando Gont <fernando@gont.com.ar>, IPv6 Operations <v6ops@ietf.org>, 6man <ipv6@ietf.org>, opsec@ietf.org
Content-Type: multipart/alternative; boundary="000000000000633b9e05fc49f69f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/qQGGbMFkaHh0SsKAwbTCeuPFmHo>
Subject: Re: [v6ops] [IPv6] Why folks are blocking IPv6 extension headers? (Episode 1000 and counting) (Linux DoS)
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: v6ops discussion list <v6ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/v6ops>, <mailto:v6ops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/v6ops/>
List-Post: <mailto:v6ops@ietf.org>
List-Help: <mailto:v6ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/v6ops>, <mailto:v6ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 May 2023 15:31:29 -0000

On Sun, May 21, 2023 at 4:29 PM Brian E Carpenter <
brian.e.carpenter@gmail.com> wrote:

> On 21-May-23 21:33, Fernando Gont wrote:
> > Typically. whoever runs the destination AS or network. Or the transit
> > AS, if the packets will affect the transit AS.
>
> And there's the problem. The operator of a large network cannot possibly
> know which extension headers every host on the network needs. It's
> called permissionless innovation, and is supposed to be one of the main
> success factors for the Internet.
>

While "permissionless innovation" remains important. However, particularly
over the last 25 years, we also think "security" and "privacy" are at least
equally important and can not be sacrificed to "permissionless innovation."
That being said, we MUST balance these multiple priorities. which means we
can not completely sacrifice "permissionless innovation" to "security" and
"privacy" either.

> Well, yes, there's no big brother making decisions about mine or your
> > networks' policies.... hence everyone makes decisions independently.
>
>  From the point of view of hosts, there is an anonymous Big Brother, the
> moment that any upstream operator blocks a wanted extension header.
>

We need to be careful not to speak in absolutes here; it is neither
appropriate to allow or require all possible EHs nor deny or prohibit all
possible EHs. Fernando has admitted at least some EHs are necessary, and
Tom's Draft defines where certain invalid or impracticably large EH
constructs can and should be dropped. There needs to be sufficient nuance
and practicality involved in the conversation; It is unhelpful to
portray opposing arguments as extreme strawmen.

1. Certain EH constructs SHOULD never be allowed; we need reasonable and
practical limits; I think Tom's draft makes significant progress here.
2. Certain EHs SHOULD be allowed in certain places and SHOULD NOT be
allowed in others; this thread is at least a good starting point for some
recommendations along these lines.
3. Certain EHs almost always need to be allowed; these need to be
enumerated similarly to RFC 4890 for ICMPv6.

Dropping EHs just because they are unknown, especially by transit
providers, probably isn't appropriate in most situations. Dropping unknown
EHs by a host or by a middlebox very close to the host could be
appropriate, at least in some situations. Nevertheless, that doesn't mean
there are no EHs that it is appropriate for transit providers to drop.


> > (IN a way that's why QUIC runs on top of UDP ... although in the case of
> > QUIC, I bet it has more to do with NATs thatn with explicit firewalling)
>
> It's to do with *any* barrier to IP layer transparency. This is a very
> basic tussle in the architecture.


So, a default deny inbound policy is fairly well accepted for client hosts
behind a stateful firewall and/or NAT. This doesn't mean communication
between two such clients is impossible, but that such communication needs
to be directly or indirectly mediated through a third-party server, often
referred to as firewall traversal. Similarly, we should think about
techniques for hosts wanting the communicate using EHs that are not allowed
on the network path between them. Maybe call this EH traversal, and it
likely involves a tunnel or encapsulating the packet with the unknown EHs
between the two hosts. I'll note that adding EHs in flight is not allowed,
and a common technique is to add a new IPv6 header with the new EHs
encapsulating the old packet.

Thanks

-- 
===============================================
David Farmer               Email:farmer@umn.edu
Networking & Telecommunication Services
Office of Information Technology
University of Minnesota
2218 University Ave SE        Phone: 612-626-0815
Minneapolis, MN 55414-3029   Cell: 612-812-9952
===============================================