From nobody@FreeBSD.org  Sat Nov 15 11:53:58 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A84D61065674
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Nov 2008 11:53:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 969E08FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Nov 2008 11:53:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mAFBrwBo054565
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Nov 2008 11:53:58 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mAFBrw9b054552;
	Sat, 15 Nov 2008 11:53:58 GMT
	(envelope-from nobody)
Message-Id: <200811151153.mAFBrw9b054552@www.freebsd.org>
Date: Sat, 15 Nov 2008 11:53:58 GMT
From: Timothy Cava <timothy.cava@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ntpd -L flag doesn't work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         128886
>Category:       bin
>Synopsis:       ntpd(8): ntpd -L flag doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 15 12:00:11 UTC 2008
>Closed-Date:    
>Last-Modified:  Mon Mar 18 21:40:01 UTC 2013
>Originator:     Timothy Cava
>Release:        7.0-STABLE
>Organization:
>Environment:
FreeBSD summit.localdomain 7.0-STABLE FreeBSD 7.0-STABLE #5: Sun Mar  9 06:03:02 PDT 2008     root@summit.localdomain:/usr/obj/usr/src/sys/SUMMIT  i386
>Description:
ntpd's -L flag is supposed to prevent listening on "virtual ips", but
doesn't because address_okay() (ntp_io.c:938) determines an address is
virtual if it has a ':' in its name. Our aliases don't so it ends up
listening on every address.

NOTE: The problem remains in sources from today (2008-11-15).
>How-To-Repeat:
Add "-L" to ntpd_flags in /etc/rc.conf, /etc/rc.d/ntpd restart,
sockstat |grep ntpd and notice it listens on every ip.
>Fix:
Make address_okay() check (ntp_io.c:938) if an interface is an alias or
not in a BSD way.

>Release-Note:
>Audit-Trail:

From: Maurizio Giunti <giunti@mgshareware.com>
To: bug-followup@FreeBSD.org, timothy.cava@gmail.com
Cc:  
Subject: Re: bin/128886: ntpd(8): ntpd -L flag doesn&#39;t work
Date: Mon, 18 Mar 2013 22:33:32 +0100

 <html>
   <head>
 
     <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
   </head>
   <body bgcolor="#FFFFFF" text="#000000">
     I have the same problem on 9.1 amd-64bit<br>
     <br>
     # uname -a<br>
     FreeBSD deathstar.homegiunti 9.1-RELEASE FreeBSD 9.1-RELEASE #0
     r243825: Tue Dec 4 09:23:10 UTC 2012
     <a class="moz-txt-link-abbreviated" href="mailto:root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC">root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC</a> amd64<br>
     <br>
     # cat /etc/rc.conf | grep inet<br>
     ifconfig_re0=" inet 192.168.10.200 netmask 255.255.255.0"<br>
     ifconfig_re0_alias0=" inet 192.168.10.201 netmask 255.255.255.255"<br>
     ifconfig_re0_alias1=" inet 192.168.10.202 netmask 255.255.255.255"<br>
     <br>
     # cat /etc/rc.conf | grep ntpd<br>
     ntpd_flags="-L"<br>
     ntpd_enable="YES"<br>
     <br>
     # ps auxww | grep ntpd<br>
     root 775 0.0 0.0 22196 3256 ?? Ss 9:12PM 0:00.66
     /usr/sbin/ntpd -c /etc/ntp.conf -L<br>
     <br>
     # sockstat -l | grep ntpd<br>
     root ntpd 775 20 udp4 *:123 *:*<br>
     root ntpd 775 21 udp6 *:123 *:*<br>
     root ntpd 775 22 udp4 192.168.10.200:123 *:*<br>
     <b>root ntpd 775 23 udp4 192.168.10.201:123 *:*</b><b><br>
     </b><b>root ntpd 775 24 udp4 192.168.10.202:123 *:*</b><b><br>
     </b>root ntpd 775 25 udp6 ::1:123 *:*<br>
     root ntpd 775 26 udp6 fe80:5::1:123 *:*<br>
     root ntpd 775 27 udp4 127.0.0.1:123 *:*<br>
     root ntpd 775 29 udp6 fe80:3::be5f:f4ff:fe85:40ab:123
     *:*<br>
     <br>
     Best,<br>
     <br>
     Maurizio<br>
     <br>
     <br>
     <br>
     <br>
     <br>
     <br>
     <br>
     <br>
     <br>
   </body>
 </html>
>Unformatted:
