🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #85590

Re: Inbound connection issue

#85590
From: Tony
Date: Mon, 17 Jun 2013 12:13
159 lines
16503 bytes
The problem triggered again today at 09:28.  Interestingly, I noticed
something in the log just before the connections were refused.  The peer
in question being closed by innd, but using the IPv6 IP address, not the
peer name.

Jun 17 09:07:21 matrix innd: 2a01:4f8:140:6362::2:48 checkpoint seconds 84350 accepted 193 refused 7426 rejected 7 duplicate 0 accepted size 583120 duplicate size 0 rejected size 16030
<snip nothing interesting>
Jun 17 09:27:50 matrix innd: 2a01:4f8:140:6362::2:48 checkpoint seconds 1229 accepted 3 refused 71 rejected 0 duplicate 0 accepted size 7112 duplicate size 0 rejected size 0
Jun 17 09:27:50 matrix innd: 2a01:4f8:140:6362::2:48 closed seconds 85579 accepted 196 refused 7497 rejected 7 duplicate 0 accepted size 590232 duplicate size 0 rejected size 16030
Jun 17 09:28:03 matrix nnrpd[32226]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 17 09:28:03 matrix nnrpd[32226]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 17 09:28:03 matrix nnrpd[32226]: aquila.v.weretis.net noperm ihave without permission
Jun 17 09:28:03 matrix nnrpd[32226]: aquila.v.weretis.net times user 0.000 system 0.008 idle 0.000 elapsed 0.197
Jun 17 09:28:03 matrix nnrpd[32226]: aquila.v.weretis.net time 198 idle 73(3) nntpwrite 1(6)
Jun 17 09:28:07 matrix nocem: processed notice 44f7bdd093db6ec3 by bleachbot@httrack.com (1 ids, 0.01000 s, 100.0/s)
Jun 17 09:28:33 matrix nnrpd[32235]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 17 09:28:33 matrix nnrpd[32235]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 17 09:28:33 matrix nnrpd[32235]: aquila.v.weretis.net noperm ihave without permission
Jun 17 09:28:33 matrix nnrpd[32235]: aquila.v.weretis.net times user 0.008 system 0.000 idle 0.000 elapsed 0.083
Jun 17 09:28:33 matrix nnrpd[32235]: aquila.v.weretis.net time 83 idle 74(3) nntpwrite 0(6)
Jun 17 09:28:46 matrix nocem: processed notice d8b798c9aa6da122 by bleachbot@httrack.com (1 ids, 0.01000 s, 100.0/s)

I don't understand why inn2 reports the IPv6 as 2a01:4f8:140:6362::2:48
rather than 2a01:4f8:140:6362::2 in those first two lines.

So, I was running 'tcpdump -w <file> port 53' during the start, middle
and end of the event.  Let me know if this helps work out what was going
on.  I've left the twitter lookups in, in case they help.

