Re: [chrony-dev] Re: chrony 3.4+ on multihomed machines forces wrong interface

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


On Tue, Apr 28, 2020 at 01:01:59PM +0200, Arkadiusz Miśkiewicz wrote:
> On 28/04/2020 12:23, Miroslav Lichvar wrote:
> > On Tue, Apr 28, 2020 at 11:57:31AM +0200, Arkadiusz Miśkiewicz wrote:
> >> Anyway forcing interface index looks to be wrong (bypasses routing
> >> table) solution to problem which that commit tried to fix.
> > 
> > Do you have a suggestion for a different fix?
> 
> What was the original problem that
> 5fc7674e366fa1bfda162bdaba57243cff0a55a7 tried to fix?

A server with multiple interfaces in a local network. I wasn't able to
find sysctl settings that would make chronyd consistently respond from
the same interface that received the request.

> That would mean implementing "ip route get A from B" variant
> (RTM_GETROUTE) and checking if that route is thru gateway (as I
> understand accuracy you mention makes sense in local lan only, when
> there are multiple interfaces to the same network) and if it is using
> gateway and interfaces don't match then avoid forcing interface.
> 
> Ugly.

Yes. I don't like the idea of tracking interfaces and networks in
chronyd. I wish there was an option to only hint the interface in
sendmsg() and ignore it if there is no route.

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