From fc6a062559a7bcbd93b7c41300b083fa717c657d Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Sun, 24 Mar 2019 18:57:22 +0100 Subject: [PATCH] Role wireguard: explicitly set ipv6-addrgen to off newer versions of ifupdown2 try to set the addrgen mode for interfaces using inet6 but it seems that wireguard interfaces do not support this. This causes a "ip link set dev down" command during every execution of ifreload as the default mode eui6 does not mach the mode set on the interface which is none. --- roles/wireguard/templates/wireguard.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/wireguard/templates/wireguard.j2 b/roles/wireguard/templates/wireguard.j2 index acd86c1..519f802 100644 --- a/roles/wireguard/templates/wireguard.j2 +++ b/roles/wireguard/templates/wireguard.j2 @@ -4,6 +4,7 @@ {% for network in my_wireguard_networks %} auto wg-{{ network.remote[:11] }} iface wg-{{ network.remote[:11] }} + ipv6-addrgen off {% if magic < network.remote_magic %} address {{ network.ipv4 | ipaddr('ip/prefix') }} address {{ network.ipv6 | ipaddr('ip/prefix') }}