Re: [Ntp] Pool and DNS

Miroslav Lichvar <mlichvar@redhat.com> Tue, 08 November 2022 15:49 UTC

Return-Path: <mlichvar@redhat.com>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 30413C1524CD for <ntp@ietfa.amsl.com>; Tue, 8 Nov 2022 07:49:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.677
X-Spam-Level:
X-Spam-Status: No, score=-7.677 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.571, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iNXFAGUmEPDR for <ntp@ietfa.amsl.com>; Tue, 8 Nov 2022 07:49:10 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6EE99C1524C7 for <ntp@ietf.org>; Tue, 8 Nov 2022 07:49:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667922549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=csqV7ZxjPNL5VKloMly+8/wvbWuXkdumuJDLpTS5mXs=; b=ajJQymiDQ5ipP/PHxrDQoVV28elxRDFRdQGcmI2ja2AVrZQlzGwIwcCquM0zV+QJT1uyuG FQIQE3CQaQnPhkO41rsl0hoCo5JNztmn0t39ytjIlSO9UcrIusmBEmQlR76rJtTl2jmPAv fvVAPSnW6yocLN0++a6IzSYABXop0oE=
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-466-8No73jN7PQC35wVtDXxEdQ-1; Tue, 08 Nov 2022 10:49:05 -0500
X-MC-Unique: 8No73jN7PQC35wVtDXxEdQ-1
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D30F7857D0A; Tue, 8 Nov 2022 15:49:04 +0000 (UTC)
Received: from localhost (unknown [10.43.135.229]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 25D6835429; Tue, 8 Nov 2022 15:49:03 +0000 (UTC)
Date: Tue, 08 Nov 2022 16:49:02 +0100
From: Miroslav Lichvar <mlichvar@redhat.com>
To: Christer Weinigel <christer@weinigel.se>
Cc: Hal Murray <halmurray@sonic.net>, ntp@ietf.org
Message-ID: <Y2p6bssd2IcPQIF4@localhost>
References: <20221023053430.6022728C1DB@107-137-68-211.lightspeed.sntcca.sbcglobal.net> <ce15694e8615872ad18e22bd81dc58532cbe2002.camel@weinigel.se>
MIME-Version: 1.0
In-Reply-To: <ce15694e8615872ad18e22bd81dc58532cbe2002.camel@weinigel.se>
X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="WINDOWS-1252"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/nJdqumlxSCqKRkzxFtwWQnLiAz8>
Subject: Re: [Ntp] Pool and DNS
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Network Time Protocol <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 08 Nov 2022 15:49:14 -0000

On Tue, Nov 08, 2022 at 04:36:03PM +0100, Christer Weinigel wrote:
> My patch is just a quick proof of concept.  Someone who knows more
> about the NTPsec code ought to see if I have misunderstood anything. 
> There a few things I'm already aware of.  The current code will always
> look for SRV records, it probably should be a flag to ntpsec to turn
> this behavior on.  One might also want to add a flag to say that for a
> specific pool NTS must be used to avoid man-in-the-middle-attacks that
> can downgrade to plain NTP by filtering out the SRV records from DNS. 
> If the ntp client can store persistent data it might also want to
> remember "I have successfully used NTS once for this pool, I will not
> allow plain NTP any more".
> 
> Thoughts?

IIRC this idea was discussed before and the main issue was that it
relies on DNSSEC, which pool.ntp.org doesn't support and for a client
on a typical OS it might be difficult to enforce.

-- 
Miroslav Lichvar