There is a point to this story, but it has temporarily escaped my mind...
Contact Me MyFaceBook MyLinkedIn MyGitHub MyTwitter

Disable IPv6 Protocol

Current Linux Kernels

I recently had to disable IPv6 on one of my Linux VMs (running Xubuntu 15.04) and realized that the method to disable IPv6 in recent kernels had changed. The current way is to edit the file /etc/sysctl.conf and add the following lines to the end of that file:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Then either restart the computer or restart sysctl:

sudo sysctl -p

Older Linux Kernels

Edit /etc/modprobe.conf and add the following line to the file.

alias net-pf-10 off

Then restart the system.

Copyright © 2015 by Julian Easterling. SOME RIGHTS RESERVED.

Creative Commons License
Except where otherwise noted, content on this site is
licensed under a Creative Common Attribution-Share Alike 4.0 International License.


All of the opinions expressed on this website are those of Julian Easterling and
do not represent the views of any of my current and previous clients or employers in any way.

If you notice an error on the site or content that has not been properly attributed, bring
it to my attention using the contact page and I will endeavor to fix it as soon as I can.

I accept no responsibility or liability for any damages incurred by following any of
my advice or by using any of the information on my site or of those sites that I link to.