Chrony Configuration
To start go to https://chrony.tuxfamily.org/download.html and download the latest version of chrony.
Then edit the /etc/chrony/chrony.conf file to look like this:
# 3 sources per time servers.
pool ntp.ubuntu.com iburst maxsources 3
pool time.nist.gov iburst maxsources 3
pool us.pool.ntp.org iburst maxsources 3
keyfile /etc/chrony/chrony.keys
driftfile /var/lib/chrony/chrony.drift
logdir /var/log/chrony
maxupdateskew 10.0
rtcsync
# Make steps in 100ms.
makestep 0.1 3Then restart chrony:
Next edit /etc/sysctl.conf to look like this:
Afterwards, edit /etc/security/limits.conf to this:
If your service starts with systemctl then edit /etc/systemd/system/.service to something along the lines of:
And run:
Finally, allow the bare minimum of firewall allowance with this:
This guide was heavily inspired by https://gist.github.com/ilap/54027fe9af0513c2701dc556221198b2
Last updated
Was this helpful?