make adguard listen on vpn

This commit is contained in:
Kopatz
2023-11-21 12:19:03 +01:00
parent 8f54516bab
commit b3a114091a

View File

@@ -1,6 +1,7 @@
{ config, pkgs, inputs, vars, ... }: { config, pkgs, inputs, vars, ... }:
let let
ip = vars.ipv4; ip = vars.ipv4;
wireguardIp = vars.wireguardIp;
in in
{ {
networking.firewall.allowedTCPPorts = [ 53 ]; networking.firewall.allowedTCPPorts = [ 53 ];
@@ -16,7 +17,7 @@ in
} }
]; ];
dns = { dns = {
bind_hosts = [ "127.0.0.1" "${ip}" ]; # "192.168.2.1" ]; bind_hosts = [ "127.0.0.1" ip wireguardIp ];
port = 53; port = 53;
protection_enabled = true; protection_enabled = true;
filtering_enabled = true; filtering_enabled = true;