Disable Ipv6 in debian

Yes I know it may not be the best thing to do, but sometimes you need some quick hacks. So let’s do it.

First go do /etc/default/grub and modify this :

GRUB_CMDLINE_LINUX = "" to GRUB_CMDLINE_LINUX = "ipv6.disable = 1" 

and then update grub with :

  # update-grub2

And therefore you also need to tweek /etc/sysctl.conf a little with :

  net.ipv6.conf.eth0.disable_ipv6 = 1 

Where eth0 is the name of the network adapter. Reboot and it’s done !

You may also like...

Laisser un commentaire

Your email address will not be published. Required fields are marked *

en_USEnglish