forked from malobeo/infrastructure
[ns1] setup forwarding, open ports
This commit is contained in:
@@ -19,8 +19,26 @@ in
|
|||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
networking.firewall = {
|
||||||
|
enable = true;
|
||||||
|
allowedTCPPorts = [ 53 ];
|
||||||
|
allowedUDPPorts = [ 53 ];
|
||||||
|
};
|
||||||
|
|
||||||
services.bind = {
|
services.bind = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
forwarders = [
|
||||||
|
"1.1.1.1"
|
||||||
|
"1.0.0.1"
|
||||||
|
];
|
||||||
|
|
||||||
|
cacheNetworks = [
|
||||||
|
"127.0.0.0/24"
|
||||||
|
"10.0.0.0/24"
|
||||||
|
"192.168.1.0/24"
|
||||||
|
"10.100.0.0/24"
|
||||||
|
];
|
||||||
|
|
||||||
zones = {
|
zones = {
|
||||||
"malobeo.org" = {
|
"malobeo.org" = {
|
||||||
master = true;
|
master = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user