Skip to main content

NB: NTPD+GPSD local time precision server using shm

grep -v ^# /etc/ntp.conf  | uniq
tos minclock 3 maxclock 6 minsane 3 orphan 15

server 0.ru.pool.ntp.org iburst
server 1.ru.pool.ntp.org iburst
server 2.ru.pool.ntp.org iburst
server 3.ru.pool.ntp.org iburst

restrict default kod limited nomodify nopeer noquery notrap
restrict 192.168.xxx.0 mask 255.255.255.0 nomodify notrap
restrict 192.168.yyy.0 mask 255.255.255.0 nomodify notrap
restrict 127.0.0.1
restrict ::1

driftfile /var/lib/ntp/ntp.drift
logconfig =syncstatus +allevents +allinfo +allstatus
logfile /var/log/ntp.log
statsdir /var/log/ntpstats/
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

server 127.127.1.0
fudge 127.127.1.0 stratum 4

server 127.127.28.0 
fudge 127.127.28.0 time1 0.172 refid GPS
server 127.127.28.1 
fudge 127.127.28.1 refid PPS
screen watch ntpq -pn -c ass -c rv
cgps -s
gpsmon