diff options
Diffstat (limited to '')
-rw-r--r-- | roles/wireguard/templates/wg0.conf | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/wireguard/templates/wg0.conf b/roles/wireguard/templates/wg0.conf index 9e6f4c6..c6d94a1 100644 --- a/roles/wireguard/templates/wg0.conf +++ b/roles/wireguard/templates/wg0.conf @@ -10,6 +10,12 @@ PublicKey = {{ peer.public_key }} {% if peer.preshared_key is defined %} PresharedKey = {{ peer.preshared_key }} {% endif %} -AllowedIPs = {{ peer.addr4 }}/32, {{ peer.addr6 }}/128 +AllowedIPs = {{ peer.allowed_ips }} +{% if peer.endpoint is defined %} +Endpoint = {{ peer.endpoint }} +{% endif %} +{% if peer.persistent_keepalive is defined %} +PersistentKeepalive = 25 +{% endif %} {% endfor %} {% endif %} |