ntpd binds to all ldefined loopback addresses
James B. Byrne
byrnejb at harte-lyne.ca
Tue Jul 10 12:53:08 UTC 2018
I have encountered an issue with ntp on FreeBSD-11. This may be
either a design feature or a bug; or just a misunderstanding on my
part.
The host in question has server jails running on it. None of these
are running ntpd. However, the host is and is configured to listen on
specific addresses:
# grep -i listen /etc/ntp.conf
### Set the listening addresses to avoid collisions with jails
interface listen 192.168.216.18
interface listen 216.185.71.18
However, when I do a sockstat I see this:
# sockstat -l | grep ntp
root ntpd 11391 20 udp4 216.185.71.18:123 *:*
root ntpd 11391 21 udp4 192.168.216.18:123 *:*
root ntpd 11391 22 udp6 ::1:123 *:*
root ntpd 11391 23 udp4 127.0.0.1:123 *:*
root ntpd 11391 24 udp4 127.0.31.1:123 *:*
root ntpd 11391 25 udp4 127.0.32.1:123 *:*
root ntpd 11391 26 udp4 127.0.84.1:123 *:*
Despite being instructed to only listen on two addresses ntpd has
glommed every available loopback address.
Is this intentional? if not then how does one configure ntp to only
listen on a specific lo address? I have already tried specifying
'listen 127.0.0.1' and this produced no change in ntpd's observed
behaviour.
--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Do NOT open attachments nor follow links sent by e-Mail
James B. Byrne mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
More information about the freebsd-questions
mailing list