Disable IPv6: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
to the end of <code>/etc/ssh/sshd_config</code> | to the end of <code>/etc/ssh/sshd_config</code> | ||
*To disable IPv6 in <code>sendmail</code> use the option <code>Family=inet</code> in <code>DAEMON_OPTIONS</code> and <code>CLIENT_OPTIONS</code> | *To disable IPv6 in <code>sendmail</code> use the option <code>Family=inet</code> in <code>DAEMON_OPTIONS</code> and <code>CLIENT_OPTIONS</code> | ||
[[Category: Linux]] | |||
Revision as of 21:56, 21 August 2016
- The kernel option
ipv6.disable=1disables 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
ntpdto not use IPv6 add-4to
CMDLINE="/usr/sbin/ntpd -4 -g"
in /etc/rc.d/rc.ntpd
- To force
sshdto listen IPv4 only add
# Listen IPv4 only AddressFamily inet
to the end of /etc/ssh/sshd_config
- To disable IPv6 in
sendmailuse the optionFamily=inetinDAEMON_OPTIONSandCLIENT_OPTIONS