How to Install and Configure NTP Server Debian 10 (Buster) – Network Time Protocol (NTP) is a protocol used for synchronizing time on a network either on a LAN (Local Area Network) or on an internet network and to synchronize system clocks the computer is above packet-switching, variable-latency data networks. Why do we need these NTP settings? time synchronization will be more important if at any time there is someone who violates the right to take over the server of course we will know more than the server log by matching the time.
Every country also has an ntp server that we can synchronize into our local or public server. The NTP application install package on Debian 10 has 2 namely NTPd and Chrony. Here we only use the NTPd app install package, before friends have already downloaded 3 Debian 10 DVDs and then added them to your server as a local or offline repository. Maybe that’s just a little explanation we proceed to the steps to install and configure NTP Server Debian 10. Or you can get Debian 10 on official website here.. Debian 10 Buster
1. Check Connection Internet
Make sure your local server is connected to the internet using the test ping google.com or 188.8.131.52, if it has been replayed or connected, install the NTPd package with the command as follows:
apt-get install ntp
After typing the command, don’t forget to press “enter” to execute it. And do press “Y” function, we agree to install the NTPd package.
2. Edit File ntp.conf
Then edit the NTPd configuration file where the configuration is located in the “/etc/ntp.conf” folder. To edit the file we can use the CLI text editor, nano, then type the command “nano /etc/ntp.conf” don’t forget to press “enter”. Then edit the line or the line “pool 0.debian.pool.ntp.org iburst …..” put a pager in front, add below with the address of the Indonesian NTP server and our local server to the client. For that you can see the following picture:
3. Configure Lokal Server NTP
When you try install ntp server, do allow our local network so that it can synchronize the time according to our local server. Which is where we edit the line “restrict 192.168 …..” fill in according to the address of our local server that is used like 192.168.137.0/24 if you have saved the configuration by pressing CTRL + X then press “Y” don’t forget to press “enter” as well .
4. Restart and Check Status Service NTP
After we finish editing the configuration, don’t forget to restart the ntp service with the command:
The lowest command is useful for checking whether it is active or not servicing our ntp.
The fifth step, we check whether we can connect to the Indonesian NTP server on our local server with the command:
root@idnetworks:~# ntpq -p
NTP server addresses will appear according to their respective countries so it doesn’t have to be the same.
We have finished installing and configuring the Debian NTP Server 10 (Buster) to test the client side later, you can click on the following title: How to set up NTP Client in Windows 10. Maybe that’s just a little sharing about how we set the NTP Server on Debian 10 (Buster ).
And here that is our tutorial, if it is useful then share and subscribe to our channel. Thank you everyone 🙂