User Tools

Site Tools


vm:ntp

NTP server

Debian

OS: Debian 11 (testing)
IP: 192.168.1.30 (ntp.fortier-family.com)

NTP server

apt-get install ntp
sntp --version
vi /etc/ntp.conf

choose a pool close : https://support.ntp.org/bin/view/Servers/NTPPoolServers

server 0.ch.pool.ntp.org
server 1.ch.pool.ntp.org
server 2.ch.pool.ntp.org
server 3.ch.pool.ntp.org
 vi/etc/ntpsec/ntp.conf
# Comment this out if you have a refclock and want it to be able to discipline
# the clock by itself (e.g. if the system is not connected to the network).
#tos minclock 4 minsane 3
systemctl restart ntp
systemctl status ntp

Ubuntu

...kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
 ufw allow from any to any port 123 proto udp

Debian

 apt install -y firewalld
firewall-cmd --add-service={ssh,ntp} --permanent
firewall-cmd --reload

Clients

Quick check

 ntpdate ntp.fortier-family.com

More

NTP

Reference

vm/ntp.txt · Last modified: 2024/07/02 16:00 by warnaud