Turn off IPv6 CentOS and CSF

Posted by on in How to
  • Font size: Larger Smaller
  • Subscribe to this entry
If you are running csf on your CentOS server and run the server security check you may have seen the following message:

Check for IPv6: IPv6 appears to be enabled [ifconfig: ]. If ip6tables is installed, you should enable the csf IPv6 firewall (IPV6 in csf.conf). To disable IPv6 on RHEL/CentOS you should follow this link.

Upon following the link you end up at the login screen for access.redhat.com. Even after creating an account viewing the link requires a subscription. Seems a little odd that a subscription is required to find out how to disable IPv6... So, here is how you do it:
  1. Log into the server as root
  2. Type in the following:
    >_ touch /etc/modprobe.d/disable-ipv6
    >_ echo "options ipv6 disable=1" >> /etc/modprobe.d/disable-ipv6 
    
    Note: Slightly different prior to the 5.4 update. For more information on the above see this link on the centos wiki. Its a bit more helpful than the link provided in the csf notes.
  3. Restart the server
Last modified on
Tagged in: LAMP
Trackback URL for this blog entry.
Dustin is a web technologist from Wisconsin USA with over 12 yrs. experience consulting entrepreneurs, businesses and local government in web technology. Recently, he's been a bit of a Joomla nut.
  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest Wednesday, July 23, 2014