modules/wg: use custom dns server

This commit is contained in:
Dmitriy Pleshevskiy 2023-08-01 12:54:35 +03:00
parent b6b8e8dc82
commit 23d2192b23
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985

View file

@ -31,6 +31,7 @@ in
wg0 = { wg0 = {
# Determines the IP address and subnet of the client's end of the tunnel interface. # Determines the IP address and subnet of the client's end of the tunnel interface.
address = [ cfg.ip ]; address = [ cfg.ip ];
dns = [ "10.20.30.1" ];
listenPort = serverPort; # to match firewall allowedUDPPorts (without this wg uses random port numbers) listenPort = serverPort; # to match firewall allowedUDPPorts (without this wg uses random port numbers)