kp_wireguard/vg/playbooks/templates/peer_wg0.conf

11 lines
278 B
Plaintext
Raw Normal View History

2023-03-09 18:24:52 +01:00
{% set peer_id_int = peer_id | int %}
{% set peer_ip = peer_id_int + 1 %}
[Interface]
PrivateKey = {{ peer_node_private_key }}
Address = 10.6.0.{{ peer_ip }}/24
[Peer]
PublicKey = {{ root_node_public_key }}
AllowedIPs = 10.6.0.0/24
Endpoint = {{ root_node_public_ip }}:51820