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

What's hot (20)

PDF
Ftp configuration in rhel7
Balamurugan M
 
DOCX
3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN
Saroj Sahu
 
PDF
How To Configure VNC Server on CentOS 7
VCP Muthukrishna
 
DOCX
Kickstart
Dhananjayan Ezhumalai
 
PPTX
Presentation Linux Server setup Advance Networking
Tariqul Islam Shohag
 
PDF
mail server
chacheng oo
 
PDF
Basic security & info
Tola LENG
 
DOCX
How to shutdown the Netapp SAN 8.3 and 9.2 version
Saroj Sahu
 
PDF
Building a moat bastion server
nseemiller
 
PDF
Free radius billing server with practical vpn exmaple
Chanaka Lasantha
 
DOCX
Huawei cisco command conversion
james Omara
 
PDF
TFTP Installation Configuration Guide
VCP Muthukrishna
 
PDF
Comandos cisco x huawei
andre gomes
 
DOCX
How to shut down Netapp san 9.2 cluster mode version1
Saroj Sahu
 
TXT
Server readme
Stenli Siderov
 
PPTX
How to shutdown and power up of the netapp cluster mode storage system
Saroj Sahu
 
PDF
How To Install and Configure GNome on CentOS 7
VCP Muthukrishna
 
PDF
Linux Basic Administration Commands Guide
VCP Muthukrishna
 
PDF
Cisco vs. huawei CLI Commands
Bootcamp SCL
 
PDF
2. reverse primarydns using bind for ptr and cname record ipv4
Piyush Kumar
 
Ftp configuration in rhel7
Balamurugan M
 
3PAR: HOW TO CHANGE THE IP ADDRESS OF HP 3PAR SAN
Saroj Sahu
 
How To Configure VNC Server on CentOS 7
VCP Muthukrishna
 
Presentation Linux Server setup Advance Networking
Tariqul Islam Shohag
 
mail server
chacheng oo
 
Basic security & info
Tola LENG
 
How to shutdown the Netapp SAN 8.3 and 9.2 version
Saroj Sahu
 
Building a moat bastion server
nseemiller
 
Free radius billing server with practical vpn exmaple
Chanaka Lasantha
 
Huawei cisco command conversion
james Omara
 
TFTP Installation Configuration Guide
VCP Muthukrishna
 
Comandos cisco x huawei
andre gomes
 
How to shut down Netapp san 9.2 cluster mode version1
Saroj Sahu
 
Server readme
Stenli Siderov
 
How to shutdown and power up of the netapp cluster mode storage system
Saroj Sahu
 
How To Install and Configure GNome on CentOS 7
VCP Muthukrishna
 
Linux Basic Administration Commands Guide
VCP Muthukrishna
 
Cisco vs. huawei CLI Commands
Bootcamp SCL
 
2. reverse primarydns using bind for ptr and cname record ipv4
Piyush Kumar
 

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

PDF
How To Install and Configure Chrony on RHEL 7
VCP Muthukrishna
 
PDF
Openvpn
mato2012
 
PPT
Large Scale Deployment of Linux
Kshitij Agarwal
 
PDF
FreeBSD, ipfw and OpenVPN 2.1 server
Tomaz Muraus
 
PDF
March 2014 CMUG Minutes
CM-UG.com
 
DOC
How to set ssh telnet-http connection timeout using mpf for asa 8.3 and later
candy tang
 
PDF
บล๊อกเวปไซท์ บน Open WRT หรือ บน Ubiquiti NanoStation M5 หรือ บน airOS
Tũi Wichets
 
PPTX
NagiOs.pptxhjkgfddssddfccgghuikjhgvccvvhjj
rani marri
 
PDF
[Advantech] ADAM-3600 open vpn setting Tutorial step by step
Ming-Hung Hseih
 
PPTX
Introduction to Haproxy
Shaopeng He
 
PPTX
kubernetes baremetal installation and practice
wonyong hwang
 
PDF
HCL Sametime Meetings 11.5 Pre-Release - Step-by-Step
Ales Lichtenberg
 
