vm:ntp
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| vm:ntp [2024/07/02 16:00] – [NTP server] warnaud | vm:ntp [2025/02/25 08:06] (current) – [Debian] warnaud | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== NTP server ====== | ||
| + | ====== Debian ====== | ||
| + | |||
| + | OS: Debian 11 (testing)\\ | ||
| + | ===== NTP server ===== | ||
| + | |||
| + | <code bash> | ||
| + | apt-get install ntp | ||
| + | sntp --version | ||
| + | vi / | ||
| + | choose a pool close : https:// | ||
| + | <code perl> | ||
| + | server 0.ch.pool.ntp.org | ||
| + | server 1.ch.pool.ntp.org | ||
| + | server 2.ch.pool.ntp.org | ||
| + | server 3.ch.pool.ntp.org | ||
| + | </ | ||
| + | <code bash> vi/ | ||
| + | <code perl> | ||
| + | # 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</ | ||
| + | <code bash> | ||
| + | systemctl status ntp</ | ||
| + | ==== Ubuntu ==== | ||
| + | <code perl> | ||
| + | ...kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized</ | ||
| + | <code bash> ufw allow from any to any port 123 proto udp</ | ||
| + | ==== Debian ==== | ||
| + | <code bash> apt install -y firewalld | ||
| + | firewall-cmd --add-service={ssh, | ||
| + | firewall-cmd --reload | ||
| + | </ | ||
| + | |||
| + | ==== Clients ==== | ||
| + | === Quick check === | ||
| + | |||
| + | <code bash> ntpdate ntp.fortier-family.com</ | ||
| + | |||
| + | === More === | ||
| + | -> [[os: | ||
| + | |||
| + | |||
| + | ====== Reference ====== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
