SlideShare a Scribd company logo
1
CONFIGURATION OF NTP SERVER ON CENTOS 8
Chrony is a default NTP client as well as an NTP server on RHEL 8 / CentOS 8. This article will
provide you with an information on how to perform an installation and basic configuration of an NTP
server or client on RHEL 8.
 Install package Chrony NTP:
 dnf install chrony
 Enable chrony to start after boot:
 systemctl enable chronyd
 Set Chrony to act as an NTP server for a local network.
As already mentioned before the Chrony NTP daemon can act as both, NTP server or as NTP client. To
turn Chrony into an NTP server add the following line into the main Chrony
 /etc/chrony.conf configuration file: allow 10.30.30.0/24 ; allow 192.168.70.0/24
2
 Restart Chrony NTP daemon to apply the changes:
 systemctl restart chronyd
 Open firewall port to allow for incoming NTP requests:
1) Firewalld
 firewall-cmd –zone=privatekaan --add-service=ntp --permanent
 firewall-cmd –reload
 firewall-cmd –runtime-to-permanent
 firewall-cmd –zone=privatekaan --list-all
We have configured and see ntp service in our Firewalld. Now let’s do it via “IPTables” which we
are using actively.
3
2) IPTables
 iptables -A INPUT -s 10.30.30.254 -d 10.30.30.5 -p udp --dport ntp -j ACCEPT
 iptables-save > /etc/sysconfig/iptables
 iptables -L
 To turn Chrony into the NTP cleint add the following line into the main Chrony /etc/chrony.conf
configuration file. Change the IP address accordingly to point to your local Chrony NTP server:
 Server 10.30.30.5
4
 Restart Chrony NTP daemon to apply the changes:
 systemctl restart chronyd
 Check for NTP server sources. Your local NTP server should be listed:
 chronyc sources
 Check NTP client list on the NTP server:
 chronyc clients
1/16/2022
X
Kaan Aslandag
Signed by: www.kaan1.com

More Related Content

PDF
Firewalld LAB
PDF
Configuration IPTables On CentOS 8
PDF
Configuration of BIND DNS Server On CentOS 8
PDF
Configuration Firewalld On CentOS 8
PDF
CentOS Server Gui Initial Configuration
PDF
IPTables Lab
PDF
Dhcp
PDF
Configuration of Smtp Server On CentOS 8
Firewalld LAB
Configuration IPTables On CentOS 8
Configuration of BIND DNS Server On CentOS 8
Configuration Firewalld On CentOS 8
CentOS Server Gui Initial Configuration
IPTables Lab
Dhcp
Configuration of Smtp Server On CentOS 8

What's hot (20)

PDF
Ftp configuration in rhel7
DOCX
3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN
PDF
How To Configure VNC Server on CentOS 7
DOCX
PPTX
Presentation Linux Server setup Advance Networking
PDF
mail server
PDF
Basic security & info
DOCX
How to shutdown the Netapp SAN 8.3 and 9.2 version
PDF
Building a moat bastion server
PDF
Free radius billing server with practical vpn exmaple
DOCX
Huawei cisco command conversion
PDF
TFTP Installation Configuration Guide
PDF
Comandos cisco x huawei
DOCX
How to shut down Netapp san 9.2 cluster mode version1
TXT
Server readme
PPTX
How to shutdown and power up of the netapp cluster mode storage system
PDF
How To Install and Configure GNome on CentOS 7
PDF
Linux Basic Administration Commands Guide
PDF
Cisco vs. huawei CLI Commands
PDF
2. reverse primarydns using bind for ptr and cname record ipv4
Ftp configuration in rhel7
3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN
How To Configure VNC Server on CentOS 7
Presentation Linux Server setup Advance Networking
mail server
Basic security & info
How to shutdown the Netapp SAN 8.3 and 9.2 version
Building a moat bastion server
Free radius billing server with practical vpn exmaple
Huawei cisco command conversion
TFTP Installation Configuration Guide
Comandos cisco x huawei
How to shut down Netapp san 9.2 cluster mode version1
Server readme
How to shutdown and power up of the netapp cluster mode storage system
How To Install and Configure GNome on CentOS 7
Linux Basic Administration Commands Guide
Cisco vs. huawei CLI Commands
2. reverse primarydns using bind for ptr and cname record ipv4
Ad

