Site icon Aminserve

Disable ipv6 in Centos 5.x , RHEL & Fedora

By default the ipv6 module is turned on during the installation, you can turn off the module or install/configure the ip6tables tables to prevent your server from attacks.
Steps to disable the ipv6 module.
Edit the file /etc/modprobe.conf in your favorite editor and add the lines below.
alias net-pf-10 off
alias ipv6 off
Edit the /etc/sysconfig/network file
Change to
NETWORKING_IPV6=no
Disable the ipv6 firewall by :
service ip6tables stop

chkconfig ip6tables off
Restart your server and make sure that inet6 addr: is not listing any ipv6 ips in the ifconfig after reboot.

Exit mobile version