wgvirtipd/dev/config/wg0.conf.tmpl

15 lines
335 B
Cheetah
Raw Normal View History

2024-01-17 21:48:47 +01:00
[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 %}