change wireguard domaine to only redirect local domain on dns

This commit is contained in:
vincent 2022-11-13 14:49:13 +01:00
parent 05d0055210
commit 6d41655e0a

View File

@ -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