Re: [rtcweb] IP handling: Using mDNS names for host candidates

Justin Uberti <juberti@google.com> Thu, 14 June 2018 17:14 UTC

Return-Path: <juberti@google.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BA9A2130E57 for <rtcweb@ietfa.amsl.com>; Thu, 14 Jun 2018 10:14:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.509
X-Spam-Level:
X-Spam-Status: No, score=-17.509 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 ODws9v380izy for <rtcweb@ietfa.amsl.com>; Thu, 14 Jun 2018 10:14:52 -0700 (PDT)
Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (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 14702130E52 for <rtcweb@ietf.org>; Thu, 14 Jun 2018 10:14:52 -0700 (PDT)
Received: by mail-it0-x22b.google.com with SMTP id a3-v6so9743782itd.0 for <rtcweb@ietf.org>; Thu, 14 Jun 2018 10:14:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZE/FZDKtiPK7cqrLF2tcOZ+ajwJ0HhdZbFGYw4+OgQY=; b=i4Q/p1AFZTudYuGYSlWS/oPq+DOgAxSSweymYQQ3LP/Bmp/f0mm4UGb4zB8sCkGNAB ItPAfHJ0NoqAnmPWrBmeFuxU841LbK5efk+GoIs0JR7fPsmIc3pX4WOf/Fo9EZkDEH7t 3wJWzALR4pTu+uifdnuYNnzDioCjd4PGEwnqy4/siflrAKuDOO5G/xJFdpiK+cAcLdm3 xMu8Jr53ahmxjbQ9Owb+2ejQU8gTxwcIzjqClNBh1kHjq9KyeQ/CyCJMnfnQ5cxs9csS 7lSu5B985I1WEeI7ti57UiipZ7dFRNLfUFGK3VTbVPXxdfs9KyDaNOc2q6Iz/u6ImOvk KACA==
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=ZE/FZDKtiPK7cqrLF2tcOZ+ajwJ0HhdZbFGYw4+OgQY=; b=AMizbkTcSFMKNI0gasJE/t6aB3IZaDLJAHIxWikGnhrLoIRgjBlGiRsvaCzMceXyPW XfDn7/fQdp5E+T//fIOCEgkpPQMoso8FdsfNcTpWZvzqT/WlCQIRRX0KnYMsN2diBCZ/ pLIRUZtO+W3txuUc/xw5Meuco+A10H70k5f3v+w23veO2S2TC8gooRRad26oSOxpEhQe c+XILxnfxHsmv3BtqeUd7azLZWpFtiQc4A487RfJBaAj/D0KFzyojGuEZbOrie5jjbMT c3Xgkecy91qv6Vd8/uExPUIclzWZaF4JXPefgn7vVF/Wzd3ta57lrv+/7KMjo67FN/BK 4l6A==
X-Gm-Message-State: APt69E38TTdOu0Lrte+1uKR9U3UDzbu0NykmUCGLgYe+x8Xzn3sB24RP wnahARIBxsMIqvQjFinRrRcc/fu7o41RekL560awXA==
X-Google-Smtp-Source: ADUXVKJyPd3nhqneNq7/yFIxWm3ex8f7chFzqpnwRrHnRdD3O4Ch4tPxybZ53QiWNB/u8GjTUJtCAZeFmd1ZLhqNQL0=
X-Received: by 2002:a24:7582:: with SMTP id y124-v6mr2927339itc.115.1528996490932; Thu, 14 Jun 2018 10:14:50 -0700 (PDT)
MIME-Version: 1.0
References: <CAOJ7v-2FQ3yfyfmFY8MT17nTFUvsNyixKuXXeT-Rq7zVQKBMnA@mail.gmail.com> <BC4154C2-DB59-4298-9F8D-86495C153D37@iii.ca>
In-Reply-To: <BC4154C2-DB59-4298-9F8D-86495C153D37@iii.ca>
From: Justin Uberti <juberti@google.com>
Date: Thu, 14 Jun 2018 10:14:39 -0700
Message-ID: <CAOJ7v-0vbsVxEK07B1DXnv3Zzc_YtFAjoGG9wAPzrukMgxxHLw@mail.gmail.com>
To: Cullen Jennings <fluffy@iii.ca>
Cc: RTCWeb IETF <rtcweb@ietf.org>, youenn fablet <yfablet@apple.com>, Sean Turner <sean@sn3rd.com>
Content-Type: multipart/alternative; boundary="000000000000b536f2056e9d3c2a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtcweb/gLvykCA5dG4N6r0Fcbu9qvu7CAY>
Subject: Re: [rtcweb] IP handling: Using mDNS names for host candidates
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Jun 2018 17:14:55 -0000

This is a valid concern, but keep in mind that this only applies to:
- apps without gUM permission (or else they can use Mode 1)
- on networks that don't support IPv6 (or else they can use the RFC 4941 v6
address)
- on networks where mDNS is turned off or constrained

I tend to think this is still a pretty good tradeoff.

One other option could be to add a new Mode 1.5 that did hand out the
private IP which could be selected by domain admins, but given how subtle
this area is, I tend to think that it would rarely, if ever, be enabled.

On Wed, Jun 13, 2018 at 1:28 PM Cullen Jennings <fluffy@iii.ca> wrote:

>
>
> With my individual hat on …
>
> I have a bunch of concerns about this but the biggest is that mDNS does
> not work on a large percentage of medium and large corporate WiFI Networks.
> The problem is the large multicast domains trash the WiFi performance so
> many APs turn off mDNS or limit it’s range to much less than the scope of
> where just testing the address with ICE would be routable. It’s exactly
> theses environment where using the local IP vs a TURN IP provides lots of
> benefit.  I like the idea of trying to use mDNS but I’d want tot see strong
> evidence it worked in theses environments before putting it in at the last
> minute.
>
>
>
> On Jun 11, 2018, at 6:40 PM, Justin Uberti <
> juberti=40google.com@dmarc.ietf.org> wrote:
>
> The Safari team has come up with a clever approach to avoid disclosing
> private IP addresses for host candidates. As discussed in this WebKit bug
> <https://bugs.webkit.org/show_bug.cgi?id=174500>, the technique works as
> follows:
>
>    1. Register a random UUID-based mDNS name when ICE gathering starts
>    2. Replace the private IP address by a "{UUID}.local" string in each
>    host candidate (and set raddr to 0.0.0.0 for other candidates)
>    3. The other party will do mDNS resolution on any candidate having a
>    .local suffix, similar to how hostnames in candidates are handled in RFC
>    5245, Section 15.1.
>
> This technique is relevant to the IP handling document, as it addresses
> one of the lesser problems (private IP disclosure) from the overall problem
> statement. While I don't think this will have a large impact on the
> document, including the default mode selection, incorporating this
> technique would result in some moderate changes:
>
>    - Section 5.1 would mention concealing private IPs in the default case
>    as an explicit goal.
>    - In Section 6, Mode 2 would change from handling out private IPs to
>    handing out mDNS names.
>    - This document would have to describe the technique or point to
>    another document that describes the technique. mmusic-ice-sip-sdp,
>    Section 4.1
>    <https://tools.ietf.org/html/draft-ietf-mmusic-ice-sip-sdp-20#section-4.1> seems
>    like a good option, as it already covers how to handle DNS names in ICE
>    candidates.
>
> This is a significant improvement and I think we will want to incorporate
> this suggestion. Is this something we could do as part of this WGLC, or
> should we look for another option?
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>
>
>