Linux: Disable IPv6

In Archlinux, IPv6 disabling by sysctl can be done as follows…

Edit /etc/sysctl.d/40-ipv6.conf:

# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1

Edit /etc/hosts:

# Comment the localhost statement
#::1 localhost.localdomain localhost

Reboot…

source

Advertisements
This entry was posted in Linux, Security, Server and tagged , , . Bookmark the permalink.