Re: rfc4941bis: temporary addresses as "outgoing-only"?

Gyan Mishra <hayabusagsm@gmail.com> Tue, 11 February 2020 00:18 UTC

Return-Path: <hayabusagsm@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A95AB1208A2 for <ipv6@ietfa.amsl.com>; Mon, 10 Feb 2020 16:18:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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 oOxtKCenhfVd for <ipv6@ietfa.amsl.com>; Mon, 10 Feb 2020 16:18:04 -0800 (PST)
Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 8636F12089F for <6man@ietf.org>; Mon, 10 Feb 2020 16:18:04 -0800 (PST)
Received: by mail-il1-x130.google.com with SMTP id b15so1937115iln.3 for <6man@ietf.org>; Mon, 10 Feb 2020 16:18:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e2zffOEiJ4aFdZ/yJYkBK5Ju7GWAAcADs3W/mGorTYc=; b=QI9YtseI3weGFJj8CuV6UVDyeqjIkhNHsSlkN1Mcti3oDPjSW3L57l1g/EgQb4Ra1c FYvAv3GCB8Yamrv2wHDdFHqe5OffOxhjmQK0B9emfG3XTAGo6ptLkSAZXEusW9rFR0Us T9BfcEEEqn8R8Yn1QMfB1gj5cV2zAilWVqJDcb29WF0cf0jxdk27JQ1Gc49+AL7nEWso lRi2N5Z3x3u4dOnEPB5A/AHyIzDlsFXfq5yiA8RhOOy0biUmuER4MZEtP0Za2PgoIF25 XDyYSkY/wu7HJwVQJXWhZXjznama68zsTp/Cw5DDBBhF11FcgFy0wuSJJckMlai7jkpM Yebg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e2zffOEiJ4aFdZ/yJYkBK5Ju7GWAAcADs3W/mGorTYc=; b=iXdAVnVWm+ndP0Q93urfOb9SVNlkmi7XzIzqGi09ji4jjZmMwUq2S+UV3tyv4RCKML 5u1fbYXUPprc/rBzXqJersT9cwn4+ns64oCcqCrmiEJseRCKyHRiTAx3FmSnEeBNIJY7 gPQjZ/ySOEsOJPwTn9zo694h9bTEjpxH6WTYd+8B7mS8605y7Qf6uOsXSahprIHzWJb3 mUKm+vyHz/DkGoHpNhZZghyEDF3dWvgkkcDB1FC/6jkWH6zzBL9BwmPtqZUhPu9ZtWSr SNBBLBYjUGJ/3AvtzX76tgg+D2y45efBFLVmbLchguWzlkXLeFHB+48g+S1+GRLsMMhr eweA==
X-Gm-Message-State: APjAAAVte30fU/JtFUbeoifhD4bY4jSkABPr4TTfgBr39w0Yx3W1+hTM i9wrwU21LRz8bMTDSk0jn+HFLX4e1GJoLgs+RG0=
X-Google-Smtp-Source: APXvYqwoI4BJRXXpLQyXTw07vFWzHAMpqQ+pFJRy7v61wOV+74HU/s85RD7AlsFwIg4wqWhF9eDUGJuWt96MwULaaGM=
X-Received: by 2002:a92:350d:: with SMTP id c13mr4210897ila.205.1581380283653; Mon, 10 Feb 2020 16:18:03 -0800 (PST)
MIME-Version: 1.0
References: <3217323b-3d8b-bf75-b5b0-ffdd01ee1501@si6networks.com>
In-Reply-To: <3217323b-3d8b-bf75-b5b0-ffdd01ee1501@si6networks.com>
From: Gyan Mishra <hayabusagsm@gmail.com>
Date: Mon, 10 Feb 2020 19:17:52 -0500
Message-ID: <CABNhwV0thfs+iARfN-Z45FEeyrJQtsi2AxVGAouf7KQy1TPXYQ@mail.gmail.com>
Subject: Re: rfc4941bis: temporary addresses as "outgoing-only"?
To: Fernando Gont <fgont@si6networks.com>
Cc: "6man@ietf.org" <6man@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000000fe3e4059e41ca2c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/QuLXzj-r1z6I3MJNaRPRj5K-XDQ>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Feb 2020 00:18:08 -0000

On Mon, Feb 10, 2020 at 11:12 AM Fernando Gont <fgont@si6networks.com>
wrote:

> Folks,
>
> Since we are at it, I wonder if rfc4941bis should say anything about the
> use of temporary addresses for incoming connections. (see
>
> https://tools.ietf.org/html/draft-gont-6man-address-usage-recommendations-04#section-4.3
> ).
> (e.g., "an implementation MAY....")
>
> Particularly for connection-oriented protocols, hosts that prevent
> incoming connections on temporary addresses reduce exposure even when
> their temporary addresses become "exposed" by outgoing sessions.
>
> i.e., if the model is that temporary addresses are employed for outgoing
> connections, unless a host uses temporary-only, there's no reason to
> receive incoming connections on temporary addresses. (e.g., browsing the
> web or sending email should not be an invitation for folks to e.g.
> port-scan you).
>
> The caveats here are:
>
> 1) If a host does temporary-only, these are the only addrs you have, and
> hence they should allow incomming connections
>
> 2) It could be easily done for connection-oriented protocols such as
> TCP, but not so easily (if at all possible) for e.g. connectionless
> protocols.
>
>
> As noted in
>
> https://tools.ietf.org/html/draft-gont-6man-address-usage-recommendations-04#section-4.3
> , *in theory* there are other ways in which the same effect could be
> achieved... so one could certainly argue that this policy should not be
> enforced on the addresses, but rather we should have a more appropriate
> API that could allow apps to e.g. bind() subsets of all the available
> addresses.
>
> Thoughts?



  I agree it below makes sense excerpt from the bottom of that section.  So
with temporary address enabled are you stating that the “stable” address is
what we want to use but based on OS implementations they may not always be
the case due to lack of API support.  Is the issue with default source
address selection used which may differ from OS to OS and in that case is
it possible the temporary address could be bound to services thus exposing
the host to attacks.  Kind of defeats the purpose of having a temporary
address.

It really sounds like we desperately need API development.

Binding services only to stable addresses provides a clean separation
   between addresses employed for client-like outgoing connections and
   server-like incoming connections.  However, we currently lack an
   appropriate API for nodes to be able to specify that a socket should
   only be bound to stable addresses.


>
> Thanks!
>
> Cheers,
> --
> Fernando Gont
> SI6 Networks
> e-mail: fgont@si6networks.com
> PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492
>
>
>
>
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>
-- 

Gyan  Mishra

Network Engineering & Technology

Verizon

Silver Spring, MD 20904

Phone: 301 502-1347

Email: gyan.s.mishra@verizon.com