improve support for non-wireguard peers
This commit is contained in:
parent
5ddd74b201
commit
503947f897
1 changed files with 4 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue