adguard stuffs
This commit is contained in:
@@ -4,5 +4,33 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
mutableSettings = true;
|
mutableSettings = true;
|
||||||
}
|
settings = {
|
||||||
|
users = [
|
||||||
|
{
|
||||||
|
name = "mjallen";
|
||||||
|
password = "$2a$10$G07P7V1EnBQxWtMNGyfgTOTpAgr4d.uqYoG.cGSFCv9jQdiYWCsfq";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
dns = {
|
||||||
|
upstream_dns = [
|
||||||
|
"https://dns10.quad9.net/dns-query"
|
||||||
|
"1.1.1.1"
|
||||||
|
"8.8.8.8"
|
||||||
|
];
|
||||||
|
bootstrap_dns = [
|
||||||
|
"9.9.9.10"
|
||||||
|
"149.112.112.10"
|
||||||
|
"2620:fe::10"
|
||||||
|
"2620:fe::fe:10"
|
||||||
|
];
|
||||||
|
upstream_mode = "load_balance";
|
||||||
|
trusted_proxies = [
|
||||||
|
"127.0.0.0/8"
|
||||||
|
"::1/128"
|
||||||
|
"10.0.1.18"
|
||||||
|
];
|
||||||
|
cache_optimistic = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -13,6 +13,8 @@ in
|
|||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowPing = true;
|
allowPing = true;
|
||||||
|
allowedTCPPorts = [ 80 ];
|
||||||
|
allowedUDPPorts = [ 80 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable Network Manager
|
# Enable Network Manager
|
||||||
@@ -57,12 +59,9 @@ in
|
|||||||
|
|
||||||
ipv4 = {
|
ipv4 = {
|
||||||
method = "manual";
|
method = "manual";
|
||||||
address-data = [{
|
address = "10.0.1.2/24";
|
||||||
address = "10.0.1.2";
|
|
||||||
prefix = 24;
|
|
||||||
}];
|
|
||||||
gateway = "10.0.1.1";
|
gateway = "10.0.1.1";
|
||||||
dns = [ "10.0.1.1" "1.1.1.1" ];
|
dns = "1.1.1.1";
|
||||||
};
|
};
|
||||||
ipv6 = {
|
ipv6 = {
|
||||||
addr-gen-mode = "stable-privacy";
|
addr-gen-mode = "stable-privacy";
|
||||||
|
|||||||
Reference in New Issue
Block a user