I don't need to run a time server and I don't want ntpd listening on every network interface:
Code:
ntpd[23570]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
ntpd[23570]: Listening on interface #1 wildcard, ::#123 Disabled
ntpd[23570]: Listening on interface #2 lo, ::1#123 Enabled
ntpd[23570]: Listening on interface #3 he-ipv6, 2001:470:1f04:ffff::2#123 Enabled
ntpd[23570]: Listening on interface #4 eth0, 2001:470:1f05:ffff::aaaa#123 Enabled
ntpd[23570]: Listening on interface #5 he-ipv6, fe80::ffff:ffff#123 Enabled
ntpd[23570]: Listening on interface #6 eth0, fe80::fcfd:ffff:ffff:ffff#123 Enabled
ntpd[23570]: Listening on interface #7 lo, 127.0.0.1#123 Enabled
ntpd[23570]: Listening on interface #8 eth0, 173.230.xxx.xxx#123 Enabled
ntpd[23570]: Listening on interface #9 eth0:1, 192.168.xxx.xxx#123 Enabled
So I installed
openntpd, which by default
does not listen on any network interface. And since I have a firewall rule:
Code:
/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
I don't need to open port 123 (ntp service) since the outgoing requests to a stratum 2 ntp server are related,established as far as my firewall is concerned.
So the default /etc/openntpd/ntpd.conf works just fine:
Code:
# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)
# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1
# sync to a single server
#server ntp.example.org
# use a random selection of 4 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
# and http://www.pool.ntp.org/
server 0.debian.pool.ntp.org
server 1.debian.pool.ntp.org
server 2.debian.pool.ntp.org
server 3.debian.pool.ntp.org
And openntpd is available as a debian package:
Code:
# apt-cache show openntpd
Package: openntpd
Priority: optional
Section: universe/net
Installed-Size: 196
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
...
Description: OpenBSD NTP daemon
NTP, the Network Time Protocol, is used to keep the computer clocks
synchronized. It provides the ability to sync the local clock to remote NTP
servers and can act as NTP server itself, redistributing the local clock.
.
This is an alternative implementation of the NTP software, made by the OpenBSD
project. It makes use of privilege separation, only implements a subset of the
NTP protocol, and does not adjust the rate of the clock.
.
Alternative packages which provide similar functionality are ntp and chrony.
Homepage: http://www.openntpd.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Simple, light-weight, secure, and therefore a nice replacement for the traditional ntpd. YMMV.