Skip to content

Instantly share code, notes, and snippets.

@masbog
Created November 27, 2014 10:00
Show Gist options
  • Save masbog/17392c777f4561e6189f to your computer and use it in GitHub Desktop.
Save masbog/17392c777f4561e6189f to your computer and use it in GitHub Desktop.
Simple Disable IPV6 on CentOS
#!/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