Re: [dns-privacy] Demultiplexing HTTP and DNS on the same listener [New Version Notification for draft-dkg-dprive-demux-dns-http-02]

Colm MacCárthaigh <colm@allcosts.net> Wed, 03 May 2017 19:28 UTC

Return-Path: <colm@allcosts.net>
X-Original-To: dns-privacy@ietfa.amsl.com
Delivered-To: dns-privacy@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D14BA129AB8 for <dns-privacy@ietfa.amsl.com>; Wed, 3 May 2017 12:28:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:
X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=allcosts-net.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 ZKjJP180dwzS for <dns-privacy@ietfa.amsl.com>; Wed, 3 May 2017 12:28:34 -0700 (PDT)
Received: from mail-yb0-x234.google.com (mail-yb0-x234.google.com [IPv6:2607:f8b0:4002:c09::234]) (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 76A5D127A91 for <dns-privacy@ietf.org>; Wed, 3 May 2017 12:26:41 -0700 (PDT)
Received: by mail-yb0-x234.google.com with SMTP id j17so18869684ybj.0 for <dns-privacy@ietf.org>; Wed, 03 May 2017 12:26:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=allcosts-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tOkneZEv+NNmAIP2cYU/iZMtQxwlcvViYtuhkBCC3pg=; b=HutaKpu6zH+yFNogfBqQvOLmNYksXA41ldYuhxHbZbhBQS7BZWsv2YW0Q5atTRtqNg wGxALWIQa6MAhmNPMKclcEy02WRfbP9CsTTOO5/xaO8J0Z61/q0Q9o9YiM93e03hZe7i 0O83Jiedv5f47mcLCYVZSixNbnOteUomewQ2G3XPihHo9c4Ux4Lfk/TrYUlGUV6lgkhx ASoP0T4lBPfFgdzFRJPnHJ2Y1B0gzY2UJzoV9HXCU7juPcqJZEckEAVlC9rH7dthwybp YE7eHao130Hx0XdNouoToVn1aij/NJHpaqbXR2qS2CevfsX8GQseOFsgykH04EygeOJ/ oTHQ==
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=tOkneZEv+NNmAIP2cYU/iZMtQxwlcvViYtuhkBCC3pg=; b=klR1BWM8X0T/ilxeM2mdqijUfoTfhvkMwquQQ9JJcX7TIpgiD4iuqbO2XjFTSU8yys nx6NXT8QkNbZ727vU11DBLtyUfdBnMP8w0XHuDDK0tRMv9RmZX+OZNiRrJfXYcj/qslt TLXKfzVLNLCaERq6dsF6G28W1cpznpjP5eZp2J4AGSx43zEB9grV25+ugZJMqdsOTvpS 4+cXDC1S0Q+tA7LYhvDajdQ2Bvd9rIauMLC3/Ae5tGQrq06f9NrBTJ7A6nAgnruPg8xr r60VuwVn+RNRJU7Ztm1jk2+axfNUesiAzQ7XsstB8omCeovY9L50nEZluMmg6JxR/FlL LcPg==
X-Gm-Message-State: AN3rC/4D5GoG8tZbARYTokIUd5eMidS/wIfBWeQgJHZ/PfYuyyMvBtxD xiDqltAuLaBhVxP5B82SZGhEcWmn6A==
X-Received: by 10.37.198.147 with SMTP id k141mr30094817ybf.27.1493839600773; Wed, 03 May 2017 12:26:40 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.129.57.67 with HTTP; Wed, 3 May 2017 12:26:40 -0700 (PDT)
In-Reply-To: <87tw51remp.fsf@fifthhorseman.net>
References: <87tw51remp.fsf@fifthhorseman.net>
From: Colm MacCárthaigh <colm@allcosts.net>
Date: Wed, 03 May 2017 12:26:40 -0700
Message-ID: <CAAF6GDcn0Jn3jCeOBts5t53WnY8TA1wz=QXRMJugV0AQr75q5w@mail.gmail.com>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>, DNS Privacy Working Group <dns-privacy@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c08c53cc1f0a5054ea3a20e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dns-privacy/O37j_3VMYNGHpW3747AwgNRnXUA>
Subject: Re: [dns-privacy] Demultiplexing HTTP and DNS on the same listener [New Version Notification for draft-dkg-dprive-demux-dns-http-02]
X-BeenThere: dns-privacy@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: <dns-privacy.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dns-privacy>, <mailto:dns-privacy-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dns-privacy/>
List-Post: <mailto:dns-privacy@ietf.org>
List-Help: <mailto:dns-privacy-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dns-privacy>, <mailto:dns-privacy-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 May 2017 19:28:37 -0000

On Wed, May 3, 2017 at 11:15 AM, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
wrote:

> Hi HTTP folks--
>
> I've just pushed a revision to a recent individual submission about a
> technique for hiding DNS traffic that makes use of HTTP:
>
>   https://datatracker.ietf.org/doc/draft-dkg-dprive-demux-dns-http/


Cool idea. One concern might be compatibility with other similar
mechanisms. For example, there are protocols such as Netscaler Client IP:

https://www.citrix.com/blogs/2016/04/25/how-to-enable-client-ip-in-tcpip-option-of-netscaler/

or HAProxy's Proxy Protocol:

https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt

Where proxies may insert their own pre-amble on the connection, to pass on
something like an L4 X-Forwarded-For.

Sometimes the backends behind these proxies have to accept traffic directly
too, and they fingerprint the first few bytes to determine whether it's a
direct HTTP connection, or a proxied request. I haven't thought through it,
but it might get a little complicated doing two levels of demuxing, and it
might not even be possible in some cases.

-- 
Colm