Question
How do I disable IPv6 on my server?
Answer
Note: cPanel's support staff cannot modify your server's network on your behalf. It is recommended that you have the steps outlined in this article performed by a system administrator.
- Access the server's command line as the
rootuser via SSH or Terminal in WHM. - Open
/etc/sysctl.confin your preferred text editor. -
Add the following lines to the file:
CONFIG_TEXT: net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1 - Save the changes and exit the text editor.
-
Run the following command to enable the settings.
# sysctl -p
Warning: If you remove the kernel modules for IPv6, your operating system will generate warnings in cPanel & WHM, may prevent account creation, and may cause service failures.
Comments
0 comments
Article is closed for comments.