Re: [chrony-users] Chrony Client Support for different ports to the same server? |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Chrony Client Support for different ports to the same server?
- From: "Derek Atkins" <derek@xxxxxxxxx>
- Date: Mon, 27 Jan 2025 10:33:58 -0500
- Dkim-filter: OpenDKIM Filter v2.11.0 mail.ihtfp.org 8E64A806C243
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ihtfp.com; s=default; t=1737992038; bh=w0dqrhfcV+MFlx2nBHFONlO8d3mcgbdz9Bwvj3K1aD0=; h=In-Reply-To:References:Date:Subject:From:To:From; b=k0muQy95tj3ixUhqOC1t9q+1xJVJQpjEn7UG1AF9oSPWfuI2fTYbOo6Gs3wfX8t7D pkcn613iHo+ODtFZMAXtb3FSzYus7dDTx29bmfXN69Q98+clrucm9oVlaXqNcOXuJP Lpwi8puVQa0sUzlBvrog/4mUPGRH1yu8/R/KQPAI=
Hi,
Thank you for the rapid response..
On Mon, January 27, 2025 10:21 am, Miroslav Lichvar wrote:
> On Mon, Jan 27, 2025 at 07:55:48AM -0500, Derek Atkins wrote:
>> I have a configuration of
>> server a.b.c.d
>> server a.b.c.d port 4123
[snip]
>
> Each IP address can be used only once as a source. The first one wins.
> In the system log you should see an error message about duplicated
> address, at least with more recent chrony versions.
>
> The sources are identified by IP address, not IP address+port. It's a
> design limitation which cannot be easily fixed without incompatible
> changes in the management protocol as exposed by chronyc.
I was afraid of that. I did eventually find the comment in ntp_sources.c
and, when exploring that code, it looked like a port number was not always
available when looking up a slot.
>> Alternatively, is there some test I can run to see if a port gets a
>> valid
>> response? Like "chronyd test a.b.c.d port 123" and use an exit-code to
>> determine if it got a response or not?
>
> chronyd -Q -t 1 "server $IP_ADDR port $PORT maxsamples 1"
Thanks for this.
I guess I'll have to change my auto-configuration process to use this.
Thanks!
>
> --
> Miroslav Lichvar
-derek
--
Derek Atkins 617-623-3745
derek@xxxxxxxxx www.ihtfp.com
Computer and Internet Security Consultant
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.