Re: [chrony-dev] Multihomed (multiple) network interfaces support !

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


I did such a configuration.

Launched as chronyd -d ang got:
Could not add source 127.0.0.1

and netstat -anupt | grep 123
udp        0      0 127.0.0.1:35180         127.0.0.1:11123         ESTABLISHED 135185/chronyd
udp        0      0 dmzIP:11123      0.0.0.0:*                           135185/chronyd

If I launched via multi script I got:
Starting server instance #1
Starting server instance #2
Starting server instance #3
Starting server instance #4
Starting client instance
Fatal error : Another chronyd may already be running (pid=135687), check /var/run/chrony/chronyd-server2.pid

and netstat:
udp        0      0 0.0.0.0:123             0.0.0.0:*                           136025/chronyd
udp        0      0 0.0.0.0:123             0.0.0.0:*                           136024/chronyd
udp        0      0 0.0.0.0:123             0.0.0.0:*                           136022/chronyd
udp        0      0 127.0.0.1:11123         0.0.0.0:*                           136026/chronyd

I supposed to get something looks like:
udp        0      lanIP:123             0.0.0.0:*                           136025/chronyd
udp        0      dmzIP:123             0.0.0.0:*                           136024/chronyd
udp        0      0 127.0.0.1:11123         0.0.0.0:*                           136026/chronyd

Or am I wromg ?

пн, 11 дек. 2023 г. в 18:04, CpServiceSPb <cpservicespb@xxxxxxxxx>:
Which ports will be listened to, 123 ?
I mean by server from clients in ln/dmz ?



пн, 11 дек. 2023 г. в 17:26, Miroslav Lichvar <mlichvar@xxxxxxxxxx>:
On Mon, Dec 11, 2023 at 05:08:32PM +0300, CpServiceSPb wrote:
> Would you be so kind to post 2 config files for 2 different interfaces, for
> example:
> lan = 192.168.0.254/99
> dmz = 172.17.0.254/99

1st server instance:
server 127.0.0.1 port 11123 minpoll 0 maxpoll 0 copy
bindaddress 192.168.0.254
allow
cmdport 11323
bindcmdaddress /var/run/chrony/chronyd-server1.sock
pidfile /var/run/chronyd-server1.pid
driftfile /var/lib/chrony/drift-server1

2nd server instance:
server 127.0.0.1 port 11123 minpoll 0 maxpoll 0 copy
bindaddress 172.17.0.254
allow
cmdport 11324
bindcmdaddress /var/run/chrony/chronyd-server2.sock
pidfile /var/run/chronyd-server2.pid
driftfile /var/lib/chrony/drift-server2

client instance synchornizing clock and providing time to the server
instances:
pool pool.ntp.org iburst
allow 127.0.0.1
port 11123
driftfile /var/lib/chrony/drift
makestep 1 3
rtcsync

--
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/