enable bind dns and chrony ntp server and set them up in default.nix
This commit is contained in:
parent
7d01f35fd0
commit
006c95424f
2 changed files with 20 additions and 9 deletions
|
|
@ -20,10 +20,6 @@
|
|||
}
|
||||
];
|
||||
defaultGateway.address = "141.56.51.254";
|
||||
nameservers = [
|
||||
"9.9.9.9"
|
||||
"1.1.1.1"
|
||||
];
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
22
|
||||
|
|
@ -222,7 +218,10 @@
|
|||
"9.9.9.9"
|
||||
"1.1.1.1"
|
||||
];
|
||||
listenOn = [ "141.56.51.1" ];
|
||||
listenOn = [
|
||||
"141.56.51.1"
|
||||
"127.0.0.1"
|
||||
];
|
||||
listenOnIpv6 = [ ];
|
||||
};
|
||||
|
||||
|
|
@ -230,7 +229,12 @@
|
|||
chrony = {
|
||||
enable = true;
|
||||
enableNTS = false;
|
||||
servers = [ "pool.ntp.org" ];
|
||||
servers = [
|
||||
"0.de.pool.ntp.org"
|
||||
"1.de.pool.ntp.org"
|
||||
"2.de.pool.ntp.org"
|
||||
"3.de.pool.ntp.org"
|
||||
];
|
||||
serverOption = "iburst";
|
||||
extraConfig = ''
|
||||
# Allow NTP client access from local network
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue