Checking for free resources – memory and disk (free and df )
121
NTP serverAs
we introduced earlier, chrony can also be configured as a server for your network. In this mode, our system will be providing accurate clock information to other hosts without consuming external bandwidth or resources from higher-stratum servers.
This configuration is also performed via the /etc/chrony.conf file, which is where we will be
adding anew directive that is, allow. You can see an illustration of this here Allow NTP client access from all hosts allow all
This change enables chrony to listen on all host requests.
Alternatively, we can define a subnet or host to listen to, such as allow 1.1.1.1. More than one directive can be used to define different subnets. Alternatively, you can use the deny directive to block specific hosts or subnets from reaching our NTP server.
The serving time starts from the base that our server
is already synchronized with, as well as an external
NTP server, but let’s think about an environment without connectivity.
In this case, our server will not be connected to an external source and it will not serve time.
chrony allows us to define a fake stratum for our server. This is done via the local directive in the configuration file. This allows the daemon to get a higher local stratum so that it can serve the time to other hosts. You can see an example of this here:
Share with your friends: