wgvirtipd/dev/config/wg0.conf.tmpl
2024-01-17 21:49:09 +01:00

14 lines
335 B
Cheetah

[Interface]
Address = {{ item.ip }}/{{ mask_bits }}
ListenPort = {{ port }}
PrivateKey = {{ item.private_key }}
{% for iitem in keypairs %}
{% if iitem.item != item.item %}
[Peer]
PublicKey = {{ iitem.public_key }}
Endpoint = {{ iitem.item }}:{{ port }}
AllowedIPs = {{ iitem.ip }}/32
PersistentKeepalive=25
{% endif %}
{% endfor %}