I really don't understand how to specify the interface address for each
instance.
Here are my config files:
*conf.d/lan.conf*
server lanIP port 11123 minpoll 0 maxpoll 0 copy
allow
bindcmdaddress /var/run/chrony/chronyd-server_lan.sock
cmdport 11323
pidfile /var/run/chrony/chronyd-server_lan.pid
driftfile /var/lib/chrony/drift-server_lan

*conf.d/van.conf* (not wan, but van)
server vanIP port 11123 minpoll 0 maxpoll 0 copy
allow
bindcmdaddress /var/run/chrony/chronyd-server_van.sock
cmdport 11323
pidfile /var/run/chrony/chronyd-server_van.pid
driftfile /var/lib/chrony/drift-server_van

I used a sent script.

Here is *netstat -anupt | grep 123*
udp        0      0 127.0.0.1:11123         0.0.0.0:*
    35124/chronyd
udp        0      0 vanIP:49629        van IP :11123      ESTABLISHED
35124/chronyd
udp        0      0 lanIP:56374         lanIP :11123        ESTABLISHED
35124/chronyd
udp        0      0 0.0.0.0:123             0.0.0.0:*
    35122/chronyd
udp        0      0 0.0.0.0:123             0.0.0.0:*
    35120/chronyd
udp        0      0 0.0.0.0:123             0.0.0.0:*
    35123/chronyd
udp        0      0 0.0.0.0:123             0.0.0.0:*
    35121/chronyd

Where is
udp        0      lanIP:123              0.0.0.0:*
  xxxxx/chronyd
udp        0      vanIP:123             0.0.0.0:*
xxxxx/chronyd

And why are here
udp        0      0 0.0.0.0:123             0.0.0.0:*
    35121/chronyd
udp        0      0 0.0.0.0:123             0.0.0.0:*
    35121/chronyd
udp        0      0 0.0.0.0:123             0.0.0.0:*
    35121/chronyd
udp        0      0 0.0.0.0:123             0.0.0.0:*
    35121/chronyd

How chrony will know addresses to bind to ?

ср, 6 дек. 2023 г. в 11:25, Miroslav Lichvar <[email protected]>:

> On Wed, Dec 06, 2023 at 12:28:01AM +0300, CpServiceSPb wrote:
> > Can you either post a link or detailed instruction on how to launch
> > multiple chrony server instances for the same port but different
> > interfaces/addresses ?
>
> Here is an example:
>
> https://chrony-project.org/faq.html#_can_ntp_server_be_separated_from_ntp_client
>
> and a script:
> https://gist.github.com/mlichvar/d2260423e2c5c3d83ec9608feaa749f1
>
> You would just need to modify it to set different binddevice
> for each server instance.
>
> --
> Miroslav Lichvar
>
>
> --
> To unsubscribe email [email protected] with
> "unsubscribe" in the subject.
> For help email [email protected] with "help" in the
> subject.
> Trouble?  Email [email protected].
>
>

Reply via email to