Handle wireguard network outside of common task

This commit is contained in:
nemunaire 2025-01-05 17:37:55 +01:00
commit 0d74e0148f

View file

@ -54,13 +54,4 @@ iface br0 inet6 auto
{% endif %}
{% endif %}
{% if wanted_serekh is defined %}
auto wg-serekh
iface wg-serekh inet6 static
address {{ wanted_serekh }}/64
pre-up ip link add dev wg-serekh type wireguard
pre-up wg setconf wg-serekh /etc/wireguard/wg-serekh.conf
post-down ip link delete dev wg-serekh
{% endif %}
source-directory /etc/network/interfaces.d