Re: [Captive-portals] Thinking of something related to captive portals for the ietf98 hackathon

Alexander Szlezak <alexander.szlezak@unwired.at> Wed, 22 February 2017 16:44 UTC

Return-Path: <alexander.szlezak@unwired.at>
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 8B804129484 for <captive-portals@ietfa.amsl.com>; Wed, 22 Feb 2017 08:44:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=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=unwired-at.20150623.gappssmtp.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 Xcv2BsDZg5Wj for <captive-portals@ietfa.amsl.com>; Wed, 22 Feb 2017 08:44:55 -0800 (PST)
Received: from mail-wr0-x22a.google.com (mail-wr0-x22a.google.com [IPv6:2a00:1450:400c:c0c::22a]) (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 66DC412940A for <captive-portals@ietf.org>; Wed, 22 Feb 2017 08:44:55 -0800 (PST)
Received: by mail-wr0-x22a.google.com with SMTP id z61so6018203wrc.1 for <captive-portals@ietf.org>; Wed, 22 Feb 2017 08:44:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unwired-at.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=sEuLPgUjzqh5csrm69siCxLqFbyjirKhHbe43lDEdTA=; b=OpDy4fR24ErwFgAShMSqtbO9mxDXp8iG4L+oLCoJDKypL2S3MPAsJaPmGsmu9MQbYW 63heDIXhoxpO2LfG5JYiQLE8IVwODrYTfYeAjjka7rkcWhZpZrYVF1A39xp7R1SvulX2 W1gZTK1O9XbGhircYAq4PqVrVGAh0rudMziAEZaKbUpeybz8s79vBfLwzfFfw5/LoRTV 5pUrjYxzdLqUlEALl8qtyy65N2CHs6f3ewJL4d5/Y9+QqA9nIQ9oZejCaI/DWy+TmaOJ L/i93Pw6AmbF9PC9sWePubhXsppyRBEjRbMUJyQM8vsfUrcnb5wTo6G4vIXXIK3Ou/ej KEeQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=sEuLPgUjzqh5csrm69siCxLqFbyjirKhHbe43lDEdTA=; b=neukOB8wVBEhE1XaWGhLWsF0PY/VoGC9dLme3fgEhS55Q4OYUSikVnjy9OsAQHIkyz v/RTG7FN+vNxDAIArbk5QgFP1uF0vZIz07JvOKNDqHYUJ5oiKx7YnT429VvOKjy9Mc4N odGlao7ZDlm8zanBaE+MPyQw45WT68J703a0oYQ1X8LYAwGF7OB+RpNn0VUKEtNiGZ5M TVaPAGfV6Xh/6SsWFewnFI/1woQdoaKxirTQf6bq3VG83a5N4aESBoYAwhpoGy5cRCOW B5sM0aY8/7/8Z9yPYAoSWt8Hm+wimIvFx6nJ0tVGUzsilP2BPWghjaK9lbIiM/XElWna 7Oxg==
X-Gm-Message-State: AMke39ntFO0ubETA3Dy9UXzPcQHpD+6AvPgEF2coZ9PVqmN3y0hElyO3PgbwCiQtoX9dZQ==
X-Received: by 10.223.145.227 with SMTP id 90mr26610001wri.156.1487781893513; Wed, 22 Feb 2017 08:44:53 -0800 (PST)
Received: from MacMagicshark.lan (84-114-229-8.cable.dynamic.surfer.at. [84.114.229.8]) by smtp.googlemail.com with ESMTPSA id y89sm2398709wrc.23.2017.02.22.08.44.51 for <captive-portals@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Feb 2017 08:44:52 -0800 (PST)
To: captive-portals@ietf.org
References: <D76BBBCF97F57144BB5FCF08007244A77058108A@wtl-exchp-1.sandvine.com> <CADo9JyUz6QRVg23cFmv7xTu_0dzbQM-xVXx7=79k3ao+59szVg@mail.gmail.com> <CAKD1Yr0B2HUz6AXExA7nK3URqkq3yFFuBXRVGM+mMR+KjnO1Ag@mail.gmail.com> <E8355113905631478EFF04F5AA706E987051EC6E@wtl-exchp-1.sandvine.com> <CADo9JyXi7077Xq5zSCdUaU2RF8cAwfr43XxENHorEWwa++CF6A@mail.gmail.com>
From: Alexander Szlezak <alexander.szlezak@unwired.at>
Message-ID: <771a82b9-bbf2-3cca-f796-4c2f495f0bfd@unwired.at>
Date: Wed, 22 Feb 2017 17:44:51 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <CADo9JyXi7077Xq5zSCdUaU2RF8cAwfr43XxENHorEWwa++CF6A@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------0C1318C7C93CCBFE375963A2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/captive-portals/3JpdyKpmMlCXTiGI8ukyZ8aCZww>
Subject: Re: [Captive-portals] Thinking of something related to captive portals for the ietf98 hackathon
X-BeenThere: captive-portals@ietf.org
X-Mailman-Version: 2.1.17
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: Wed, 22 Feb 2017 16:44:58 -0000

Hi David,

Nice to read you again. I could imagine the problems with consistency 
are related to complexity and poor documentation of wispr (especially of 
client side implementations) and could be mitigated by a simple and well 
documented RESTful API. I'm interested in more discussion related to 
this issue though.

best,

Alex


Am 22.02.17 um 16:26 schrieb David Bird:
> Agreed, we can take measures to thwart spoofing and other attack 
> vectors that are already present with ICMP signaling.
>
> I think a RESTful API is a good idea, one could argue it was already 
> tried with WISPr. Like WISPr, I think there would be problems with 
> consistency. I could imagine many web developers implementing the 
> RESTful API with varying degrees of features, compliance, bugs, etc.
>
>
>
> On Wed, Feb 22, 2017 at 6:53 AM, Dave Dolson <ddolson@sandvine.com 
> <mailto:ddolson@sandvine.com>> wrote:
>
>     Lorenzo,
>     My interest in ICMP is that it could work with any protocol, not
>     just HTTP, and doesn't require any MITM for HTTPS.
>     I recall a discussion about adding a difficult-to-guess token to
>     the ICMP message, making it hard to spoof.
>
>     -Dave
>
>
>
>     ------------------------------------------------------------------------
>     *From:* Captive-portals [captive-portals-bounces@ietf.org
>     <mailto:captive-portals-bounces@ietf.org>] on behalf of Lorenzo
>     Colitti [lorenzo@google.com <mailto:lorenzo@google.com>]
>     *Sent:* Wednesday, February 22, 2017 9:42 AM
>     *To:* David Bird
>     *Cc:* warren@kumari.net <mailto:warren@kumari.net>; Kyle Larose;
>     captive-portals@ietf.org <mailto:captive-portals@ietf.org>
>     *Subject:* Re: [Captive-portals] Thinking of something related to
>     captive portals for the ietf98 hackathon
>
>     I'm not a fan of the ICMP method. I think the security
>     implications need more thought.
>
>     As is, it looks like pretty much anyone on the Internet can send
>     you one of these packets, and you have no way of knowing if it's
>     legitimate. Relying on such an easy-to-spoof signal to decide that
>     a network no longer provides Internet access could be quite
>     harmful, particularly if the receiving device decided to switch to
>     cellular data and incur the associated traffic costs. Even if the
>     signal is only taken as a hint to revalidate the network, that
>     still has battery implications.
>
>     It would seem to be much more useful to use:
>
>       * A header in the initial redirect that captive portals almost
>         always generate.
>       * A well-known URL where the state of the captive portal can be
>         revalidated, either periodically or when some other indication
>         of loss of connectivity is observed.
>
>     At the last IETF we talked about possibly having a more structured
>     way of communicating this and other bits of information from
>     captive portal to host (a RESTful API, IIRC). That would also be
>     useful, if we can all collectively resist the temptation to
>     overengineer such a mechanism. :-)
>
>     On Wed, Feb 22, 2017 at 11:31 PM, David Bird <dbird@google.com
>     <mailto:dbird@google.com>> wrote:
>
>         Hi Kyle,
>
>         I think that is a great idea!
>
>         I had started to implement here:
>         https://github.com/coova/coova-chilli/tree/capport-icmp
>         <https://github.com/coova/coova-chilli/tree/capport-icmp>
>
>         What would be nice, in addition to the NAS changes, is to also
>         demonstrate the client side ... either something like icmpd
>         <https://github.com/snaewe/books-code/tree/master/unpv13e/icmpd> (to
>         listen for the ICMP and provide applications a way of checking
>         the status of their dest. unreach. connections), or the
>         necessary Linux kernel changes. Also with kernel changes, the
>         I-D could also be implemented using iptables, or other NAS
>         software too.
>
>         Cheers,
>         David
>
>
>         On Wed, Feb 22, 2017 at 6:12 AM, Kyle Larose
>         <klarose@sandvine.com <mailto:klarose@sandvine.com>> wrote:
>
>             Hey everyone,
>
>             I was thinking of doing something (anything) related to
>             captive portals for the ietf 98 hackathon. In particular,
>             https://tools.ietf.org/html/draft-wkumari-capport-icmp-unreach-01
>             <https://tools.ietf.org/html/draft-wkumari-capport-icmp-unreach-01>
>             caught my eye. I was wondering if anyone had thoughts on
>             that, and whether there is anything else they'd like to
>             see me champion.
>
>             Thanks,
>
>             Kyle
>
>             _______________________________________________
>             Captive-portals mailing list
>             Captive-portals@ietf.org <mailto:Captive-portals@ietf.org>
>             https://www.ietf.org/mailman/listinfo/captive-portals
>             <https://www.ietf.org/mailman/listinfo/captive-portals>
>
>
>
>         _______________________________________________
>         Captive-portals mailing list
>         Captive-portals@ietf.org <mailto:Captive-portals@ietf.org>
>         https://www.ietf.org/mailman/listinfo/captive-portals
>         <https://www.ietf.org/mailman/listinfo/captive-portals>
>
>
>
>
>
> _______________________________________________
> Captive-portals mailing list
> Captive-portals@ietf.org
> https://www.ietf.org/mailman/listinfo/captive-portals

-- 
Follow us on Twitter @
http://twitter.com/unwirednetworks

Mag. Alexander Szlezak
Unwired Networks GmbH
Founder & CEO

+43 660 1350410
alexander.szlezak@unwired.at
www.unwired.at

Gonzagagasse 11/25
1010 Vienna
Austria

Support: support@unwired.at