From 6d41655e0a974c2facb9289cf736db3e5b806271 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 13 Nov 2022 14:49:13 +0100 Subject: [PATCH] change wireguard domaine to only redirect local domain on dns --- ansible/host_vars/corwin | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/host_vars/corwin b/ansible/host_vars/corwin index 74de256..7496676 100644 --- a/ansible/host_vars/corwin +++ b/ansible/host_vars/corwin @@ -11,6 +11,7 @@ wireguard_postup: - iptables -A FORWARD -i %i -j ACCEPT - iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE - sysctl -w net.ipv4.ip_forward=1 + - resolvectl dns %i 192.168.1.40 192.168.1.10; resolvectl domain %i ~ducamps.win ~consul wireguard_postdown: - iptables -D FORWARD -i %i -j ACCEPT