[pkg-ntp-maintainers] Bug#246947: ntp-simple should not listen to every single interface + INADDR_ANY

Timo Juhani Lindfors timo.lindfors at iki.fi
Mon Feb 14 12:26:00 UTC 2011


Hi,

at least with ntp package I can now restrict ntp into listening on only
one interface.

lindi at censorius:~$ grep -v "^#" /etc/ntp.conf|grep -v "^$"
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server 10.7.4.7
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
interface listen vlan5
interface ignore ipv6
interface ignore wildcard
lindi at censorius:~$ sudo netstat -alpn|grep ntp
udp        0      0 10.8.8.254:123          0.0.0.0:*                           4063/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*                           4063/ntpd
unix  2      [ ]         DGRAM                    14494    4063/ntpd
lindi at censorius:~$ sudo ls -l /proc/4063/exe
lrwxrwxrwx 1 root root 0 Feb 14 14:22 /proc/4063/exe -> /usr/sbin/ntpd
lindi at censorius:~$ dpkg -S /usr/sbin/ntpd
ntp: /usr/sbin/ntpd
lindi at censorius:~$ dpkg-query -W ntp
ntp     1:4.2.6.p2+dfsg-1+b1

-Timo





More information about the pkg-ntp-maintainers mailing list