Skip to content
Snippets Groups Projects
Commit f67ba08a authored by Marvin Gaube's avatar Marvin Gaube
Browse files

Wireguard: Hotfix non-v4-peerings

parent f6aeda54
Branches
No related tags found
No related merge requests found
Pipeline #24927 passed
......@@ -13,11 +13,22 @@ iface {{ iface_prefix }}_{{ peer.name }} inet static
pre-up wg setconf $IFACE /etc/wg/$IFACE.conf
address {{ peer.addr.local.ip4.address }}/31
post-down ip link del dev $IFACE
{%- endif %}
{% if 'ip6' in peer.addr.local %}
iface {{ iface_prefix }}_{{ peer.name }} inet6 static
address {{ peer.addr.local.ip6.address }}/127
{%- endif %}
{%- elif %}
# V6 only WG-Interface
{% if 'ip6' in peer.addr.local %}
iface {{ iface_prefix }}_{{ peer.name }} inet6 static
pre-up ip link add dev $IFACE type wireguard
pre-up wg setconf $IFACE /etc/wg/$IFACE.conf
post-down ip link del dev $IFACE
address {{ peer.addr.local.ip6.address }}/127
{%- endif %}
{%- endif %}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment