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
How chrony will know addresses to bind to ?