Similar to Configuration of NTP Server on CentOS 8 (7)

PDF
How To Install and Configure Chrony on RHEL 7
PDF
2008-08-14 Managing your Red Hat Enterprise Linux guests with RHN Satellite
PPTX
Basic ntp configuration
PDF
Analyze and Store Logs - RHCSA (RH124).pdf
PDF
2008-10-14 Managing your Red Hat Enterprise Linux guests with RHN Satellite
PDF
2009-08-24 Managing your Red Hat Enterprise Linux Guests with RHN Satellite
PDF
SHARE.ORG Orlando 2015
How To Install and Configure Chrony on RHEL 7
2008-08-14 Managing your Red Hat Enterprise Linux guests with RHN Satellite
Basic ntp configuration
Analyze and Store Logs - RHCSA (RH124).pdf
2008-10-14 Managing your Red Hat Enterprise Linux guests with RHN Satellite
2009-08-24 Managing your Red Hat Enterprise Linux Guests with RHN Satellite
SHARE.ORG Orlando 2015
Ad

Recently uploaded (20)

PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Digital Logic Computer Design lecture notes
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Geodesy 1.pptx...............................................
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Digital Logic Computer Design lecture notes
OOP with Java - Java Introduction (Basics)
Foundation to blockchain - A guide to Blockchain Tech
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Geodesy 1.pptx...............................................
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
bas. eng. economics group 4 presentation 1.pptx
R24 SURVEYING LAB MANUAL for civil enggi
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
UNIT 4 Total Quality Management .pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx

Configuration of NTP Server on CentOS 8

  • 1. 1 CONFIGURATION OF NTP SERVER ON CENTOS 8 Chrony is a default NTP client as well as an NTP server on RHEL 8 / CentOS 8. This article will provide you with an information on how to perform an installation and basic configuration of an NTP server or client on RHEL 8.  Install package Chrony NTP:  dnf install chrony  Enable chrony to start after boot:  systemctl enable chronyd  Set Chrony to act as an NTP server for a local network. As already mentioned before the Chrony NTP daemon can act as both, NTP server or as NTP client. To turn Chrony into an NTP server add the following line into the main Chrony  /etc/chrony.conf configuration file: allow 10.30.30.0/24 ; allow 192.168.70.0/24
  • 2. 2  Restart Chrony NTP daemon to apply the changes:  systemctl restart chronyd  Open firewall port to allow for incoming NTP requests: 1) Firewalld  firewall-cmd –zone=privatekaan --add-service=ntp --permanent  firewall-cmd –reload  firewall-cmd –runtime-to-permanent  firewall-cmd –zone=privatekaan --list-all We have configured and see ntp service in our Firewalld. Now let’s do it via “IPTables” which we are using actively.
  • 3. 3 2) IPTables  iptables -A INPUT -s 10.30.30.254 -d 10.30.30.5 -p udp --dport ntp -j ACCEPT  iptables-save > /etc/sysconfig/iptables  iptables -L  To turn Chrony into the NTP cleint add the following line into the main Chrony /etc/chrony.conf configuration file. Change the IP address accordingly to point to your local Chrony NTP server:  Server 10.30.30.5
  • 4. 4  Restart Chrony NTP daemon to apply the changes:  systemctl restart chronyd  Check for NTP server sources. Your local NTP server should be listed:  chronyc sources  Check NTP client list on the NTP server:  chronyc clients 1/16/2022 X Kaan Aslandag Signed by: www.kaan1.com