Disable IPv6: Difference between revisions

From Notes to self
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
net.ipv6.conf.eth0.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
...</pre>to prevent configuration of IPv6 for listed interfaces.
...</pre>to prevent configuration of IPv6 for listed interfaces.
*To force <code>ntpd</code> to not use IPv6 add <code>-4</code> to
<pre>CMDLINE="/usr/sbin/ntpd -4 -g"</pre>
in <code>/etc/rc.d/rc.ntpd</code>

Revision as of 20:38, 21 August 2016

  • The kernel option ipv6.disable=1 disables the whole IPv6 stack
  • If using the kernel option is not possible, add the following parameters to /etc/sysctl.conf:
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
...

to prevent configuration of IPv6 for listed interfaces.

  • To force ntpd to not use IPv6 add -4 to
CMDLINE="/usr/sbin/ntpd -4 -g"

in /etc/rc.d/rc.ntpd