Re: [rtcweb] Please require user consent for data channels

Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com> Fri, 17 July 2015 22:47 UTC

Return-Path: <sergio.garcia.murillo@gmail.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 28F1E1A8767 for <rtcweb@ietfa.amsl.com>; Fri, 17 Jul 2015 15:47:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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, SPF_PASS=-0.001] autolearn=ham
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 zzbDJ_VEu1MS for <rtcweb@ietfa.amsl.com>; Fri, 17 Jul 2015 15:47:35 -0700 (PDT)
Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (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 DC9A01A8746 for <rtcweb@ietf.org>; Fri, 17 Jul 2015 15:47:34 -0700 (PDT)
Received: by wgkl9 with SMTP id l9so91933329wgk.1 for <rtcweb@ietf.org>; Fri, 17 Jul 2015 15:47:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type; bh=O3CbSaTi3Eyl4zaV1f3PalfjjVqGmL17z7saNS9qJBs=; b=tm951jl9F3UtygYBj1PHowEoJNYgjDMOjMl+9L76BmiYanIkturO2NzpdOTaVdSwPv m8OyfZUNzCEuJaALgK7kfFdNN0zEkNrEkP7mr6gmXyiLm7XOkxvi9Ho0Fp5bDnq/IJQc FYthVmv74B585Qxebm6Abw4fSODxz431ND+K1FLCKsgiwGTIRcUe1O3Y1A/lOhzBKJP0 qJiJQdXIOHEHw3JFU8TJOdIjf6TYNrbfwjO/nuHLFVIPfoM4I+iIixloYU+UfOVtqMyN q70+2oebb1u4exxQmcPIHvfRO7k02ft7LCKseDRd943Z9x1BDAjWykRIVx261PLHcj1L b5kQ==
X-Received: by 10.194.84.179 with SMTP id a19mr33068158wjz.29.1437173253695; Fri, 17 Jul 2015 15:47:33 -0700 (PDT)
Received: from [192.168.0.193] ([95.61.111.78]) by smtp.googlemail.com with ESMTPSA id ez4sm10298448wid.14.2015.07.17.15.47.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jul 2015 15:47:32 -0700 (PDT)
To: Justin Uberti <juberti@google.com>
References: <CA+65OspMD_PVjk0BXh7t4LtjmFDcDatoeNjFQOO_OVtC-Br+OA@mail.gmail.com> <CAOJ7v-0UBGtP0-atxP7X4OTj-H6Lost5o42aAS65mA6CEqcQsw@mail.gmail.com> <CA+65OsrhXHK+cRAFLCZFt+34vr8eRhj+CN3DgznUBfSwmWYggw@mail.gmail.com> <CAOJ7v-24VCW6kkn7LOLkqZzhYEU0r=nmd_F7Zns1rnyqKN6xAg@mail.gmail.com> <55A95364.2070806@gmail.com> <CAOJ7v-3t9BQabR2e4EHs4G0Sec4sU9DFC2aiSXXYrat+an+RYg@mail.gmail.com> <55A96DA3.1040907@gmail.com> <CAOJ7v-1ui7349NzK6NZNRHPbnHWZajctk4cDgMKqRZSv47EYdA@mail.gmail.com>
From: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Message-ID: <55A9860D.8030903@gmail.com>
Date: Sat, 18 Jul 2015 00:47:41 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
MIME-Version: 1.0
In-Reply-To: <CAOJ7v-1ui7349NzK6NZNRHPbnHWZajctk4cDgMKqRZSv47EYdA@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------030600000006000400060407"
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtcweb/tMcZ1nQvjqPpZXvVuikuSf6awEU>
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Please require user consent for data channels
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
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: Fri, 17 Jul 2015 22:47:37 -0000

On 17/07/2015 23:41, Justin Uberti wrote:
>
>
> On Fri, Jul 17, 2015 at 2:03 PM, Sergio Garcia Murillo 
> <sergio.garcia.murillo@gmail.com 
> <mailto:sergio.garcia.murillo@gmail.com>> wrote:
>
>     Hi Justin,
>
>     Thanks for pointing that out, can you point me were in RFC5245 is
>     that behavior described? I fail to find it.
>
>     The only references I found about multihoming are about HOST
>     candidates, performing connectivity checks and priorization of
>     candidates, but I cannot find a reference on sending STUN request
>     to the TURN/STUN server via all the available interfaces in order
>     to retrieve the server reflexive candidates that is where the leak
>     is originating. Please correct me again if I am wrong.
>
>
> Section 2.1, paragraphs 2 and 3 talks about getting all interfaces, 
> and then getting STUN and TURN candidates from said interfaces.
>

That was the ones I was looking at, but my understanding of them is 
different:

    If an agent is multihomed, it obtains a candidate from each IP
    address.  Depending on the location of the PEER (the other agent in
    the session) on the IP network relative to the agent, the agent may
    be reachable by the peer through one or more of those IP addresses.
    Consider, for example, an agent that has a local IP address on a
    private net 10 network (I1), and a second connected to the public
    Internet (I2).  A candidate from I1 will be directly reachable when
    communicating with a peer on the same private net 10 network, while a
    candidate from I2 will be directly reachable when communicating with
    a peer on the public Internet.  Rather than trying to guess which IP
    address will work prior to sending an offer, the offering agent
    includes both candidates in its offer.

Here, what I understand is that they are talking about Host ICE candidates, an then, yes, one per interface, no issue here (If my understanding of the leak problem is correct).

    Next, the agent uses STUN or TURN to obtain additional candidates.
    These come in two flavors: translated addresses on the public side of
    a NAT (SERVER REFLEXIVE CANDIDATES) and addresses on TURN servers
    (RELAYED CANDIDATES).  When TURN servers are utilized, both types of
    candidates are obtained from the TURN server.  If only STUN servers
    are utilized, only server reflexive candidates are obtained from
    them.  The relationship of these candidates to the host candidate is
    shown in Figure 2.  In this figure, both types of candidates are
    discovered using TURN.  In the figure, the notation X:x means IP
    address X and UDP port x.

In this one is talking about getting server reflexive and relay candidates, but in no way I see that the stun server should be contacted by all the interfaces or overriding default routing from OS.

What am I missing?

Best regards
Sergio