make adguard listen on vpn
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user