The Blog Thing

Hints, tips and thoughts about IT, security and privacy

How to disable IPv6 on Red Hat

without comments

If, for some reason, you want to disable IPv6 on a Red Hat environment, here’s how to do it. I’ve tested this with FC4, FC5, FC6, RHEL 4(.4), RHEL 5, CentOS 4(.4), CentOS 5.0.
Oh, you need to do this as root…

Edit /etc/sysconfig/network and change

NETWORKING_IPV6=yes to
NETWORKING_IPV6=no

Edit /etc/modprobe.conf and add these lines (if they’re not in it):

alias net-pf-10 off
alias ipv6 off

Stop the ipv6tables service by typing:

service ip6tables stop

Disable the ipv6tables service by typing:

chkconfig ip6tables off

After these changes, IPv6 will be disabled after the next reboot of your system.

Written by Vincent Verhagen

June 22nd, 2007 at 08:19 UTC

Posted in Uncategorized

Tagged with

Leave a Reply

You must be logged in to post a comment.