From 8efe01baade41b291ab7e6486a7e0a22282be99a Mon Sep 17 00:00:00 2001 From: elreydetoda Date: Sun, 2 Jun 2019 05:34:24 -0400 Subject: [PATCH] Update client.conf.j2 adding preshared key options --- roles/wireguard/templates/client.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/wireguard/templates/client.conf.j2 b/roles/wireguard/templates/client.conf.j2 index 5a4a759f..01ceaa6a 100644 --- a/roles/wireguard/templates/client.conf.j2 +++ b/roles/wireguard/templates/client.conf.j2 @@ -7,6 +7,7 @@ DNS = {{ wireguard_dns_servers }} [Peer] PublicKey = {{ lookup('file', wireguard_pki_path + '/public/' + IP_subject_alt_name) }} +PresharedKey = {{ lookup('file', wireguard_pki_path + '/public/' + item.1) }} AllowedIPs = 0.0.0.0/0{{ ', ::/0' if ipv6_support else '' }} Endpoint = {{ IP_subject_alt_name }}:{{ wireguard_port }} {{ 'PersistentKeepalive = ' + wireguard_PersistentKeepalive|string if wireguard_PersistentKeepalive > 0 else '' }}