diff --git a/roles/wireguard_server/templates/wg0-client.conf b/roles/wireguard_server/templates/wg0-client.conf index 4b160f8..d621a18 100644 --- a/roles/wireguard_server/templates/wg0-client.conf +++ b/roles/wireguard_server/templates/wg0-client.conf @@ -1,6 +1,6 @@ [Interface] -Address = {{ vpn_network }}.{{item|int + 1}}/32 -DNS = 9.9.9.9 +Address = {{ vpn_network }}.{{item|int + 2}}/32 +DNS = {{ dns_for_clients }} PrivateKey = {{ item.stdout }} [Peer]