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 <iface> down" command during every execution of ifreload as the default mode eui6 does not mach the mode set on the interface which is none.
This commit is contained in:
parent
7b2f330c3a
commit
fc6a062559
1 changed files with 1 additions and 0 deletions
|
@ -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') }}
|
||||
|
|
Loading…
Reference in a new issue