Created
November 27, 2014 10:00
-
-
Save masbog/17392c777f4561e6189f to your computer and use it in GitHub Desktop.
Simple Disable IPV6 on CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf | |
echo "net.ipv6.conf.default.disable_ipv6" = 1 >> /etc/sysctl.conf | |
echo "IPV6INIT=no" >> /etc/sysconfig/network | |
service ip6tables stop | |
chkconfig ip6tables off | |
echo "install ipv6 /bin/true" > /etc/modprobe.d/ipv6_disabled.conf | |
echo "PLEASE REBOOT." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment