[Csync2] How does Csync2 decide whether "Identification failed!" [Was: Again CSync2, VPN, strangeness...]
Marco Gaiarin
gaio at sv.lnf.it
Thu Jun 25 11:25:35 CEST 2020
Mandi! Lars Ellenberg
In chel di` si favelave...
> > I'm really puzzled... please help me...
>
> It all depends on the *forward* name resolution
> from the view point of the server.
>
> The server accepts a TCP connection,
> calls getpeername() on that socket,
> gets the client address.
>
> Later, that client "identifies" with HELLO some.name.there.
>
> The server uses a *forward* lookup on that,
> it calls getaddrinfo(some.name.there, ...).
>
> If one of the addresses returned by this getaddrinfo()
> matches the client address found earlier with getpeername(),
> csync2 is happy. Otherwise, it is not.
The thing i've missed really is that in csync DB the 'source' FQDN
addess is saved, so when i've switche IP/FQDN, newer files get 'marked'
with new FQDN, that clearly does not work with older FQDN.
Yesterday i've done:
update dirty set myname='hermione.sv.lnf.it' where myname='gaio.vpn.sv.lnf.it';
and csync come back working as usual on the 'old' IP.
Seems to me that really it is hard to work with csync2 with multiple
IP... because i use it mostly to distribute some configuration files,
probably it is better to switch to some other tool, eg RCS, so git.
Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the Csync2
mailing list