09:25:42.245397 IP matrix.darkstorm.co.uk.46118 > ns2.ghst.net.domain: 9014+ A? api.twitter.com. (33)
09:25:42.245443 IP matrix.darkstorm.co.uk.46118 > ns2.ghst.net.domain: 29934+ AAAA? api.twitter.com. (33)
09:25:42.245717 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.46118: 29934 0/1/0 (105)
09:25:42.245729 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.46118: 9014 3/4/4 A 199.16.156.40, A 199.16.156.104, A 199.16.156.8 (231)
09:25:42.744629 IP matrix.darkstorm.co.uk.53833 > ns2.ghst.net.domain: 16856+ A? api.twitter.com. (33)
09:25:42.744677 IP matrix.darkstorm.co.uk.53833 > ns2.ghst.net.domain: 44850+ AAAA? api.twitter.com. (33)
09:25:42.744995 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.53833: 44850 0/1/0 (105)
09:25:42.745022 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.53833: 16856 3/4/4 A 199.16.156.104, A 199.16.156.8, A 199.16.156.40 (231)
09:25:43.245894 IP matrix.darkstorm.co.uk.52820 > ns2.ghst.net.domain: 325+ A? api.twitter.com. (33)
09:25:43.245960 IP matrix.darkstorm.co.uk.52820 > ns2.ghst.net.domain: 12044+ AAAA? api.twitter.com. (33)
09:25:43.246220 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.52820: 12044 0/1/0 (105)
09:25:43.246238 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.52820: 325 3/4/4 A 199.16.156.8, A 199.16.156.40, A 199.16.156.104 (231)
09:26:58.737235 IP matrix.darkstorm.co.uk.42374 > ns2.ghst.net.domain: 24811+ A? api.twitter.com. (33)
09:26:58.737276 IP matrix.darkstorm.co.uk.42374 > ns2.ghst.net.domain: 59736+ AAAA? api.twitter.com. (33)
09:26:58.737546 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.42374: 59736 0/1/0 (105)
09:26:58.737559 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.42374: 24811 3/4/4 A 199.16.156.72, A 199.16.156.8, A 199.16.156.40 (231)
09:26:59.220668 IP matrix.darkstorm.co.uk.53899 > ns2.ghst.net.domain: 37516+ A? api.twitter.com. (33)
09:26:59.220719 IP matrix.darkstorm.co.uk.53899 > ns2.ghst.net.domain: 19355+ AAAA? api.twitter.com. (33)
09:26:59.220966 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.53899: 19355 0/1/0 (105)
09:26:59.221007 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.53899: 37516 3/4/4 A 199.16.156.8, A 199.16.156.40, A 199.16.156.72 (231)
09:28:03.530408 IP matrix.darkstorm.co.uk.46664 > ns2.ghst.net.domain: 29698+ PTR?  2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.6.3.6.0.4.1.0.8.f.4.0.1.0.a.2.ip6.arpa.  (90)
09:28:03.557242 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.46664: 29698 1/3/5 PTR aquila.v.weretis.net. (330)
09:28:03.557568 IP matrix.darkstorm.co.uk.36349 > ns1.ghst.net.domain: 17685+ A? aquila.v.weretis.net. (38)
09:28:03.557607 IP matrix.darkstorm.co.uk.36349 > ns1.ghst.net.domain: 6184+ AAAA? aquila.v.weretis.net. (38)
09:28:03.622139 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.36349: 17685 1/5/11 A 46.4.82.166 (405)
09:28:03.622187 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.36349: 6184 1/5/11 AAAA 2a01:4f8:140:6362::2 (417)
09:28:03.622405 IP matrix.darkstorm.co.uk.46744 > ns2.ghst.net.domain: 17172+ PTR?  0.d.4.5.e.5.e.f.f.f.e.3.6.1.2.0.3.4.0.0.0.c.d.0.8.9.b.4.1.0.0.2.ip6.arpa.  (90)
09:28:03.642704 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.46744: 17172 1/2/2 PTR matrix.darkstorm.co.uk. (204)
09:28:14.789824 IP matrix.darkstorm.co.uk.51184 > ns2.ghst.net.domain: 55056+ A? api.twitter.com. (33)
09:28:14.789870 IP matrix.darkstorm.co.uk.51184 > ns2.ghst.net.domain: 53155+ AAAA? api.twitter.com. (33)
09:28:14.790148 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.51184: 53155 0/1/0 (105)
09:28:14.790163 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.51184: 55056 3/4/4 A 199.16.156.40, A 199.16.156.104, A 199.16.156.8 (231)
09:28:15.318755 IP matrix.darkstorm.co.uk.39053 > ns2.ghst.net.domain: 49601+ A? api.twitter.com. (33)
09:28:15.318798 IP matrix.darkstorm.co.uk.39053 > ns2.ghst.net.domain: 41221+ AAAA? api.twitter.com. (33)
09:28:15.319066 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.39053: 41221 0/1/0 (105)
09:28:15.319079 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.39053: 49601 3/4/4 A 199.16.156.104, A 199.16.156.8, A 199.16.156.40 (231)
09:28:15.818093 IP matrix.darkstorm.co.uk.55747 > ns2.ghst.net.domain: 21602+ A? api.twitter.com. (33)
09:28:15.818139 IP matrix.darkstorm.co.uk.55747 > ns2.ghst.net.domain: 50246+ AAAA? api.twitter.com. (33)
09:28:15.818378 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.55747: 50246 0/1/0 (105)
09:28:15.818394 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.55747: 21602 3/4/4 A 199.16.156.40, A 199.16.156.104, A 199.16.156.8 (231)
09:28:33.169948 IP matrix.darkstorm.co.uk.46535 > ns2.ghst.net.domain: 32164+ PTR?  2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.6.3.6.0.4.1.0.8.f.4.0.1.0.a.2.ip6.arpa.  (90)
09:28:33.170293 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.46535: 32164 1/3/5 PTR aquila.v.weretis.net. (330)
09:28:33.170491 IP matrix.darkstorm.co.uk.49594 > ns1.ghst.net.domain: 24781+ A? aquila.v.weretis.net. (38)
09:28:33.170526 IP matrix.darkstorm.co.uk.49594 > ns1.ghst.net.domain: 17910+ AAAA? aquila.v.weretis.net. (38)
09:28:33.170813 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.49594: 24781 1/5/11 A 46.4.82.166 (405)
09:28:33.170873 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.49594: 17910 1/5/11 AAAA 2a01:4f8:140:6362::2 (417)
09:28:33.171049 IP matrix.darkstorm.co.uk.34802 > ns2.ghst.net.domain: 22307+ PTR?  0.d.4.5.e.5.e.f.f.f.e.3.6.1.2.0.3.4.0.0.0.c.d.0.8.9.b.4.1.0.0.2.ip6.arpa.  (90)
09:28:33.171339 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.34802: 22307 1/2/2 PTR matrix.darkstorm.co.uk. (204)
09:29:03.640087 IP matrix.darkstorm.co.uk.37347 > ns2.ghst.net.domain: 63368+ PTR?  2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.6.3.6.0.4.1.0.8.f.4.0.1.0.a.2.ip6.arpa.  (90)
09:29:03.640452 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.37347: 63368 1/3/5 PTR aquila.v.weretis.net. (330)
09:29:03.640703 IP matrix.darkstorm.co.uk.49460 > ns1.ghst.net.domain: 40594+ A? aquila.v.weretis.net. (38)
09:29:03.640738 IP matrix.darkstorm.co.uk.49460 > ns1.ghst.net.domain: 18332+ AAAA? aquila.v.weretis.net. (38)
09:29:03.640994 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.49460: 40594 1/5/11 A 46.4.82.166 (405)
09:29:03.641058 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.49460: 18332 1/5/11 AAAA 2a01:4f8:140:6362::2 (417)
09:29:03.641250 IP matrix.darkstorm.co.uk.37491 > ns2.ghst.net.domain: 4772+ PTR?  0.d.4.5.e.5.e.f.f.f.e.3.6.1.2.0.3.4.0.0.0.c.d.0.8.9.b.4.1.0.0.2.ip6.arpa.  (90)
09:29:03.641524 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.37491: 4772 1/2/2 PTR matrix.darkstorm.co.uk. (204)
09:29:31.389356 IP matrix.darkstorm.co.uk.39342 > ns2.ghst.net.domain: 35993+ A? api.twitter.com. (33)
09:29:31.389408 IP matrix.darkstorm.co.uk.39342 > ns2.ghst.net.domain: 12213+ AAAA? api.twitter.com. (33)
09:29:31.389684 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.39342: 12213 0/1/0 (105)
09:29:31.389700 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.39342: 35993 3/4/4 A 199.16.156.104, A 199.16.156.8, A 199.16.156.72 (231)
09:29:31.886143 IP matrix.darkstorm.co.uk.53099 > ns2.ghst.net.domain: 9452+ A? api.twitter.com. (33)
09:29:31.886198 IP matrix.darkstorm.co.uk.53099 > ns2.ghst.net.domain: 23898+ AAAA? api.twitter.com. (33)
09:29:31.886434 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.53099: 23898 0/1/0 (105)
09:29:31.886447 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.53099: 9452 3/4/4 A 199.16.156.72, A 199.16.156.104, A 199.16.156.8 (231)
09:29:33.067623 IP matrix.darkstorm.co.uk.57854 > ns2.ghst.net.domain: 47720+ PTR?  2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.6.3.6.0.4.1.0.8.f.4.0.1.0.a.2.ip6.arpa.  (90)
09:29:33.067967 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.57854: 47720 1/3/5 PTR aquila.v.weretis.net. (330)
09:29:33.068171 IP matrix.darkstorm.co.uk.41638 > ns1.ghst.net.domain: 60751+ A? aquila.v.weretis.net. (38)
09:29:33.068207 IP matrix.darkstorm.co.uk.41638 > ns1.ghst.net.domain: 8759+ AAAA? aquila.v.weretis.net. (38)
09:29:33.068491 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.41638: 60751 1/5/11 A 46.4.82.166 (405)
09:29:33.068545 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.41638: 8759 1/5/11 AAAA 2a01:4f8:140:6362::2 (417)
09:29:33.068747 IP matrix.darkstorm.co.uk.59259 > ns2.ghst.net.domain: 37912+ PTR?  0.d.4.5.e.5.e.f.f.f.e.3.6.1.2.0.3.4.0.0.0.c.d.0.8.9.b.4.1.0.0.2.ip6.arpa.  (90)
09:29:33.069018 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.59259: 37912 1/2/2 PTR matrix.darkstorm.co.uk. (204)

I'm by no means an expert, but to me, every time nnrpd looks up the PTR
record, it gets a valid response.

Here's the same data, mixed together, with the twitter stuff gone.

09:28:03.530408 IP matrix.darkstorm.co.uk.46664 > ns2.ghst.net.domain: 29698+ PTR?  2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.6.3.6.0.4.1.0.8.f.4.0.1.0.a.2.ip6.arpa.  (90)
09:28:03.557242 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.46664: 29698 1/3/5 PTR aquila.v.weretis.net. (330)
09:28:03.557568 IP matrix.darkstorm.co.uk.36349 > ns1.ghst.net.domain: 17685+ A? aquila.v.weretis.net. (38)
09:28:03.557607 IP matrix.darkstorm.co.uk.36349 > ns1.ghst.net.domain: 6184+ AAAA? aquila.v.weretis.net. (38)
09:28:03.622139 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.36349: 17685 1/5/11 A 46.4.82.166 (405)
09:28:03.622187 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.36349: 6184 1/5/11 AAAA 2a01:4f8:140:6362::2 (417)
09:28:03.622405 IP matrix.darkstorm.co.uk.46744 > ns2.ghst.net.domain: 17172+ PTR?  0.d.4.5.e.5.e.f.f.f.e.3.6.1.2.0.3.4.0.0.0.c.d.0.8.9.b.4.1.0.0.2.ip6.arpa.  (90)
09:28:03.642704 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.46744: 17172 1/2/2 PTR matrix.darkstorm.co.uk. (204)
Jun 17 09:28:03 matrix nnrpd[32226]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 17 09:28:03 matrix nnrpd[32226]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 17 09:28:03 matrix nnrpd[32226]: aquila.v.weretis.net noperm ihave without permission
Jun 17 09:28:03 matrix nnrpd[32226]: aquila.v.weretis.net times user 0.000 system 0.008 idle 0.000 elapsed 0.197
Jun 17 09:28:03 matrix nnrpd[32226]: aquila.v.weretis.net time 198 idle 73(3) nntpwrite 1(6)

