From 6c817624bca3bb421f66ab4cecbcaa292053f937 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sat, 21 Sep 2024 22:41:36 +0200 Subject: [PATCH] alpine: disable IPv6 automatic addresses So we have predictable addresses if we ever want to firewall individual hosts. --- roles/alpine/templates/interfaces.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/alpine/templates/interfaces.j2 b/roles/alpine/templates/interfaces.j2 index 4a621c4..57568cb 100644 --- a/roles/alpine/templates/interfaces.j2 +++ b/roles/alpine/templates/interfaces.j2 @@ -13,5 +13,6 @@ iface {{ iface.name }} inet static gateway {{ gateway | ipaddr('address') }} {% endif %} {% endfor %} + pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf {% endfor %}