hello,
Lately, I’ve been having trouble getting a score of 20 from my NTP server. Initially, it hovered around 9 or 10. I noticed several timeouts in the logs. Initially, I blamed my ISP until I discovered that NTPsec implements internal security limits that can be disabled with “unrestrict default noquery limited.”
After disabling NTPsec’s internal security, the score returned to 20. I don’t think this is the best solution, as it’s probably now subject to DDOS reflection. Does anyone have any settings to suggest? My current configuration:
#/etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntpsec/ntp.drift
Leap seconds definition provided by tzdata
leapfile /usr/share/zoneinfo/leap-seconds.list
#Enable this if you want statistics to be logged.
statsdir /var/log/ntpsec/
#statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
#By default, exchange time with everybody, but don’t allow configuration.
restrict default notrap nomodify nopeer noquery
restrict -6 default notrap nomodify nopeer noquery
#Needed for adding pool entries
restrict source notrap nomodify noquery
unrestrict default noquery limited # ← added this to solve my low score and time out from monitoring server
logfile /var/log/ntp.log
server 127.127.20.0 mode 24 time1 0.0 iburst prefer minpoll 4 maxpoll 6
fudge 127.127.20.0 flag1 1 flag3 1 time1 0.0 time2 0.500 refid GPS
server 192.168.200.203
server 192.168.200.204
server 192.168.200.212
server ntp1.inrim.it
server ntp2.inrim.it
pool 0.it.pool.ntp.org