DOCX
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
JohnWilson47710
 
PDF
sharing-filesystems-using-nfs-slides.pdf
Madi979303
 
PDF
Membangun server intranet dengan linux
Didit Septiawan
 
PPTX
Automatic Configuration Management for Kamailio and Asterisk in the era of Pu...
Digium
 
PDF
4 ip services dhcp-part b
SagarR24
 
PDF
OpenVPN
Emil CHERICHEȘ
 
PDF
Red hat enterprise_linux-8-configuring_basic_system_settings-en-us
João Filho
 
PDF
Auto call setup for xcal series 3.x.xx ftp
Outsource Benchmarking Projectss
 
How To Install and Configure Chrony on RHEL 7
VCP Muthukrishna
 
Openvpn
mato2012
 
Large Scale Deployment of Linux
Kshitij Agarwal
 
FreeBSD, ipfw and OpenVPN 2.1 server
Tomaz Muraus
 
March 2014 CMUG Minutes
CM-UG.com
 
How to set ssh telnet-http connection timeout using mpf for asa 8.3 and later
candy tang
 
บล๊อกเวปไซท์ บน Open WRT หรือ บน Ubiquiti NanoStation M5 หรือ บน airOS
Tũi Wichets
 
NagiOs.pptxhjkgfddssddfccgghuikjhgvccvvhjj
rani marri
 
[Advantech] ADAM-3600 open vpn setting Tutorial step by step
Ming-Hung Hseih
 
Introduction to Haproxy
Shaopeng He
 
kubernetes baremetal installation and practice
wonyong hwang
 
HCL Sametime Meetings 11.5 Pre-Release - Step-by-Step
Ales Lichtenberg
 
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
JohnWilson47710
 
sharing-filesystems-using-nfs-slides.pdf
Madi979303
 
Membangun server intranet dengan linux
Didit Septiawan
 
Automatic Configuration Management for Kamailio and Asterisk in the era of Pu...
Digium
 
4 ip services dhcp-part b
SagarR24
 
Red hat enterprise_linux-8-configuring_basic_system_settings-en-us
João Filho
 
Auto call setup for xcal series 3.x.xx ftp
Outsource Benchmarking Projectss
 
Ad

Recently uploaded (20)

PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PPTX
ENSA_Module_7.pptx_wide_area_network_concepts
RanaMukherjee24
 
PPTX
Water resources Engineering GIS KRT.pptx
Krunal Thanki
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PPTX
cybersecurityandthe importance of the that
JayachanduHNJc
 
PDF
Air -Powered Car PPT by ER. SHRESTH SUDHIR KOKNE.pdf
SHRESTHKOKNE
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Jual GPS Geodetik CHCNAV i93 IMU-RTK Lanjutan dengan Survei Visual
Budi Minds
 
PDF
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PPTX
Basics of Auto Computer Aided Drafting .pptx
Krunal Thanki
 
PPTX
Precedence and Associativity in C prog. language
Mahendra Dheer
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
PPTX
Ground improvement techniques-DEWATERING
DivakarSai4
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
SG1-ALM-MS-EL-30-0008 (00) MS - Isolators and disconnecting switches.pdf
djiceramil
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
ENSA_Module_7.pptx_wide_area_network_concepts
RanaMukherjee24
 
Water resources Engineering GIS KRT.pptx
Krunal Thanki
 
Zero Carbon Building Performance standard
BassemOsman1
 
cybersecurityandthe importance of the that
JayachanduHNJc
 
Air -Powered Car PPT by ER. SHRESTH SUDHIR KOKNE.pdf
SHRESTHKOKNE
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Jual GPS Geodetik CHCNAV i93 IMU-RTK Lanjutan dengan Survei Visual
Budi Minds
 
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
Basics of Auto Computer Aided Drafting .pptx
Krunal Thanki
 
Precedence and Associativity in C prog. language
Mahendra Dheer
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
Ground improvement techniques-DEWATERING
DivakarSai4
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
SG1-ALM-MS-EL-30-0008 (00) MS - Isolators and disconnecting switches.pdf
djiceramil
 
Ad

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