NTP Server Centos 6.8
Network Time Protocol (NTP) yaitu protokol untuk mensinkronisasikan jam pada sistem komputer, variabel-latency jaringan data. NTP menggunakan protokol UDP pada port 123 sebagai lapisan transport.
Berikut cara untuk membuat NTP Server pada CentOs 6.8
1. Install and Configure NTPd
[root@ntp ~]# yum -y install ntp
[root@ntp ~]# vi /etc/ntp.conf
# pada baris 19: menambahkan jangkauan jaringan yang akan mengakses NTP Server
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap
# mengubah server untuk sinkronisasi ke zona waktu Anda
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server id.pool.ntp.org
server 0.id.pool.ntp.org
[root@ntp ~]# /etc/rc.d/init.d/ntpd start
Starting ntpd: [ OK ]
[root@ntp ~]# chkconfig ntpd on
2. Jika Iptables berjalan, maka berikan akses untuk port NTP. NTP menggunakan 123 / UDP.
[root@ntp ~]# iptables -I INPUT 5 -p udp -m state --state NEW -m udp --dport 123 -j ACCEPT
3. Lakukan pengecekan apakah NTP sudah berjalan normal
[root@ntp ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
+203.114.225.252 118.103.146.184 2 u 294 1024 373 16.309 13.068 7.263
+ntp0.laxo.net.i 202.65.114.202 3 u 162 1024 275 5.685 -2.172 1.723
ns1.p-link.co.i .INIT. 16 u - 1024 0 0.000 0.000 0.000
*ntp.lipi.go.id 203.160.128.66 2 u 250 1024 377 7.381 -4.033 5.451
0 komentar:
Post a Comment