Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2015 12:27:17 +1000
From:      John Marshall <john.marshall@riverwillow.com.au>
To:        freebsd-stable@freebsd.org
Subject:   10.2-BETA2 patch etc/ntp.conf to enable ntpd pool client functionality
Message-ID:  <20150724022717.GA61649@rwpc16.gfn.riverwillow.net.au>

next in thread | raw e-mail | index | archive | help

--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I have submitted a patch to the distributed ntp.conf to enable ntpd pool
client functionality.  This was not possible in the ancient version of
ntpd shipped with FreeBSD releases over the past several years.

  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D201803

Essentially this gives you a larger set of DYNAMIC servers from the
pool.  If ntpd decides one of the configured servers has become
unreliable it will drop it and configure a new one.

Also, there is a 'restrict source' command which provides template
access restrictions for upstream servers.  When a server is dynamically
configured, a dynamic restrict entry is created for it from the
'restrict source' template.  When a server is dynamically removed, its
'restrict' entry is also removed.

This is the result on a 10.2-BETA2 (r285783) server.

rwsrv02> ntpq -np
     remote           refid      st t when poll reach   delay   offset  jit=
ter
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
 0.freebsd.pool. .POOL.          16 p    -   64    0    0.000    0.000   0.=
004
 1.freebsd.pool. .POOL.          16 p    -   64    0    0.000    0.000   0.=
004
 2.freebsd.pool. .POOL.          16 p    -   64    0    0.000    0.000   0.=
004
+125.255.139.115 130.194.1.96     2 u   27  128  377   43.168   -5.505   0.=
924
+203.23.237.200  203.35.83.242    2 u   26  128  377   29.877   -4.786   0.=
749
-121.0.0.42      23.31.237.112    3 u  212  256  377   46.560   -2.756   5.=
783
*54.252.165.245  202.21.137.10    2 u   25  128  377   30.060   -4.859   0.=
783
-2001:418:3ff::1 204.123.2.72     2 u  165  256  377  173.324   -1.592   1.=
651
-2001:df0:fe:2:: 130.102.2.123    3 u  106  256  377   44.177    4.080   3.=
690
+130.102.2.123   216.218.254.202  2 u   20  128  377   46.288   -4.332   1.=
416

The same server running an un-patched ntp.conf looks like this.

rwsrv02> ntpq -np
     remote           refid      st t when poll reach   delay   offset  jit=
ter
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
*54.252.165.245  202.21.137.10    2 u   32   64   17   31.100   -7.764   3.=
887
+202.127.210.37  130.102.2.123    3 u   32   64   17   40.181    2.001   2.=
074
+2001:df0:fe:2:: 130.102.2.123    3 u   32   64   17   45.974    2.414   2.=
502

--=20
John Marshall

--MGYHOYXEY6WxJCY8
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlWxooUACgkQw/tAaKKahKJ9DQCfXM+vKBd0uJq1GeMwEdDvx9hV
wd8AoMK1auxlauaFmywQYcQVaw0Sw6sS
=UcVr
-----END PGP SIGNATURE-----

--MGYHOYXEY6WxJCY8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150724022717.GA61649>