How To Configure NTP Server Ubuntu 18.04 Bionic Beaver

Step 1: Configure NTPd Server

1.1 Run commands in root

sudo su

1.2 Disable timesyncd

sudo timedatectl set-ntp no

1.2.a Verify that timesyncd is disabled

sudo timedatectl
# The timesyncd.service should be set to 'no'

systemd-timesyncd.service active: no

1.3 Edit timesyncd.conf

sudo nano /etc/systemd/timesyncd.conf

1.3.a Remove hashtag from NTP statement


1.3.b Add your NTP server pool address

Exit and Save

1.4 Restart systemd-timesyncd

sudo systemctl restart systemd-timesyncd

1.4.a Verify ntp pool change

root@plex:/# systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-10-21 17:28:17 CEST; 18s ago
     Docs: man:systemd-timesyncd.service(8)
 Main PID: 6491 (systemd-timesyn)
   Status: "Synchronized to time server ("
    Tasks: 2 (limit: 2320)
   CGroup: /system.slice/systemd-timesyncd.service
           └─6491 /lib/systemd/systemd-timesyncd

Oct 21 17:28:16 plex.home.local systemd[1]: Starting Network Time Synchronization...
Oct 21 17:28:17 plex.home.local systemd[1]: Started Network Time Synchronization.
Oct 21 17:28:17 plex.home.local systemd-timesyncd[6491]: Synchronized to time server (

Step 2: Allow NTPd traffic in firewall

2.1 Allow NTPd traffic in firewall

sudo ufw allow 123/udp
root@plex:/# sudo ufw allow 123/udp
Rule added
Rule added (v6)