From af936990e29b76c7c67bfcf6f90f45d2b0a6eabb Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 23 Jan 2020 20:06:45 +0000 Subject: [PATCH] Add custom DNS server --- ansible/roles/gateway/files/wireguard-client.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/gateway/files/wireguard-client.conf b/ansible/roles/gateway/files/wireguard-client.conf index 93e5d6c..0fb89e3 100644 --- a/ansible/roles/gateway/files/wireguard-client.conf +++ b/ansible/roles/gateway/files/wireguard-client.conf @@ -1,6 +1,9 @@ [Interface] Address = {{ item.value.ip }} PrivateKey = {{ item.value.private_key }} +{% if item.value != wireguard.clients.intersect %} +DNS = {{ wireguard.clients.intersect.ip }} +{% endif %} [Peer] PublicKey = {{ wireguard.server.public_key }}