summaryrefslogtreecommitdiff
path: root/roles/install_wireguard_backbone/templates/wg2.conf.j2
blob: f16d668303ec52eb2a138b1b5ad52743ed813867 (plain)
1
2
3
4
5
6
7
8
9
10
[Interface]
ListenPort = {{ item.port }}
PrivateKey = {{ wireguard_bb_priv_key }}

[Peer]
PublicKey = {{ item.pub_key }}
AllowedIPs = 0.0.0.0/0,::/0
PersistentKeepalive = 30
{% if item.endpoint is defined %}Endpoint = [{{ item.endpoint }}]:{{ wireguard_bb_port }}{% endif %}