From 6a5ebfe5b5c5e086510be0c84941c17d29e784aa Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 22 Oct 2025 18:48:52 +0200 Subject: [PATCH] =?UTF-8?q?alpine:=20don=E2=80=99t=20disable=20IPv6=20auto?= =?UTF-8?q?conf=20on=20loopback=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not sure if it makes a difference but let’s keep the generated config minimal. --- roles/alpine/templates/interfaces.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/alpine/templates/interfaces.j2 b/roles/alpine/templates/interfaces.j2 index a18ebbe..882e93e 100644 --- a/roles/alpine/templates/interfaces.j2 +++ b/roles/alpine/templates/interfaces.j2 @@ -47,7 +47,7 @@ iface {{ iface.name }} {% endfor -%} {# disable SLAAC if we have a manually set IPv6 address #} -{% if iface.ip_addresses | selectattr("family.value", "==", 6) %} +{% if iface.ip_addresses | selectattr("family.value", "==", 6) and iface.name != "lo" %} pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf {% endif %}