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

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


Let' s clarify:

==
chronyd -f /etc/chrony-server-lan.conf
where /etc/chrony-server-lan.conf:
server 127.0.0.1 port 11123 minpoll 0 maxpoll 0 copy
bindaddress lanIP
allow
cmdport 11323
bindcmdaddress /var/run/chrony/chronyd-server-lan.sock
pidfile /var/run/chronyd-server-lan.pid
driftfile /var/lib/chrony/drift-server-lan

==
chronyd -f /etc/chrony-server-dmz.conf
where /etc/chrony-server-dmz.conf:
server 127.0.0.1 port 11123 minpoll 0 maxpoll 0 copy
bindaddress dmzIP
allow
cmdport 11324
bindcmdaddress /var/run/chrony/chronyd-server-dmz.sock
pidfile /var/run/chronyd-server-dmz.pid
driftfile /var/lib/chrony/drift-server-dmz


==
chronyd -f /etc/chrony-client-upstream.conf
where  /etc/chrony-client-upstream.conf :
pool pool.ntp.org iburst
allow 127.0.0.1
port 11123
driftfile /var/lib/chrony/drift
makestep 1 3
rtcsync

вт, 12 дек. 2023 г. в 16:00, Miroslav Lichvar <mlichvar@xxxxxxxxxx>:
On Tue, Dec 12, 2023 at 03:49:10PM +0300, CpServiceSPb wrote:
> I will check about unexpected chrony instances.
> I use Ubuntu 22.04 LTS x64.
>
> Should I use the config you posted above and multi script or config and
> chrony -d ?

Don't use the script. It cannot set different bindaddresses. It was
just an example showing how multiple instances can be started. You
should create the three configs (1 client + 2 servers) at some
location and run

chronyd -f /etc/chrony.conf.1
chronyd -f /etc/chrony.conf.2
chronyd -f /etc/chrony.conf.3

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