From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 21 09:20:06 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E7151065677 for ; Sat, 21 Jan 2012 09:20:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7528B8FC22 for ; Sat, 21 Jan 2012 09:20:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0L9K6xM016711 for ; Sat, 21 Jan 2012 09:20:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0L9K6SU016710; Sat, 21 Jan 2012 09:20:06 GMT (envelope-from gnats) Resent-Date: Sat, 21 Jan 2012 09:20:06 GMT Resent-Message-Id: <201201210920.q0L9K6SU016710@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 382D71065673 for ; Sat, 21 Jan 2012 09:11:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 26E088FC12 for ; Sat, 21 Jan 2012 09:11:21 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0L9BKtK092156 for ; Sat, 21 Jan 2012 09:11:20 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q0L9BKt4092155; Sat, 21 Jan 2012 09:11:20 GMT (envelope-from nobody) Message-Id: <201201210911.q0L9BKt4092155@red.freebsd.org> Date: Sat, 21 Jan 2012 09:11:20 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/164348: ntp.conf restrict default ignore option doesn't function as advertised X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2012 09:20:06 -0000 >Number: 164348 >Category: bin >Synopsis: ntp.conf restrict default ignore option doesn't function as advertised >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 21 09:20:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 9.0-STABLE >Organization: n/a >Environment: FreeBSD bayonetta.local 9.0-STABLE FreeBSD 9.0-STABLE #4 r230371M: Thu Jan 19 23:55:38 PST 2012 gcooper@bayonetta.local:/usr/obj/store/freebsd/stable/9/sys/BAYONETTA amd64 >Description: While trying to lock down ntpd without a firewall, I was trying to do one of two things: 1. Get ntpd to listen only on localhost to avoid opening up potential security backdoors. 2. Get ntpd to listen to a select set of addresses. Point was to get ntpd to function in a 'more secure' manner like ntpdate. It doesn't seem that there's a 'listen only on select addresses option' available in ntpd, so 1. looks impossible. According to the documentation though, I should be able to restrict access to just localhost, so 2. should be doable [1]. In reality, this option doesn't seem to work as advertised, s.t. if I set 'restrict ignore default' it will reject all requests. 1. http://support.ntp.org/bin/view/Support/AccessRestrictions#Section_6.5.1.2.1. >How-To-Repeat: # sh # cat > /etc/ntp.conf <Fix: >Release-Note: >Audit-Trail: >Unformatted: