Article View: news.software.nntp
Article #85673Re: Inbound connection issue
From: Julien ÉLIE
Date: Wed, 19 Jun 2013 19:55
Date: Wed, 19 Jun 2013 19:55
63 lines
3907 bytes
3907 bytes
Hi Tony,
> Sadly, I don't know enough C to be able to read through the relevant
> section of the innd code and see if it's doing anything odd, and there
> doesn't appear to be any extra debugging I can turn on within innd
> itself.
Could you please try the following patch?
--- innd/rc.c (révision 9460)
+++ innd/rc.c (copie de travail)
@@ -552,12 +552,21 @@
}
/* See if it's one of our servers. */
- for (name = NULL, rp = RCpeerlist, i = RCnpeerlist; --i >= 0; rp++)
+ char buffip[INET6_ADDRSTRLEN], buffipremote[INET6_ADDRSTRLEN];
+ network_sockaddr_sprint(buffipremote, sizeof(buffipremote), (struct sockaddr *) &remote);
+ for (name = NULL, rp = RCpeerlist, i = RCnpeerlist; --i >= 0; rp++) {
+ network_sockaddr_sprint(buffip, sizeof(buffip), (struct sockaddr *) &rp->Address);
+ syslog(L_NOTICE, "check if %s is the same as %s", buffip, buffipremote);
if (network_sockaddr_equal((struct sockaddr *) &rp->Address,
(struct sockaddr *) &remote)) {
+ syslog(L_NOTICE, "Same!");
name = rp->Name;
break;
}
+ }
+ if (i < 0) {
+ syslog(L_NOTICE, "No match found!");
+ }
/* If not a server, and not allowing anyone, hand him off unless
not spawning nnrpd in which case we return an error. */
Whenever a peer connects, you will see lines like these ones in news.notice:
[...]
Jun 19 21:51:04 news innd: check if 2001:41d0:1:9c8a::1 is the same as 91.121.149.43
Jun 19 21:51:04 news innd: check if 91.121.103.138 is the same as 91.121.149.43
Jun 19 21:51:04 news innd: check if 217.112.180.250 is the same as 91.121.149.43
Jun 19 21:51:04 news innd: check if 91.121.149.43 is the same as 91.121.149.43
Jun 19 21:51:04 news innd: Same!
And if it is not a peer:
Jun 19 21:52:03 news innd: check if 78.46.240.70 is the same as 2001:41d0:8:730b::1
Jun 19 21:52:03 news innd: check if 204.209.81.3 is the same as 2001:41d0:8:730b::1
Jun 19 21:52:03 news innd: No match found!
Jun 19 21:52:03 news nnrpd[29826]: denver.dinauz.org (2001:41d0:8:730b::1) connect - port 119
[...]
You will then see what innd compars to.
--
--
Julien ÉLIE
« Ne craignez pas d'être lent, craignez seulement d'être à
l'arrêt. »
Technical Details
Message-ID:
<kpt2cc$t8b$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!nntp.giganews.com!mf3no14916498wib.1!news-out.google.com!b5ni10577wiz.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-652-1-73-228.w83-114.abo.wanadoo.fr!not-for-mailReferences:
<kp9gtv$vt0$3@trinity.darkstorm.co.uk> <kpscfl$tvj$1@trinity.darkstorm.co.uk> <kpsd1c$tvj$2@trinity.darkstorm.co.uk> <87y5a6goyn.fsf@araminta.anjou.terraraq.org.uk> <kpsir0$f33$1@trinity.darkstorm.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <kpt2cc$t8b$1@news.trigofacile.com> Subject: Re: Inbound connection issue Date: Wed, 19 Jun 2013 21:55:56 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <kp9gtv$vt0$3@trinity.darkstorm.co.uk> <kpscfl$tvj$1@trinity.darkstorm.co.uk> <kpsd1c$tvj$2@trinity.darkstorm.co.uk> <87y5a6goyn.fsf@araminta.anjou.terraraq.org.uk> <kpsir0$f33$1@trinity.darkstorm.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!nntp.giganews.com!mf3no14916498wib.1!news-out.google.com!b5ni10577wiz.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-652-1-73-228.w83-114.abo.wanadoo.fr!not-for-mail X-Received: by 10.180.88.104 with SMTP id bf8mr1881062wib.3.1371671756934; Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Injection-Date: Wed, 19 Jun 2013 19:55:56 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-652-1-73-228.w83-114.abo.wanadoo.fr:83.114.88.228"; logging-data="29963"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; In-Reply-To: <kpsir0$f33$1@trinity.darkstorm.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 62 X-Original-Bytes: 3708