On 30/10/14 13:30, ardi wrote:
having 2 GPS sources and 4 peers to each other (see below the setup),
When turning on 5th and 6th peers, they disturb my setup.
Is it possible to restrict to those 4 peers only and send time to stratums
lower than 2 as well? (example shown below
with partial solution and error on stratum3 client).
I also find this difficult to understand. However, I think the issue is
the that the "annoying" peers aren't real peers, they are clients
misconfigured as peers.
My understanding is that you should use authentication, combined with
restrict nopeer, to prevent this happening.
[email protected]:~# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
*local.xx .GPS. 1 u 1 16 377 0.344 -0.037 0.046
+remote.yy .GPS. 1 u - 16 377 34.258 -0.074 0.273
-local.a1 xx.xx.xx.a1 2 u 12 16 377 0.286 0.043 0.015
Refid = peer is not normally correct.
#----------------------------
restrict default noquery nomodify notrap
No nopeer.
setting for annoying local-annoying.c1:
peer xx.xx.xx.a2 key 2 minpoll 4 maxpoll 8
Appears to know the secret for a2, so is a trusted peer, not an interloper.
Partial solution:
(b-case)
[email protected]:/etc# cat ntp.conf
restrict default ignore
restrict 127.0.0.1
Told to ignore requests from everyone not unrestricted, and test machine
is not unrestricted.
Error on test server: (stratum3)
local.test xx.xx.xx.t1
ntpq> pee
remote refid st t when poll reach delay offset jitter
==============================================================================
xx.xx.xx.a2 .INIT. 16 u - 16 0 0.000 0.000 0.000
<---------does not get time from xx.xx.xx.a2!!!!
*xx.xx.xx.a1 xx.xx.xx.xx 2 u 1030 1024 377 0.322 -0.165 1.022
(config of xx.xx.xx.a1 as for local A2: (a-case)
So is correctly ignored.
server xx.xx.xx.a2 minpoll 4 maxpoll 4 prefer
Overriding maxpoll will result in excessive jitter and poor frequency
control.
_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions