Re: [Captive-portals] Requirements for "captive portal closed" notifications

David Bird <dbird@google.com> Tue, 20 March 2018 15:44 UTC

Return-Path: <dbird@google.com>
X-Original-To: captive-portals@ietfa.amsl.com
Delivered-To: captive-portals@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 385A61270A3 for <captive-portals@ietfa.amsl.com>; Tue, 20 Mar 2018 08:44:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.71
X-Spam-Level:
X-Spam-Status: No, score=-2.71 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 G8HrlcU4DCeY for <captive-portals@ietfa.amsl.com>; Tue, 20 Mar 2018 08:44:11 -0700 (PDT)
Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::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 D3010126579 for <captive-portals@ietf.org>; Tue, 20 Mar 2018 08:44:10 -0700 (PDT)
Received: by mail-it0-x232.google.com with SMTP id y20-v6so2950430itc.5 for <captive-portals@ietf.org>; Tue, 20 Mar 2018 08:44:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ULrqJjf1xbmc1enPDRIio6abl2rTQs8naG0P6lOvk5E=; b=hd/u1kVS9F/8GFg2O60n5oOn11DuLZHWfeDUK4c37WG0oHRteaAQNdl4HtAJxb8Up9 V5tiaCs47XGJhWlTj8hjVcYD4umkmynx79Gb2aFWOr9z36KMwhuroXNeqjfrgLbYHn++ 0perrixwLP2EMzxZ7P57m3KkbKlcx6hjlmxH7cNWGSJVECUh7N9lQYS3mdWX6RNyLzMG BP6kcWAymHhn3ERP9ap2VADkZ0BQwIPYS70t4Kpd2yuEikorA1V3Cs3YGfx8yYS01UB2 DCTjhAHXj3pwkD1EJdMfOOhcCxQV7RUTrfQKUdDNt3yXrV+uhHRiU6gblYPwYwyM5ApX OJUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ULrqJjf1xbmc1enPDRIio6abl2rTQs8naG0P6lOvk5E=; b=pePHAB4xmfRfbl4mZe/FBzRGmGIjPgnEX8E17qAWw7EjoFfuc9QY2r+Cu/CywIlPQ1 QP57B26qZD6WPCSWR/5E9CKAb3dnHzLqLp1MjH0ApM6htBHRh3BEkdSZgmwJbut6QRSq 0zQVYkugRn8e+2cIbg9oxKeuHliKBaDE9GjJfXTw8LW4Db3nWBY5qvOwyt6NvbPGZ5yM b+lwNrDwioVRGpoSBBlSmkjz57MlkzCPglVc46W/XF+9opJOr25I5Z5Vpky8daVWQPET P5xeMXaARK8AuYCOLsmeEnUWATy2t8pW4wWAeSZ6RiOTSWRJTIabCUcrl5bv8uEVH/01 2ZqA==
X-Gm-Message-State: AElRT7HQlpZVtoNnvKflZEkAqcGBY2V/lD1p4kr4cCXMpi+a6cY0Gtxm 2plWegO8nyB82Dkk5p9g2d49udIz/4dq5+6r5TK/8Q==
X-Google-Smtp-Source: AG47ELu/uijzxnbL2NTPIckzXTo1+WlL7SqJ2BJBmyaXb8s6TwJX9kh8/bTE2kFyyKIsFt7vRdlTKEo2L3VHGu1GORw=
X-Received: by 2002:a24:4413:: with SMTP id o19-v6mr87396ita.137.1521560649778; Tue, 20 Mar 2018 08:44:09 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.2.136.163 with HTTP; Tue, 20 Mar 2018 08:44:09 -0700 (PDT)
In-Reply-To: <CAKD1Yr3rP24jQ6sMpoXZ3pU02FmvwDNc9=w2oAh4bMWZmEtQ_A@mail.gmail.com>
References: <CAKD1Yr3rP24jQ6sMpoXZ3pU02FmvwDNc9=w2oAh4bMWZmEtQ_A@mail.gmail.com>
From: David Bird <dbird@google.com>
Date: Tue, 20 Mar 2018 08:44:09 -0700
Message-ID: <CADo9JyXpW-rn81kwOkqx8+=iBMTWd+x1FoMm-YTCm+Efmb23gQ@mail.gmail.com>
To: Lorenzo Colitti <lorenzo@google.com>
Cc: captive-portals@ietf.org
Content-Type: multipart/alternative; boundary="0000000000000968d90567d9f2db"
Archived-At: <https://mailarchive.ietf.org/arch/msg/captive-portals/JPQBEextYoo5XO-_Rdnav2fGJZ8>
Subject: Re: [Captive-portals] Requirements for "captive portal closed" notifications
X-BeenThere: captive-portals@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Discussion of issues related to captive portals <captive-portals.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/captive-portals>, <mailto:captive-portals-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/captive-portals/>
List-Post: <mailto:captive-portals@ietf.org>
List-Help: <mailto:captive-portals-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/captive-portals>, <mailto:captive-portals-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Mar 2018 15:44:13 -0000

On Tue, Mar 20, 2018 at 8:29 AM, Lorenzo Colitti <lorenzo@google.com> wrote:

> Per discussion at the mike today on what we should do with the ICMP
> unreachable draft - here are some properties I think are necessary in a
> hint to the UE that the captive portal is closed.
>
> 1. The notification should not be easy to spoof. This is easiest to do by
> making it a hint to the UE that it should talk to the API.
>
>    - An ICMP message by itself is not secure. For example, it's trivial
>    for an off-path attacker to generate ICMP messages for sessions from
>    legitimate UEs to <popularwebsite>:443. Getting a UE to trust such a
>    message only requires getting the ephemeral port right, and many OSes have
>    a quite limited range of ephemeral ports.
>
>
Is there any data that shows ICMP (and its insecurity) being used for
off-path attacks like this today? Networks (as they do today) may just
filter out ICMP they don't support from the edge.


>
>    -
>    - Tero points out that if we do want to secure such a message, then we
>    should not roll our own security but should use an existing, secure
>    protocol such as IPsec.
>
>
> 2. It should be possible to send the notification *before* the captive
> portal closes, to facilitate seamless connectivity. Ideally the user should
> be able to re-up the captive portal without having to wait until the
> network is dead or the device has switched to another network.
>


Agreed.



>
> 3. The notification should not be on a per-destination basis. A hint that
> conveys the information "you can reach facebook, but to reach CNN you need
> to upgrade to another service plan" is not technically infeasible but is
> unlikely ever to reach WG and IETF consensus and therefore I think we
> should not spend our time talking about it.
>
>

Can't a network have this policy irrespective of how we implement ICMP?
Can't they even today just use existing ICMP messages? I cringe when we
start dictating how PUBLIC ACCESS networks manage their walled garden and
businesses.



> 4. I'm not sure whether it's possible for the hint to be anything more
> than a binary "you are or will very soon be captive". Saying things like
> "an upgrade opportunity is available" may be hard to encode.
>


Agreed. That wasn't part of the draft.



>
> Cheers,
> Lorenzo
>
> _______________________________________________
> Captive-portals mailing list
> Captive-portals@ietf.org
> https://www.ietf.org/mailman/listinfo/captive-portals
>
>