How to prevent xinetd creating IPv6 sockets
Issue
-
Is there a simple way of preventing xinetd from creating IPv6 sockets even though you have disabled the IPv6 module?
-
In /etc/modprobe.d/ipv6.conf IPv6 is completely disabled using using:
options ipv6 disable=1 blacklist ipv6
However, messages are received in syslog which are misleading and and can cause people to check for issues unnecessarily:
Mar 14 09:41:33 kvm-guest-74 xinetd[3878]: IPv6 socket creation failed for service guest_service_D01, trying IPv4 Mar 14 09:41:33 kvm-guest-74 xinetd[3878]: IPv6 socket creation failed for service guest_service_D02, trying IPv4 Mar 14 09:41:33 kvm-guest-74 xinetd[3878]: IPv6 socket creation failed for service guest_service_D03, trying IPv4 Mar 14 09:41:33 kvm-guest-74 xinetd[3878]: IPv6 socket creation failed for service guest_service_D04, trying IPv4
-
There is no obvious global option in man xinetd.conf. It is possible to prevent the attempt to create an IPv6 socket by specifying:
flags = IPv4
In the config file for the service. This is unweildy where there are many services and is a change from behaviour in RHEL 5.
Environment
- Red Hat Enterprise Linux (RHEL) 6
- xinetd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.