Bug 984245 - ntpd must not listen on ipv6-sockets on ipv4-only machines
ntpd must not listen on ipv6-sockets on ipv4-only machines
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: ntp (Show other bugs)
18
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Lichvar
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-13 19:37 EDT by Harald Reindl
Modified: 2013-07-15 03:14 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-07-15 03:14:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Harald Reindl 2013-07-13 19:37:28 EDT
why does ntpd claim to listen on an ipv6 socket?
there is for sure no interface ipv6-addresses
see sysctl settings below, ifconfig confirms this

[root@srv-rhsoft:~]$ netstat -l | grep ntpd
udp        0      0 10.0.0.241:123          0.0.0.0:*     2449/ntpd
udp        0      0 192.168.196.1:123       0.0.0.0:*     2449/ntpd
udp        0      0 192.168.10.1:123        0.0.0.0:*     2449/ntpd
udp        0      0 192.168.2.2:123         0.0.0.0:*     2449/ntpd
udp        0      0 84.113.45.179:123       0.0.0.0:*     2449/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*     2449/ntpd
udp        0      0 0.0.0.0:123             0.0.0.0:*     2449/ntpd
udp6       0      0 :::123                  :::*          2449/ntpd

[root@srv-rhsoft:~]$ cat /etc/sysctl.conf | grep ipv6
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.all.accept_redirects=0
net.ipv6.conf.all.accept_source_route=0
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.default.accept_redirects=0
net.ipv6.conf.default.accept_source_route=0
Comment 1 Miroslav Lichvar 2013-07-15 03:14:16 EDT
It can still create the wildcard socket for IPv6, the sysctl settings just disable assigning addresses. You can try adding "ip6.disable=1" to the kernel parameters.

Note You need to log in before you can comment on or make changes to this bug.