Disable IPv6 in Alpine Linux
I am running Alpine Linux version 2.2 and I can't seem to disable IPv6. I tried adding the line "blacklist ipv6" to the "/etc/modprobe.d/blacklist.conf" file but did not work. If someone could post a sure fire way to acheive this I would really appreciate it. Thanks.
|
Try adding -
Code:
net.ipv6.conf.all.disable_ipv6 = 1 There have been several methods previously but this seems to be the current recommendation. |
sysctl: error: 'net.ipv6.conf.all.disable_ipv6' is an unknown key
This is the error message that I receive when the server boots when I put that line of code into the sysctl.conf file. I then had to put "ipv6" into the "/etc/modules" files. This removed the error message and now ipv6 is disabled. Thanks for you assistance KBP! |
All times are GMT -5. The time now is 11:19 PM. |