[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: IPv6 queston



Am 21.08.2015 um 11:05 schrieb Danil Smirnov:
> Hi all!
> 
> I have leafnode running on the Centos 7 box set up as MatÄj Cepl advised:
> 
> http://www.dt.e-technik.tu-dortmund.de/pipermail/leafnode-list/2015q2/005218.html
> 
> Everything works as required with the following entries in the log:
> 
> Aug 21 11:47:01 host1 leafnode[20895]: connect from localhost (::1) to
>> localhost (::1) (my fqdn: domain.net)
>>
> 
> Recently I've found that I can't connect to the leafnode from the cron task
> with the error
> 
> Aug 21 11:28:57 host1 leafnode[18717]: Refusing connect from localhost
>> (::ffff:127.0.0.1) to localhost (::ffff:127.0.0.1) (my fqdn: domain.net),
>> outside the local networks. (Check config.example.)
>>
> 
> I can get the whole log of same messages if I comment the line
> 
> ::1         localhost localhost.localdomain localhost6
>> localhost6.localdomain6
>>
> 
> in /etc/hosts.
> 
> (Adding
> 
> ::ffff:127.0.0.1         localhost localhost.localdomain localhost6
>> localhost6.localdomain6
>>
> 
> instead does not help.)
> 
> The author of script which can't connect, Russ Allbery, adviced:
> 
> It looks like postfaq is using the IPv4 127.0.0.1 localhost address, which
>> is showing up on the leafnode side as an IPv6-mapped IPv4 address.  You
>> could try just adding ::ffff:127.0.0.1 to the leafnode configuration as a
>> valid remote address and see if that works.
>>
> 
> But there is not such parameter in leafnode config.
> 
> Please advice.

You seem to be using leafnode-1, and for some reason, your cron script
appears to be showing up using IPv6-mapped IPv4 addresses.

Apparently there is a bug in the code that deals with IPv6-mapped IPv4
addresses... so not much you can do except making sure that you avoid
the IPv6 listening socket.

-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.tu-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/