Re: [Tsv-art] [OPSEC] Tsvart last call review of draft-ietf-opsec-ipv6-eh-filtering-06

Brian E Carpenter <brian.e.carpenter@gmail.com> Thu, 06 December 2018 00:48 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: tsv-art@ietfa.amsl.com
Delivered-To: tsv-art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F108612F295; Wed, 5 Dec 2018 16:48:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LV21XiNytfCD; Wed, 5 Dec 2018 16:48:36 -0800 (PST)
Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 996EB12D4E8; Wed, 5 Dec 2018 16:48:36 -0800 (PST)
Received: by mail-pf1-x431.google.com with SMTP id 64so10852989pfr.9; Wed, 05 Dec 2018 16:48:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pvl2Q1/9QABDtgXH1xAO1emPsdMw5eekMd2/mtZPTCE=; b=C8ijBUL0/5xtus42ldGvGsXd0iD8ffGxiccCsYQQaqMQ4ZWasJfuuBbC1HEYoK7fPS GJuPubZmIPa5EvfNSGizkERhBfOzG9V/cCIw8bVKYbaFiNeXabzFuCyVJgzjOZNXArAa PAkREHVZui/6TXkHm3fk++bgJgMj3iG39qOG3B842243H06Imdd2QdG92r9N+7VMsZmc IvpgvqMMT81Ub7orsXw7VZKVXPWCRQDgiYlw3qxfmdRRpjFPy06aTK57D8ZANvw4F2Ip lMmUZONP2FjWwvcawY1BBsTgc37XHjrbnbWQ6E/8eO1Yne03+vWCIWL2rpFP5xli7DBK OT/Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pvl2Q1/9QABDtgXH1xAO1emPsdMw5eekMd2/mtZPTCE=; b=VcVTkJNdUONooXCPEybcoQ+2V2Y2cutmpAqM/Ll0fd2CxUvWiroWjxzYGQmqSRJpOr P0He5LPr9AWYwDWK5PxpaXrEdPom8LVstza61zTgqdRmSgCOban3EAE5jSxv3QT4V44s Kr+TVpGnhtR1x/FlqlFD6rZYT7t3fORJ8F4jcpPXBMy40TYefUbeY3WT1Fo9vdfT+jty nwPQAVw6CHG2d+4jSnQ+rzFIAEcql3wYMjajHxMxHlwDp0zWio1cvgLBtnW5WIuRS/RX G2B38VlqSW/C7EsGrjwD7QzASiZAi7OQi7He+W2EJbfm9VDDcXr4b+Xx/426X+/Ub5if w6+g==
X-Gm-Message-State: AA+aEWZIOm2fo9EdUTtCUoLIoHpoDAEWtLMXrpq93o/8vQbxDHjPYyqB 7PgttYMGeLg0/uFcgE4lGsOu2MxJmQU=
X-Google-Smtp-Source: AFSGD/Uz+5Fu6hgkoTkPk9x/Hl6EyoG5NdqfHsgd7urwbgfBS96sMaV2K2gfGk+o81+DrakPK40amQ==
X-Received: by 2002:a65:6094:: with SMTP id t20mr22061068pgu.285.1544057315774; Wed, 05 Dec 2018 16:48:35 -0800 (PST)
Received: from [192.168.178.30] ([118.148.76.40]) by smtp.gmail.com with ESMTPSA id p2sm27022755pfb.28.2018.12.05.16.48.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 16:48:34 -0800 (PST)
To: Christian Huitema <huitema@huitema.net>, Gert Doering <gert@space.net>, Ole Troan <otroan@employees.org>
Cc: tsv-art <tsv-art@ietf.org>, OPSEC <opsec@ietf.org>, IETF-Discussion Discussion <ietf@ietf.org>, draft-ietf-opsec-ipv6-eh-filtering.all@ietf.org
References: <CAN-Dau0go6_Puf0A9e7KBpk0ApJBUvcxYtezxnwNc-8pKJ3PwQ@mail.gmail.com> <4D69FA8E-FB8A-4A16-9CA6-690D8AE33C9E@strayalpha.com> <20181205122142.GJ1543@Space.Net> <F17C4944-09EC-4AAC-84A0-B660E36AAE89@strayalpha.com> <20181205133821.GL1543@Space.Net> <B6280E0C-6B20-43C1-BB34-170FB06F1EF7@strayalpha.com> <20181205135723.GN1543@Space.Net> <54C715AE-8931-4FA9-AA01-2311EB0055F0@employees.org> <20181205164558.GQ1543@Space.Net> <CCFEFC5B-53AE-4079-B64A-A72A71274FAD@employees.org> <20181205180855.GR1543@Space.Net> <6b9dac4f-4d57-7778-bbbe-78ebe399962f@huitema.net>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <b7225a00-4e36-2659-ecf9-354a7fb32a9b@gmail.com>
Date: Thu, 06 Dec 2018 13:48:29 +1300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2
MIME-Version: 1.0
In-Reply-To: <6b9dac4f-4d57-7778-bbbe-78ebe399962f@huitema.net>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsv-art/RmMLGRTjhA8Jxe_Ognd9xVD6xNk>
Subject: Re: [Tsv-art] [OPSEC] Tsvart last call review of draft-ietf-opsec-ipv6-eh-filtering-06
X-BeenThere: tsv-art@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Transport Area Review Team <tsv-art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsv-art>, <mailto:tsv-art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsv-art/>
List-Post: <mailto:tsv-art@ietf.org>
List-Help: <mailto:tsv-art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsv-art>, <mailto:tsv-art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 06 Dec 2018 00:48:39 -0000

