improve support for non-wireguard peers

This commit is contained in:
h 2025-01-25 14:26:39 -08:00
parent 5ddd74b201
commit 503947f897
Signed by: 9pfs
SSH key fingerprint: SHA256:jgJ8oy3dFgbNXEiRdZlbUhItY8fbh4UvvJ2qhxoOC88

View file

@ -1,5 +1,6 @@
[Match]
Name=dn42{% if ifacename is defined %}{{ item.ifacename }}{% else %}{{ item['remotename'] }}{% endif %}
Name={% if item.ifacename is defined %}{{ item.ifacename }}{% else %}dn42{{ item['remotename'] }}{% endif %}
[Network]
DHCP=false
@ -10,6 +11,8 @@ KeepConfiguration=true
IPv4ReversePathFilter=no
Description=DN42 peering with AS{{ item.asn }}{% if item.wireguard|default(true) %} @ {% if item.remotehost is defined %}{{ item.remotehost }}[{{ item.remoteip }}]:{{ item.remoteport }}{% else %}[{{ item.remoteip }}]:{{ item.remoteport }}{% endif %} {% endif %}
LinkLocalAddressing=false
[Address]
{% if item['llv6'] is defined %}
Address={{ item['llv6'] }}/{% if item.remote_llv6 is defined %}128{% else %}64{% endif %}