IS_NTP_CONFIG #33

Open
opened 2018-12-20 10:56:43 +01:00 by benpro · 1 comment
Contributor

Check if NTP configuration is not an old one.
The check should be for Stretch+, here the difference needed:

diff --git a/ntp.conf b/ntp.conf
index a698eca..496c863 100644
--- a/ntp.conf
+++ b/ntp.conf
@@ -18,7 +18,7 @@ filegen clockstats file clockstats type day enable
 # pool: <http://www.pool.ntp.org/join.html>

 #server pool.ntp.org
-server ntp.evolix.net
+server ntp.evolix.net iburst

 # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
 # details.  The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
@@ -31,7 +31,7 @@ server ntp.evolix.net
 #restrict -4 default kod notrap nomodify nopeer noquery
 #restrict -6 default kod notrap nomodify nopeer noquery

+restrict -4 default kod notrap nomodify nopeer noquery
+restrict -6 default kod notrap nomodify nopeer noquery
 restrict 127.0.0.1
 restrict ::1
-restrict -4 default ignore
-restrict -6 default ignore
Check if NTP configuration is not an old one. The check should be for Stretch+, here the difference needed: ```diff diff --git a/ntp.conf b/ntp.conf index a698eca..496c863 100644 --- a/ntp.conf +++ b/ntp.conf @@ -18,7 +18,7 @@ filegen clockstats file clockstats type day enable # pool: <http://www.pool.ntp.org/join.html> #server pool.ntp.org -server ntp.evolix.net +server ntp.evolix.net iburst # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions> @@ -31,7 +31,7 @@ server ntp.evolix.net #restrict -4 default kod notrap nomodify nopeer noquery #restrict -6 default kod notrap nomodify nopeer noquery +restrict -4 default kod notrap nomodify nopeer noquery +restrict -6 default kod notrap nomodify nopeer noquery restrict 127.0.0.1 restrict ::1 -restrict -4 default ignore -restrict -6 default ignore ```
benpro added the
enhancement
label 2018-12-20 10:56:55 +01:00
Owner

This is Strech and upper

diff --git a/ntp.conf b/ntp.conf
index a698eca..496c863 100644
--- a/ntp.conf
+++ b/ntp.conf
@@ -18,7 +18,7 @@ filegen clockstats file clockstats type day enable
 # pool: <http://www.pool.ntp.org/join.html>

 #server pool.ntp.org
-server ntp.evolix.net
+server ntp.evolix.net iburst

 # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
 # details.  The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
@@ -31,7 +31,7 @@ server ntp.evolix.net
 #restrict -4 default kod notrap nomodify nopeer noquery
 #restrict -6 default kod notrap nomodify nopeer noquery

 restrict 127.0.0.1
 restrict ::1
+restrict source nomodify noquery notrap
 restrict -4 default ignore
 restrict -6 default ignore

On jessie, a workaround is to have "restrict ntp.evolix.net nomodify noquery notrap" instead of the "restrict source" of Stretch

This is Strech and upper ```diff diff --git a/ntp.conf b/ntp.conf index a698eca..496c863 100644 --- a/ntp.conf +++ b/ntp.conf @@ -18,7 +18,7 @@ filegen clockstats file clockstats type day enable # pool: <http://www.pool.ntp.org/join.html> #server pool.ntp.org -server ntp.evolix.net +server ntp.evolix.net iburst # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for # details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions> @@ -31,7 +31,7 @@ server ntp.evolix.net #restrict -4 default kod notrap nomodify nopeer noquery #restrict -6 default kod notrap nomodify nopeer noquery restrict 127.0.0.1 restrict ::1 +restrict source nomodify noquery notrap restrict -4 default ignore restrict -6 default ignore ``` On jessie, a workaround is to have "restrict ntp.evolix.net nomodify noquery notrap" instead of the "restrict source" of Stretch
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: evolix/evocheck#33
No description provided.