On 2018-12-06 08:26, Christian Huitema wrote:
> 
> On 12/5/2018 10:08 AM, Gert Doering wrote:
>> On Wed, Dec 05, 2018 at 06:57:28PM +0100, Ole Troan wrote:
>>> You are creating the ???perceived??? security problem yourself, by requiring processing deeper into the packet than is required.
>>> Just comply with RFC8200. As long as a router is not configured to process any HBH options, it can ignore the header.
>>> You seem to think HBH still means ???punt to software???. If it ever meant that.
>>>
>>> There???s no need for rate-limiting for not processing HBH obviously.
>> I *must* be able to look at the protocol field of packets coming in on
>> our borders (see detailed description on our rate-limiting rules in 
>> another mail of today).  If there are EHs in the way so our routers' 
>> hardware cannot decide if this is a TCP or UDP packet, these packets 
>> go down the drain.
> 
> Gert, I think that you are actually pointing at a significant issue with
> the draft.
> 
> The draft goes into an evaluation of "security issues", without actually
> explaining some basic assumptions. For example, it is hard to believe
> that a router forwarding too many packets of any kind will cause an
> issue for the security *of that router*. But on the other hand there is
> a widely distributed practice of network equipment attempting to provide
> differential treatment of packets based on protocol types and port
> numbers. That practice is not acknowledged in the RFC that specify IPv6.
> In fact, the IPv6 design assumes that routers only look at the address
> and flow-id fields. This design is actually a departure from IPv4, whose
> header format makes it easy to skip over the option field and assess the
> "five tuple".

And I don't think that is an oversight. The *definition* of "router"
for IPv6 is "a node that forwards IPv6 packets not explicitly addressed
to itself." No mention of filtering, classification, admission control,...

> The draft *implicitly* assumes that routers will try to find the
> protocol and port numbers "because of security reasons", but never
> actually delineates these reasons. I think the discussion would be much
> more productive if the draft started by explaining why network managers
> believe that access to the "five tuple" is essential for a variety of
> reasons, many of which are only tangentially related to "security". At
> that point we can have a discussion between protocol designers assuming
> that the network routers shall only look at IPv6 addresses and that
> everything else is end-to-end on one side, and on the other side network
> managers explaining why they need access to the payload type and port
> numbers.

That seems to define a class of "routers" that have supplementary
functions that are not part of routing. And, surprise, these functions
cannot be satisfied by only inspecting the first 40 bytes of the packet.

I agree that this could usefully be made very clear in the draft.

> My personal preferences on the subject are not very relevant, and I
> could actually line up arguments for both sides of that debate. But I
> believe that getting to a resolution there would be much better than
> arguing piecemeal over this or that end-to-end option.

I doubt that we can ever resolve this, but we can document it.

   Brian