From 7c3af8a84d211a0f7a499a81f68e055a4fd0d7db Mon Sep 17 00:00:00 2001 From: Sammers21 Date: Mon, 1 Jan 2024 06:25:39 +0300 Subject: [PATCH] wsl2 support for generated configs --- roles/wireguard/templates/client.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/wireguard/templates/client.conf.j2 b/roles/wireguard/templates/client.conf.j2 index 409ec1852..74e90734f 100644 --- a/roles/wireguard/templates/client.conf.j2 +++ b/roles/wireguard/templates/client.conf.j2 @@ -8,6 +8,6 @@ DNS = {{ wireguard_dns_servers }} [Peer] PublicKey = {{ lookup('file', wireguard_pki_path + '/public/' + IP_subject_alt_name) }} PresharedKey = {{ lookup('file', wireguard_pki_path + '/preshared/' + item.1) }} -AllowedIPs = 0.0.0.0/0,::/0 +AllowedIPs = ::/128, 0.0.0.0/1, 128.0.0.0/1 Endpoint = {{ IP_subject_alt_name }}:{{ wireguard_port }} {{ 'PersistentKeepalive = ' + wireguard_PersistentKeepalive|string if wireguard_PersistentKeepalive > 0 else '' }}