Use https://seceonhelp.freshdesk.com/support/login to access updated Knowledge Base Articles, Submit Technical Support Tickets and Review Status of submitted support tickets.
How to configure the NTP client to access only US NTP pool
Overview
This document will help you to configure NTP (The Network Time Protocol) client to access only the US NTP pool.
Steps of Configuration
Log in as the root user
Run the command: vi /etc/ntp.conf
Please add the following in the conf file.
# Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server 0.us.pool.ntp.org server 1.us.pool.ntp.org server 2.us.pool.ntp.org server 3.us.pool.ntp.org
Restart the NTPD services with the command : systemctl restart ntpd
Change in multiple host (If Required)
Please use the script below :
#!/bin/bash
pass=testpass
for ip in 192.168.9.{2..254}
do
timeout 5 sshpass -p "$pass" scp -o 'StrictHostKeyChecking no' -r /etc/ntp.conf root@$ip:/etc/ntp.conf
timeout 10 sshpass -p "$pass" ssh -o 'StrictHostKeyChecking no' root@$ip 'systemctl restart ntpd'
done
Seceon Inc. All rights reserved. https://www.seceon.com