Setup NTP Server On RHEL 7
Install & Konfigurasi NTP
yum install ntp
Setup Konfigurasi NTP
vi /etc/ntp.conf
- Replace setup IP Address Pool NTP Syncronize nya :
Setup Default di non aktifkan
#server 0.rhel.pool.ntp.org iburst
#server 1.rhel.pool.ntp.org iburst
#server 2.rhel.pool.ntp.org iburst
#server 3.rhel.pool.ntp.org iburstAdd IP address NTP Syncronize :
server 172.17.122.1
server 172.17.250.29
server 172.27.250.29Jika ada koneksi interout internet gunakan pool ntp indonesia berikut :
server 0.id.pool.ntp.org server 1.id.pool.ntp.org server 2.id.pool.ntp.org server 3.id.pool.ntp.org
- Setup host on local network ntp client
restrict 10.23.0.0 mask 255.255.0.0 nomodify notrap
restrict 10.25.0.0 mask 255.255.0.0 nomodify notrap
- Tambahkan untuk create logging NTP
logfile /var/log/ntp.log
Save Konfigurasi ntp.conf
Setup Open Firewall Linux
firewall-cmd –permanent –zone=public –add-service=ntp
firewall-cmd –reload
Start service ntpd
systemctl start ntpd
systemctl enable ntpd
Verify NTP Koneksi
ntpq -p
timedateclt status
ntpstat
NTP CIMB NIAGA
==============
ntp.cimbniaga.co.id (172.17.122.1) — PROD
ntp.cimbniaga.co.id (172.17.121.57) — PROD
10.23.10.10 — DEV