Linux: How to disable the IPv6 protocol

Sometime you just need to disable IPv6 protocol. In some case, you do not need it at all or it may increase browsing speed.

Linux has Internet Protocol Version 6 (IPv6) enabled by default, almost all distro enable it.

Open your modprob.conf file (Red Hat and friends) and add following line:
# vi /etc/modprobe.conf

Add following line:
alias net-pf-10 off

Save and close the file. Reboot the system.

If you are using Debian/Ubuntu linux (thanks to beranger), open file /etc/modprobe.d/aliases
# vi /etc/modprobe.d/aliases
Find the line:
alias net-pf-10 ipv6
Replace to
alias net-pf-10 off
alias ipv6 off

Save and reboot the system. IPv6 support should now be disabled and it did improve my DNS performance. Also you can install DNS proxy - to improve DNS performance and squid caching server.

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: Security: OpenSSL Vulnerable to Forged Signatures

Next post: How to find out which network service are NOT linked against libwrap.s / tcpd (TCPWrapper)