blob: 04abfa1d3a0d2d44be71c3db6f06db82a98f312b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
[NetDev]
Name={{ wireguard_p2p_interface.name }}
Kind=wireguard
{% if 'description' in wireguard_p2p_interface %}
Description={{ wireguard_p2p_interface.description }}
{% endif %}
[WireGuard]
PrivateKey={{ wireguard_p2p_interface.priv_key }}
{% if 'listen_port' in wireguard_p2p_interface %}
ListenPort={{ wireguard_p2p_interface.listen_port }}
{% endif %}
[WireGuardPeer]
PublicKey={{ wireguard_p2p_peer.pub_key }}
{% for ip in wireguard_p2p_peer.allowed_ips %}
AllowedIPs={{ ip }}
{% endfor %}
{% if 'endpoint' in wireguard_p2p_peer %}
Endpoint={{ wireguard_p2p_peer.endpoint.host }}:{{ wireguard_p2p_peer.endpoint.port | default(51820) }}
{% endif %}
{% if 'keepalive_interval' in wireguard_p2p_peer %}
PersistentKeepalive={{ wireguard_p2p_peer.keepalive_interval }}
{% endif %}
|