8. NTP - MikaelAndriIngason/KEST3LN05EU-Lokaverkefni GitHub Wiki

NTP Installation

Server

$ sudo apt-get install ntp

Client

$ sudo apt-get install ntpdate
$ sudo apt-get install ntp


NTP Configuration

Server

$ sudo nano /etc/ntp.conf
$ sudo ufw allow from any to any port 123 proto udp

(got the pools from https://www.pool.ntp.org/zone/is)

ntpconfig

Client

$ sudo nano /etc/hosts

ntpclient1

$ sudo nano /etc/ntp.conf

ntpclient2


NTP Synchronization from client

$ ntpq -p

ntpsync