09:28:33.169948 IP matrix.darkstorm.co.uk.46535 > ns2.ghst.net.domain: 32164+ PTR?  2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.6.3.6.0.4.1.0.8.f.4.0.1.0.a.2.ip6.arpa.  (90)
09:28:33.170293 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.46535: 32164 1/3/5 PTR aquila.v.weretis.net. (330)
09:28:33.170491 IP matrix.darkstorm.co.uk.49594 > ns1.ghst.net.domain: 24781+ A? aquila.v.weretis.net. (38)
09:28:33.170526 IP matrix.darkstorm.co.uk.49594 > ns1.ghst.net.domain: 17910+ AAAA? aquila.v.weretis.net. (38)
09:28:33.170813 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.49594: 24781 1/5/11 A 46.4.82.166 (405)
09:28:33.170873 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.49594: 17910 1/5/11 AAAA 2a01:4f8:140:6362::2 (417)
09:28:33.171049 IP matrix.darkstorm.co.uk.34802 > ns2.ghst.net.domain: 22307+ PTR?  0.d.4.5.e.5.e.f.f.f.e.3.6.1.2.0.3.4.0.0.0.c.d.0.8.9.b.4.1.0.0.2.ip6.arpa.  (90)
09:28:33.171339 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.34802: 22307 1/2/2 PTR matrix.darkstorm.co.uk. (204)
Jun 17 09:28:33 matrix nnrpd[32235]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 17 09:28:33 matrix nnrpd[32235]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 17 09:28:33 matrix nnrpd[32235]: aquila.v.weretis.net noperm ihave without permission
Jun 17 09:28:33 matrix nnrpd[32235]: aquila.v.weretis.net times user 0.008 system 0.000 idle 0.000 elapsed 0.083
Jun 17 09:28:33 matrix nnrpd[32235]: aquila.v.weretis.net time 83 idle 74(3) nntpwrite 0(6)

