Re: [chrony-dev] Multihomed (multiple) network interfaces support ! |
[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]
I really don't understand how to specify the interface address for each instance.Here are my config files:conf.d/lan.confserver 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_lanconf.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_vanI used a sent script.Here is netstat -anupt | grep 123udp 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/chronydWhere isudp 0 lanIP:123 0.0.0.0:* xxxxx/chronyd
udp 0 vanIP:123 0.0.0.0:* xxxxx/chronydAnd why are hereudp 0 0 0.0.0.0:123 0.0.0.0:* 35121/chronydudp 0 0 0.0.0.0:123 0.0.0.0:* 35121/chronydudp 0 0 0.0.0.0:123 0.0.0.0:* 35121/chronydudp 0 0 0.0.0.0:123 0.0.0.0:* 35121/chronydHow chrony will know addresses to bind to ?ср, 6 дек. 2023 г. в 11:25, Miroslav Lichvar <mlichvar@xxxxxxxxxx>: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 chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |