See last page for copyright and document info, File: Reeve_GpsNtp-Pi_Setup.doc, Page 22
Next, scroll down to the list of four servers labeled
server 0.debian..., server 1.debian...
and so on. Delete the
four servers (or comment them out with the # character).
Now, enter the NTP server pool closest to your country; see {
NTPPool
}. The United States NTP server pool is
shown here. Note that the statement is preceded by the comment character #, which means the line will be
ignored. This is necessary to test the standalone operation. The comment character can be removed later as
described in
section 11
:
# pool us.pool.ntp.org iburst minpoll 6 prefer
To log statistics for later viewing and analysis, remove the comment character # from the beginning of the line
that starts with
statdir
. If statistics are not required, leave the comment character:
statsdir /var/log/ntpstats/
The NTP configuration file has several restrict statements with default settings. Two, in particular, require
modification. Find these statements (they may be separated by comments):
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
Insert the following statement and comment out the first two lines, as in:
restrict source notrap nomodify nopeer query
# restrict -4 default kod notrap nomodify nopeer noquery
# restrict -6 default kod notrap nomodify nopeer noquery
Do not change:
restrict 127.0.0.1
restrict ::1
Depending on how the NTP server will be used, it may be necessary to implement additional access restrictions
but that is not covered here. The restrict parameters are more fully documented here:
http://www.eecis.udel.edu/~mills/ntp/html/accopt.html
.
Type CTRL-X (Exit), Y (yes), Enter to save and close the editor.