So, this set of logs presents another question.  When innd checkpoints
and then drops the connections at 9:07 and 9:27, why does it report the
IPv6 address there, rather than the hostname.

Is this the cause of the issue, at some point, innd loses the link
between the host I've got in incoming.conf (which in this case, as
advised by the news admin in question is darkstorm-out.news.weretis.net)
and the IPv4/6 address.  Since it starts using the address, new incoming
connections don't reverse properly to the darkstorm-out.news.weretis.net
name, but instead to the real server name, and it decides it can't
authenticate them.

My feeling is that the error from nnrpd about the reverse lookup failing
is actually using the wrong address in the error message?

What it's trying to tell me is that the reverse address of the incoming
server couldn't be tied back to anything in incoming.conf?

-- 
Tony Evans
Saving trees and wasting electrons since 1993
blog  -> http://perceptionistruth.com/
books -> http://www.bookthing.co.uk/
[ anything below this line wasn't written by me ]
Technical Details
Message-ID: <kpmugd$a6u$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!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!matrix.darkstorm.co.uk!trinity.darkstorm.co.uk!.POSTED!not-for-mail
References: <kp9gtv$vt0$3@trinity.darkstorm.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <kpmugd$a6u$1@trinity.darkstorm.co.uk>
Subject: Re: Inbound connection issue
Date: Mon, 17 Jun 2013 12:13:01 +0000
From: Tony <tony@darkstorm.invalid>
References: <kp9gtv$vt0$3@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!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!matrix.darkstorm.co.uk!trinity.darkstorm.co.uk!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Nothing Nefarious
Lines: 159
Reply-To: Tony <tony@darkstorm.co.uk>
NNTP-Posting-Host: qMPbJrmGWs+fmnCOZ7sqtG+wHJ/xPuTb35GcTk6KVTQ=
X-Trace: trinity.local Gqi+VeJlUarNC3HL74KEkIhEatUlO7XEhVnUaZTwGmo===
X-Complaints-To: abuse@matrix.darkstorm.co.uk
NNTP-Posting-Date: Mon, 17 Jun 2013 12:13:01 +0000 (UTC)
User-Agent: slrn/pre1.0.0-18 (Linux)
X-User-ID: rcu/cnyLAPo5+B90FPaPFTOxyRS5oyokcXeG2iukZns=
X-Original-Bytes: 16242