🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
35 messages
35 total messages Started by Tony Wed, 12 Jun 2013 10:01
Inbound connection issue
#85553
Author: Tony
Date: Wed, 12 Jun 2013 10:01
135 lines
12263 bytes
I've upgraded my INN2 install from Squeeze to Wheezy, keeping most of
the settings the same.  I did the upgrade by building a new server and
then migrating the settings across, rather than doing an in-place
upgrade.

One issue I'm seeing that I didn't see before, is that some inbound
peers appear to get rejected by nnrpd after working fine for a while.
Once this starts happening, I restart the INN daemon and everything
returns to normal.

I'm struggling to work out what's triggering the problem, would
appreciate any help.

# hostname
matrix.darkstorm.co.uk

# cat /etc/debian_version
7.0

INN 2.5.3

from /etc/inn.conf,

# Feed Configuration

#bindaddress:
#bindaddress6:
port:                        119

from /etc/inetd.conf,

nntps                   stream          tcp             nowait
news:news       /usr/lib/news/bin/nnrpd-ssl nnrpd-ssl -S

Peers connect on port 119, and clients connect on either 119 or 563 (SSL).  

Stuff works normally, and then suddenly a peer will seem to start being
rejected.  It's happened to two different peers I think, so I'm
reasonably confident it's at my end, and I can't find a trigger.  Here
are the relevant log entries for the peer that suffered it this time.

This is grepped on weretis for now.

Jun 11 09:51:35 matrix innfeed[810]: weretis.net checkpoint seconds 300 offered 21 accepted 0 refused 21 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 0/0.0 requeued 0 queue 0.0/10:100,0,0,0,0,0
Jun 11 09:56:35 matrix innfeed[810]: weretis.net checkpoint seconds 300 offered 23 accepted 0 refused 23 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 0/0.0 requeued 0 queue 0.0/10:100,0,0,0,0,0
Jun 11 10:01:35 matrix innfeed[810]: weretis.net checkpoint seconds 300 offered 24 accepted 0 refused 22 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 2/0.1 requeued 0 queue 0.0/10:100,0,0,0,0,0
Jun 11 10:06:35 matrix innfeed[810]: weretis.net checkpoint seconds 300 offered 36 accepted 0 refused 36 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 0/0.0 requeued 0 queue 0.0/10:100,0,0,0,0,0
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.166
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net time 166 idle 94(3) nntpwrite 0(6)
Jun 11 10:10:21 matrix nnrpd[11032]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 10:10:21 matrix nnrpd[11032]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:10:21 matrix nnrpd[11032]: aquila.v.weretis.net times user 0.000 system 0.008 idle 0.000 elapsed 0.105
Jun 11 10:10:21 matrix nnrpd[11032]: aquila.v.weretis.net time 105 idle 94(3) nntpwrite 0(6)
Jun 11 10:10:51 matrix nnrpd[11037]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 10:10:51 matrix nnrpd[11037]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:10:51 matrix nnrpd[11037]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.103
Jun 11 10:10:51 matrix nnrpd[11037]: aquila.v.weretis.net time 104 idle 94(3) nntpwrite 0(6)
Jun 11 10:11:21 matrix nnrpd[11040]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 10:11:21 matrix nnrpd[11040]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:11:21 matrix nnrpd[11040]: aquila.v.weretis.net times user 0.008 system 0.000 idle 0.000 elapsed 0.103
Jun 11 10:11:21 matrix nnrpd[11040]: aquila.v.weretis.net time 103 idle 93(3) nntpwrite 0(6)
Jun 11 10:11:35 matrix innfeed[810]: weretis.net checkpoint seconds 300 offered 33 accepted 0 refused 32 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 1/0.1 requeued 0 queue 0.0/10:100,0,0,0,0,0

Later on, the connections change,

Jun 11 11:55:12 matrix nnrpd[20164]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.102
Jun 11 11:55:12 matrix nnrpd[20164]: aquila.v.weretis.net time 102 idle 94(3) nntpwrite 0(6)
Jun 11 11:55:26 matrix nnrpd[20166]: capricornus.v.weretis.net (2a01:4f8:120:8241::2) connect - port 119
Jun 11 11:55:26 matrix nnrpd[20166]: capricornus.v.weretis.net noperm ihave without permission
Jun 11 11:55:26 matrix nnrpd[20166]: capricornus.v.weretis.net times user 0.000 system 0.012 idle 0.000 elapsed 0.145
Jun 11 11:55:26 matrix nnrpd[20166]: capricornus.v.weretis.net time 146 idle 94(3) nntpwrite 1(6)
Jun 11 11:55:42 matrix nnrpd[20167]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 11:55:42 matrix nnrpd[20167]: aquila.v.weretis.net noperm ihave without permission
Jun 11 11:55:42 matrix nnrpd[20167]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.102
Jun 11 11:55:42 matrix nnrpd[20167]: aquila.v.weretis.net time 102 idle 93(3) nntpwrite 0(6)
Jun 11 11:55:56 matrix nnrpd[20168]: capricornus.v.weretis.net (2a01:4f8:120:8241::2) connect - port 119
Jun 11 11:55:56 matrix nnrpd[20168]: capricornus.v.weretis.net noperm ihave without permission
Jun 11 11:55:56 matrix nnrpd[20168]: capricornus.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.104
Jun 11 11:55:56 matrix nnrpd[20168]: capricornus.v.weretis.net time 104 idle 97(3) nntpwrite 0(6)
Jun 11 11:56:12 matrix nnrpd[20169]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 11:56:12 matrix nnrpd[20169]: aquila.v.weretis.net noperm ihave without permission

but still get rejected.  This continues until I restart INN
(/etc/init.d/inn2 restart) and then it stops, with normal connections
being resumed for a few days / week.

Here are all the log entries around the point it first triggered,

Jun 11 10:08:28 matrix innfeed[810]: trinity checkpoint seconds 300 offered 54 accepted 54 refused 0 rejected 0 missing 0 accsize 123786 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 0/0.0 requeued 0 queue 0.0/10:99,1,0,0,0,0
Jun 11 10:08:28 matrix innfeed[810]: reality checkpoint seconds 300 offered 61 accepted 0 refused 53 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 8/1.0 requeued 0 queue 0.0/10:100,0,0,0,0,0
Jun 11 10:08:29 matrix innfeed[810]: halpc checkpoint seconds 300 offered 62 accepted 0 refused 53 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 9/0.6 requeued 0 queue 1.1/10:74,6,6,8,3,3
Jun 11 10:08:47 matrix innfeed[810]: rusnet checkpoint seconds 300 offered 51 accepted 0 refused 44 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 7/0.1 requeued 0 queue 0.0/10:100,0,0,0,0,0
Jun 11 10:08:51 matrix innfeed[810]: albasani checkpoint seconds 300 offered 58 accepted 0 refused 53 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 5/1.0 requeued 0 queue 0.1/10:91,4,4,0,0,0
Jun 11 10:09:16 matrix innfeed[810]: eternal-september checkpoint seconds 300 offered 61 accepted 0 refused 54 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 7/0.1 requeued 0 queue 0.1/10:95,5,0,0,0,0
Jun 11 10:09:17 matrix innfeed[810]: ME time 600879 idle 600781(1351) blstats 2(1351) stsfile 4(3) newart 1(75) readart 2(71) prepart 1(388) read 6(1016) write 13(998)
Jun 11 10:09:20 matrix nocem: processed notice 928d35bb27b00c3c by bleachbot@httrack.com (1 ids, 0.01000 s, 100.0/s)
Jun 11 10:09:24 matrix innfeed[810]: mixmin checkpoint seconds 300 offered 52 accepted 0 refused 52 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 0/0.0 requeued 0 queue 0.0/10:98,2,0,0,0,0
Jun 11 10:09:48 matrix innd: 2a01:4f8:140:6362::2:45 checkpoint seconds 9777 accepted 31 refused 754 rejected 6 duplicate 0 accepted size 113397 duplicate size 0 rejected size 15332
Jun 11 10:09:48 matrix innd: 2a01:4f8:140:6362::2:45 closed seconds 85579 accepted 217 refused 9718 rejected 20 duplicate 0 accepted size 753909 duplicate size 0 rejected size 67917
Jun 11 10:09:50 matrix nocem: processed notice 16b2013cf7e64b30 by bleachbot@httrack.com (1 ids, 0.01000 s, 100.0/s)
Jun 11 10:09:51 matrix nnrpd[10548]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.166
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net time 166 idle 94(3) nntpwrite 0(6)
Jun 11 10:09:52 matrix innfeed[810]: chiark checkpoint seconds 300 offered 67 accepted 1 refused 59 rejected 0 missing 0 accsize 3462 rejsize 0 spooled 1 on_close 0 unspooled 1 deferred 8/0.9 requeued 0 queue 0.6/10:88,0,1,4,0,6
Jun 11 10:10:01 matrix innd: localhost connected 32
Jun 11 10:10:01 matrix innd: localhost:32 checkpoint seconds 0 accepted 0 refused 0 rejected 0 duplicate 0 accepted size 0 duplicate size 0 rejected size 0
Jun 11 10:10:01 matrix innd: localhost:32 closed seconds 0 accepted 0 refused 0 rejected 0 duplicate 0 accepted size 0 duplicate size 0 rejected size 0
Jun 11 10:10:11 matrix innd: ctlinnd command s
Jun 11 10:10:19 matrix innfeed[810]: safe.ca checkpoint seconds 300 offered 59 accepted 19 refused 30 rejected 0 missing 0 accsize 52149 rejsize 0 spooled 3 on_close 0 unspooled 3 deferred 10/0.8 requeued 0 queue 1.0/10:77,4,3,7,6,3 
Jun 11 10:10:21 matrix nocem: processed notice 678bffdf37f58907 by bleachbot@httrack.com (1 ids, 0.01000 s, 100.0/s)
Jun 11 10:10:21 matrix nnrpd[11032]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:10:21 matrix nnrpd[11032]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 10:10:21 matrix nnrpd[11032]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:10:21 matrix nnrpd[11032]: aquila.v.weretis.net times user 0.000 system 0.008 idle 0.000 elapsed 0.105
Jun 11 10:10:21 matrix nnrpd[11032]: aquila.v.weretis.net time 105 idle 94(3) nntpwrite 0(6)
Jun 11 10:10:22 matrix innd: newsfeed.neva.ru:86 checkpoint seconds 1702 accepted 3 refused 129 rejected 2 duplicate 0 accepted size 4703 duplicat
e size 0 rejected size 4789

The entries that worry me most are the reverse lookup entries.  That
ipv6 address is the address of matrix.darkstorm.co.uk which AFAIK is
correctly configured and resolves in both directions.

What am I missing?  Have I interpreted this completely in the wrong
direction?

-- 
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 ]
Re: Inbound connection issue
#85554
Author: Julien ÉLIE
Date: Wed, 12 Jun 2013 17:57
44 lines
3457 bytes
Hi Tony,

> Jun 11 10:09:48 matrix innd: 2a01:4f8:140:6362::2:45 checkpoint seconds 9777 accepted 31 refused 754 rejected 6 duplicate 0 accepted size 113397 duplicate size 0 rejected size 15332
> Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
> Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net noperm ihave without permission

% host aquila.v.weretis.net
aquila.v.weretis.net has address 46.4.82.166
aquila.v.weretis.net has IPv6 address 2a01:4f8:140:6362::2

% host 2a01:4f8:140:6362::2
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 domain name pointer aquila.v.weretis.net.

The DNS for weretis seems to be correctly configured.



> Jun 11 10:09:51 matrix nnrpd[10548]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
> 
> The entries that worry me most are the reverse lookup entries.  That
> ipv6 address is the address of matrix.darkstorm.co.uk which AFAIK is
> correctly configured and resolves in both directions.

% host matrix.darkstorm.co.uk
matrix.darkstorm.co.uk has address 92.243.25.93
matrix.darkstorm.co.uk has IPv6 address 2001:4b98:dc0:43:216:3eff:fe5e:54d0
matrix.darkstorm.co.uk mail is handled by 10 matrix.darkstorm.co.uk.

% host 2001:4b98:dc0:43:216:3eff:fe5e:54d0
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 domain name pointer matrix.darkstorm.co.uk.

Also looks to be properly configured.


I do not understand why you see reverse lookup failtures, and also why several of your peers are sometimes handled by innd and sometimes by nnrpd.

How is DNS resolution done on your server?  Are you caching DNS entries?  Do you have a local DNS server?  What DNS servers are you talking with?
Is your incoming.conf file mentioning only "aquila.v.weretis.net" or also its IPv4 and IPv6 address?

-- 
Julien ÉLIE

« Il ne faut compter que sur soi-même. Et encore, pas beaucoup. »
  (Tristan Bernard)
Re: Inbound connection issue
#85555
Author: Tony
Date: Wed, 12 Jun 2013 21:43
47 lines
3065 bytes
In news.software.nntp, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
wrote:

>I do not understand why you see reverse lookup failtures, and also why several of your peers are sometimes handled by innd and sometimes by nnrpd.
>
>How is DNS resolution done on your server?  Are you caching DNS entries?  Do you have a local DNS server?  What DNS servers are you talking with?
>Is your incoming.conf file mentioning only "aquila.v.weretis.net" or also its IPv4 and IPv6 address?

Thanks for helping out Julien.

# cat /etc/resolv.conf
nameserver 217.70.184.225
nameserver 217.70.184.226
options timeout:1 attempts:3 rotate

That's as it comes out of the tin on the Gandi VPS.  

This is from the backup I took before I built the new server,

old-matrix/etc$ cat resolv.conf
nameserver 217.70.184.225
nameserver 217.70.184.226

So although it's pointing to the same resolvers, the new VPS build from
Gandi has the additional settings.  I could remove them (reverting them to
the defaults, 5 seconds for timeout for example), but I'm not sure why a
DNS failure would result in nnrpd trying to handle the remote connections.
And why it would persist until a restart of INN.

No specific DNS caching in place.

I peer with a server with a very short TTL (it's on a DSL connection), so I
have "dns-expire: 900" in innfeed.conf.

And I have just this in incoming.conf (same as before the move to the new
server),

peer weretis.net {
 hostname:               darkstorm-out.news.weretis.net
 patterns: uk.*,comp.*,news.*,soc.*,humanities.*,sci.*,talk.*,rec.*,misc.*}

-- 
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 ]
Re: Inbound connection issue
#85556
Author: Jeffrey M. Vinocur
Date: Thu, 13 Jun 2013 00:20
29 lines
2321 bytes
In article <kpaq2o$ns3$1@matrix.darkstorm.co.uk>,
Tony  <tony@darkstorm.co.uk> wrote:
>
>So although it's pointing to the same resolvers, the new VPS build from
>Gandi has the additional settings.  I could remove them (reverting them to
>the defaults, 5 seconds for timeout for example), but I'm not sure why a
>DNS failure would result in nnrpd trying to handle the remote connections.
>And why it would persist until a restart of INN.

If the reverse DNS fails to resolve, then INN isn't able to match
the connection with your incoming.conf and routes it to nnrpd
instead.

Before fiddling around with your DNS etc, why don't we take
Julien's suggestion and add the IPs manually to your
incoming.conf.  You can just use a comma-separated list, example
from one of my peers bellow:

  peer uoregon {
      hostname: "hammer.uoregon.edu,2001:468:D01:DC::80DF:DC1D"

If that fixes everything, then you can either be satisfied with
the fix and go about your day, or use it as evidence that
something is funny with DNS and try to debug further.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Inbound connection issue
#85557
Author: Tony
Date: Thu, 13 Jun 2013 06:34
45 lines
3221 bytes
In news.software.nntp, jeff@litech.org (Jeffrey M. Vinocur) wrote:

>In article <kpaq2o$ns3$1@matrix.darkstorm.co.uk>,
>Tony  <tony@darkstorm.co.uk> wrote:
>>
>>So although it's pointing to the same resolvers, the new VPS build from
>>Gandi has the additional settings.  I could remove them (reverting them to
>>the defaults, 5 seconds for timeout for example), but I'm not sure why a
>>DNS failure would result in nnrpd trying to handle the remote connections.
>>And why it would persist until a restart of INN.
>
>If the reverse DNS fails to resolve, then INN isn't able to match
>the connection with your incoming.conf and routes it to nnrpd
>instead.

Aha.

The odd thing, is it seems to be complaining about the reverse lookup for
it's own address, not the incoming address?

>Before fiddling around with your DNS etc, why don't we take
>Julien's suggestion and add the IPs manually to your
>incoming.conf.  You can just use a comma-separated list, example
>from one of my peers bellow:
>
>  peer uoregon {
>      hostname: "hammer.uoregon.edu,2001:468:D01:DC::80DF:DC1D"
>
>If that fixes everything, then you can either be satisfied with
>the fix and go about your day, or use it as evidence that
>something is funny with DNS and try to debug further.

Yep, I think since it's complaining about it's own reverse lookup, I'll add
the IPv6 address to the ME peer in incoming.conf first and see if that
stops it happening (should know within about 2 weeks, with some certainty).

I note that my ME entry has the IPv4 which I clearly added when I first
built the server, but the IPv6 address was added to the server later and
isn't listed in that entry.
-- 
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 ]
Re: Inbound connection issue
#85559
Author: Jeffrey M. Vinocur
Date: Thu, 13 Jun 2013 09:57
18 lines
1805 bytes
In article <kpbp66$ldu$1@matrix.darkstorm.co.uk>,
Tony  <tony@darkstorm.co.uk> wrote:
>
>The odd thing, is it seems to be complaining about the reverse lookup for
>it's own address, not the incoming address?

Hmm I missed that.  What is the origin of the connections from
itself?  (Are you running a news client on the server machine?)


Anyway, that certainly won't resolve the issue with weretis being
handed to nnrpd...which still feels like you might want to
specify the IPs for that peer in incoming.conf.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Inbound connection issue
#85560
Author: Tony
Date: Thu, 13 Jun 2013 11:35
109 lines
9728 bytes
On 2013-06-13, Jeffrey M. Vinocur <jeff@litech.org> wrote:
> In article <kpbp66$ldu$1@matrix.darkstorm.co.uk>,
> Tony  <tony@darkstorm.co.uk> wrote:
>>
>>The odd thing, is it seems to be complaining about the reverse lookup for
>>it's own address, not the incoming address?
>
> Hmm I missed that.  What is the origin of the connections from
> itself?  (Are you running a news client on the server machine?)

I sometimes run a news client on that machine, although I have stopped
before this particular failure in case that was the cause.

> Anyway, that certainly won't resolve the issue with weretis being
> handed to nnrpd...which still feels like you might want to
> specify the IPs for that peer in incoming.conf.

The thing is, the issues are directly related, because the reverse
failure and the hand-off to nnrpd are part of the same events,

Jun 11 10:09:51 matrix nnrpd[10548]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.166
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net time 166 idle 94(3) nntpwrite 0(6)

every time.

Jun 11 10:19:23 matrix nnrpd[11426]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:19:23 matrix nnrpd[11426]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 11 10:19:23 matrix nnrpd[11426]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:19:23 matrix nnrpd[11426]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.111
Jun 11 10:19:23 matrix nnrpd[11426]: aquila.v.weretis.net time 112 idle 94(3) nntpwrite 0(6)

I also don't believe DNS can be failing for the length of time the
errors exist for, otherwise many more services on this box would be
failing.

# grep "reverse lookup for" news.notice.1 | head
Jun 11 10:09:51 matrix nnrpd[10548]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:10:21 matrix nnrpd[11032]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:10:51 matrix nnrpd[11037]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:11:21 matrix nnrpd[11040]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:11:51 matrix nnrpd[11041]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:12:21 matrix nnrpd[11046]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:12:51 matrix nnrpd[11047]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:13:21 matrix nnrpd[11056]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:13:51 matrix nnrpd[11057]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 11 10:14:22 matrix nnrpd[11061]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access

and

# grep "reverse lookup for" news.notice.1 | tail
Jun 12 04:12:43 matrix nnrpd[26543]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 12 04:13:00 matrix nnrpd[26544]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 12 04:13:13 matrix nnrpd[26545]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 12 04:13:30 matrix nnrpd[26546]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 12 04:13:44 matrix nnrpd[26547]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 12 04:14:00 matrix nnrpd[26548]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 12 04:14:14 matrix nnrpd[26549]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 12 04:14:30 matrix nnrpd[26550]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 12 04:14:44 matrix nnrpd[26551]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access
Jun 12 04:15:00 matrix nnrpd[26552]: ? reverse lookup for 2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation failed -- using IP address for access

And in the same period,

# grep "noperm ihave without permission" news.notice.1 | head
Jun 11 10:09:51 matrix nnrpd[10548]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:10:21 matrix nnrpd[11032]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:10:51 matrix nnrpd[11037]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:11:21 matrix nnrpd[11040]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:11:51 matrix nnrpd[11041]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:12:21 matrix nnrpd[11046]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:12:51 matrix nnrpd[11047]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:13:21 matrix nnrpd[11056]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:13:51 matrix nnrpd[11057]: aquila.v.weretis.net noperm ihave without permission
Jun 11 10:14:22 matrix nnrpd[11061]: aquila.v.weretis.net noperm ihave without permission

# grep "noperm ihave without permission" news.notice.1 | tail
Jun 12 04:12:43 matrix nnrpd[26543]: aquila.v.weretis.net noperm ihave without permission
Jun 12 04:13:00 matrix nnrpd[26544]: capricornus.v.weretis.net noperm ihave without permission
Jun 12 04:13:14 matrix nnrpd[26545]: aquila.v.weretis.net noperm ihave without permission
Jun 12 04:13:30 matrix nnrpd[26546]: capricornus.v.weretis.net noperm ihave without permission
Jun 12 04:13:44 matrix nnrpd[26547]: aquila.v.weretis.net noperm ihave without permission
Jun 12 04:14:00 matrix nnrpd[26548]: capricornus.v.weretis.net noperm ihave without permission
Jun 12 04:14:14 matrix nnrpd[26549]: aquila.v.weretis.net noperm ihave without permission
Jun 12 04:14:30 matrix nnrpd[26550]: capricornus.v.weretis.net noperm ihave without permission
Jun 12 04:14:44 matrix nnrpd[26551]: aquila.v.weretis.net noperm ihave without permission
Jun 12 04:15:00 matrix nnrpd[26552]: capricornus.v.weretis.net noperm ihave without permission

All the events line up exactly, nnrpd reports a failure to resolve it's
own IPv6 address and then rejects the connection from weretis.  What
isn't obvious in the log is why INN handed the connection to nnrpd in
the first place?

But I don't believe DNS can be failing for the entire period on that
server, otherwise as I say, the mail service would be struggling as
well.

I can see log entries in Exim's log at the same time as the failures
above which demonstrate to me DNS is working in both directions for both
remote addresses and the local server address (both IPv4 and IPv6).

-- 
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 ]
Re: Inbound connection issue
#85561
Author: Jeffrey M. Vinocur
Date: Fri, 14 Jun 2013 01:27
14 lines
1511 bytes
In article <kpcapd$otk$1@trinity.darkstorm.co.uk>,
Tony  <tony@darkstorm.co.uk> wrote:
>
>The thing is, the issues are directly related, because the reverse
>failure and the hand-off to nnrpd are part of the same events,

Ooo that's weird.

Julien? Russ?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Inbound connection issue
#85562
Author: Tony
Date: Sat, 15 Jun 2013 07:25
51 lines
3354 bytes
In news.software.nntp, Tony <tony@darkstorm.invalid> wrote:

>Yep, I think since it's complaining about it's own reverse lookup, I'll add
>the IPv6 address to the ME peer in incoming.conf first and see if that
>stops it happening (should know within about 2 weeks, with some certainty).

Well, this hasn't helped,

Jun 15 03:02:56 matrix nnrpd[13146]: ? reverse lookup for
2001:4b98:dc0:43:216:3eff:fe5e:54d0 failed: reverse lookup validation
failed -- using IP address for access
Jun 15 03:02:56 matrix nnrpd[13146]: newsfeed.neva.ru
(2001:b08:2:100::119:53) connect - port 119
Jun 15 03:02:57 matrix nnrpd[13146]: newsfeed.neva.ru noperm ihave without
permission

As you can see, same issue, different peer.

This time I fixed it by just performing a 

ctlinnd reload incoming.conf

Jun 15 08:17:15 matrix nnrpd[26953]: newsfeed.neva.ru noperm ihave without
permission
Jun 15 08:17:15 matrix nnrpd[26955]: news.neva.ru noperm ihave without
permission
Jun 15 08:17:15 matrix nnrpd[26954]: newsfeed.neva.ru noperm ihave without
permission
Jun 15 08:17:37 matrix innd: ctlinnd command o:incoming.conf:test
Jun 15 08:17:49 matrix innd: SERVER reload incoming.conf test
Jun 15 08:17:49 matrix innd: newsfeed.neva.ru connected 110 streaming
allowed
Jun 15 08:17:49 matrix innd: newsfeed.neva.ru connected 149 streaming
allowed
Jun 15 08:17:49 matrix innd: newsfeed.neva.ru connected 169 streaming
allowed
Jun 15 08:17:49 matrix innd: newsfeed.neva.ru:110 NCmode "MODE STREAM"
received
Jun 15 08:17:49 matrix innd: newsfeed.neva.ru:169 NCmode "MODE STREAM"
received
Jun 15 08:17:49 matrix innd: newsfeed.neva.ru:149 NCmode "MODE STREAM"
received

Any other ideas where the fault/issue may lie?  Any other options I can
turn on to get more info?
-- 
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 ]
Re: Inbound connection issue
#85563
Author: Julien ÉLIE
Date: Sat, 15 Jun 2013 07:42
32 lines
2502 bytes
Hi Jeffrey,

>> The thing is, the issues are directly related, because the reverse
>> failure and the hand-off to nnrpd are part of the same events,
> 
> Ooo that's weird.

These log lines for nnrpd indicate that:

* Client.ip / Client.host are properly set.


* Client.serverip is 2001:4b98:dc0:43:216:3eff:fe5e:54d0 but the IPs associated
to its reverse DNS do not match it.  At least for nnrpd, because I see:

% host 2001:4b98:dc0:43:216:3eff:fe5e:54d0
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 domain name pointer matrix.darkstorm.co.uk.

% host matrix.darkstorm.co.uk
matrix.darkstorm.co.uk has address 92.243.25.93
matrix.darkstorm.co.uk has IPv6 address 2001:4b98:dc0:43:216:3eff:fe5e:54d0
matrix.darkstorm.co.uk mail is handled by 10 matrix.darkstorm.co.uk.



Tony, what do the above "host" commands return when executed on your server?
Couldn't it happen that your /etc/hosts file locally overrides these responses?

-- 
Julien ÉLIE

« Acta est fabula. » (Auguste à son lit de mort)
Re: Inbound connection issue
#85564
Author: Julien ÉLIE
Date: Sat, 15 Jun 2013 08:04
20 lines
2335 bytes
Hi Tony,

> And I have just this in incoming.conf (same as before the move to the new
> server),
> 
> peer weretis.net {
>   hostname:               darkstorm-out.news.weretis.net
>   patterns: uk.*,comp.*,news.*,soc.*,humanities.*,sci.*,talk.*,rec.*,misc.*}

Are you sure the patterns line is written like this?
If I write put "}" at the end of it, I obtain the following error:

Jun 15 10:01:14 news innd: SERVER peer can't contain peer in /home/news/etc/incoming.conf line 54
Jun 15 10:01:14 news innd: SERVER Syntax error in /home/news/etc/incoming.conf at or before line 54

-- 
Julien ÉLIE

« Le secret de la créativité consiste à savoir comment cacher ses
  sources. » (Einstein)
Re: Inbound connection issue
#85565
Author: Julien ÉLIE
Date: Sat, 15 Jun 2013 08:04
31 lines
2713 bytes
Hi Tony,

> All the events line up exactly, nnrpd reports a failure to resolve it's
> own IPv6 address and then rejects the connection from weretis.  What
> isn't obvious in the log is why INN handed the connection to nnrpd in
> the first place?

INN hands the connection to innd in the first place; innd is the daemon 
that is listening to port 119.
If the incoming IP is not mentioned in incoming.conf, innd directly 
hands off the connection to nnrpd (without any log from innd).


What is strange in your case is that innd sometimes believes a given 
incoming IP is listed in incoming.conf, and sometimes not.

I hope that the two DNS servers you are using are coherent and answer 
the same thing.
Did you try the following commands?
   dig @217.70.184.225 darkstorm-out.news.weretis.net ANY
   dig @217.70.184.226 darkstorm-out.news.weretis.net ANY
   dig darkstorm-out.news.weretis.net ANY
   dig @217.70.184.225 matrix.darkstorm.co.uk ANY
   dig @217.70.184.226 matrix.darkstorm.co.uk ANY
   dig matrix.darkstorm.co.uk ANY

-- 
Julien ÉLIE

« Le secret de la créativité consiste à savoir comment cacher ses
   sources. » (Einstein)
Re: Inbound connection issue
#85566
Author: Tony
Date: Sat, 15 Jun 2013 09:28
26 lines
2365 bytes
In news.software.nntp, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
wrote:

>Hi Tony,
>
>> And I have just this in incoming.conf (same as before the move to the new
>> server),
>> 
>> peer weretis.net {
>>   hostname:               darkstorm-out.news.weretis.net
>>   patterns: uk.*,comp.*,news.*,soc.*,humanities.*,sci.*,talk.*,rec.*,misc.*}
>
>Are you sure the patterns line is written like this?
>If I write put "}" at the end of it, I obtain the following error:
>
>Jun 15 10:01:14 news innd: SERVER peer can't contain peer in /home/news/etc/incoming.conf line 54
>Jun 15 10:01:14 news innd: SERVER Syntax error in /home/news/etc/incoming.conf at or before line 54

Wrapping error in vim.  The closing } is on the line after the patterns:
line in my 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 ]
Re: Inbound connection issue
#85567
Author: Tony
Date: Sat, 15 Jun 2013 09:32
49 lines
3476 bytes
On 2013-06-15, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Jeffrey,
>
>>> The thing is, the issues are directly related, because the reverse
>>> failure and the hand-off to nnrpd are part of the same events,
>> 
>> Ooo that's weird.
>
> These log lines for nnrpd indicate that:
>
> * Client.ip / Client.host are properly set.
>
>
> * Client.serverip is 2001:4b98:dc0:43:216:3eff:fe5e:54d0 but the IPs associated
> to its reverse DNS do not match it.  At least for nnrpd, because I see:
>
> % host 2001:4b98:dc0:43:216:3eff:fe5e:54d0
> 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 domain name pointer matrix.darkstorm.co.uk.
>
> % host matrix.darkstorm.co.uk
> matrix.darkstorm.co.uk has address 92.243.25.93
> matrix.darkstorm.co.uk has IPv6 address 2001:4b98:dc0:43:216:3eff:fe5e:54d0
> matrix.darkstorm.co.uk mail is handled by 10 matrix.darkstorm.co.uk.
>
> Tony, what do the above "host" commands return when executed on your server?
> Couldn't it happen that your /etc/hosts file locally overrides these responses?

tony@matrix:~$ host 2001:4b98:dc0:43:216:3eff:fe5e:54d0
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 domain name pointer matrix.darkstorm.co.uk.

tony@matrix:~$ host matrix.darkstorm.co.uk
matrix.darkstorm.co.uk has address 92.243.25.93
matrix.darkstorm.co.uk has IPv6 address 2001:4b98:dc0:43:216:3eff:fe5e:54d0
matrix.darkstorm.co.uk mail is handled by 10 matrix.darkstorm.co.uk.

Why is innd handing the connection to nnrpd in the first place, why is
nnrpd even doing a lookup, it should be handled by innd?

I'm 99% sure there's not a DNS problem, because it only happens to one
peer at a time, while other peers remain okay, and it persists until I
ctlinnd reload incoming.conf, despite DNS working throughout that time
for every other service.

-- 
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 ]
Re: Inbound connection issue
#85568
Author: Tony
Date: Sat, 15 Jun 2013 09:36
49 lines
3607 bytes
On 2013-06-15, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Tony,
>
>> All the events line up exactly, nnrpd reports a failure to resolve it's
>> own IPv6 address and then rejects the connection from weretis.  What
>> isn't obvious in the log is why INN handed the connection to nnrpd in
>> the first place?
>
> INN hands the connection to innd in the first place; innd is the daemon 
> that is listening to port 119.
> If the incoming IP is not mentioned in incoming.conf, innd directly 
> hands off the connection to nnrpd (without any log from innd).
>
>
> What is strange in your case is that innd sometimes believes a given 
> incoming IP is listed in incoming.conf, and sometimes not.
>
> I hope that the two DNS servers you are using are coherent and answer 
> the same thing.
> Did you try the following commands?
>    dig @217.70.184.225 darkstorm-out.news.weretis.net ANY
>    dig @217.70.184.226 darkstorm-out.news.weretis.net ANY
>    dig darkstorm-out.news.weretis.net ANY
>    dig @217.70.184.225 matrix.darkstorm.co.uk ANY
>    dig @217.70.184.226 matrix.darkstorm.co.uk ANY
>    dig matrix.darkstorm.co.uk ANY

See my update earlier, the peer isn't always the same one, and during
the period of issue, other peers work fine.

I've checked, and the two Gandi DNS servers give the same responses, but
since the peer is not always the same one having the issue, I'm
comfortable it's not directly a DNS issue.

Does everyone just stack their incoming.conf's with IP addresses then?
I had tried to avoid that on the basis that I don't want to have to keep
changing them when people move servers around.  Also, this is exactly
the same incoming.conf I had with the previous version of INN (Squeeze)
hosted by the same company, so the behaviour is new to Wheezy + INN.

What does ctlinnd reload incoming.conf do internally in innd, because
that allows the peer to instantly start working again.

-- 
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 ]
Re: Inbound connection issue
#85569
Author: Richard Kettlewell
Date: Sat, 15 Jun 2013 11:19
29 lines
3025 bytes
Tony <tony@darkstorm.invalid> writes:
> tony@matrix:~$ host 2001:4b98:dc0:43:216:3eff:fe5e:54d0
> 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 domain name pointer matrix.darkstorm.co.uk.
>
> tony@matrix:~$ host matrix.darkstorm.co.uk
> matrix.darkstorm.co.uk has address 92.243.25.93
> matrix.darkstorm.co.uk has IPv6 address 2001:4b98:dc0:43:216:3eff:fe5e:54d0
> matrix.darkstorm.co.uk mail is handled by 10 matrix.darkstorm.co.uk.
>
> Why is innd handing the connection to nnrpd in the first place, why is
> nnrpd even doing a lookup, it should be handled by innd?
>
> I'm 99% sure there's not a DNS problem, because it only happens to one
> peer at a time, while other peers remain okay, and it persists until I
> ctlinnd reload incoming.conf, despite DNS working throughout that time
> for every other service.

nnrpd retrieves the name of the local end of the socket in order to
implement ‘localaddress’ in readers.conf.

For the nnrpd message you quote to appear, getaddrinfo() must succeed
(i.e. return 0) but must not include the given address in its results.

I suggest tcpdumping the DNS traffic between this machine and its
resolver to find out what it’s actually asking for and what answers it
gets.

-- 
http://www.greenend.org.uk/rjk/
Re: Inbound connection issue
#85570
Author: Tony
Date: Sat, 15 Jun 2013 11:57
37 lines
3171 bytes
In news.software.nntp, Richard Kettlewell <rjk@greenend.org.uk> wrote:

>Tony <tony@darkstorm.invalid> writes:
>> tony@matrix:~$ host 2001:4b98:dc0:43:216:3eff:fe5e:54d0
>> 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 domain name pointer matrix.darkstorm.co.uk.
>>
>> tony@matrix:~$ host matrix.darkstorm.co.uk
>> matrix.darkstorm.co.uk has address 92.243.25.93
>> matrix.darkstorm.co.uk has IPv6 address 2001:4b98:dc0:43:216:3eff:fe5e:54d0
>> matrix.darkstorm.co.uk mail is handled by 10 matrix.darkstorm.co.uk.
>>
>> Why is innd handing the connection to nnrpd in the first place, why is
>> nnrpd even doing a lookup, it should be handled by innd?
>>
>> I'm 99% sure there's not a DNS problem, because it only happens to one
>> peer at a time, while other peers remain okay, and it persists until I
>> ctlinnd reload incoming.conf, despite DNS working throughout that time
>> for every other service.
>
>nnrpd retrieves the name of the local end of the socket in order to
>implement ‘localaddress’ in readers.conf.
>
>For the nnrpd message you quote to appear, getaddrinfo() must succeed
>(i.e. return 0) but must not include the given address in its results.
>
>I suggest tcpdumping the DNS traffic between this machine and its
>resolver to find out what it’s actually asking for and what answers it
>gets.

Will do next time it triggers.  Any idea why a ctlinnd reload incoming.conf
stops the problem continuing (no other changes)?
-- 
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 ]
Re: Inbound connection issue
#85571
Author: Richard Kettlewell
Date: Sat, 15 Jun 2013 12:16
15 lines
2427 bytes
Tony <tony@darkstorm.invalid> writes:
> Richard Kettlewell <rjk@greenend.org.uk> wrote:
>>I suggest tcpdumping the DNS traffic between this machine and its
>>resolver to find out what it’s actually asking for and what answers it
>>gets.
>
> Will do next time it triggers.  Any idea why a ctlinnd reload incoming.conf
> stops the problem continuing (no other changes)?

If getaddrinfo() is intermittently failing to return everything it
should (for reasons currently unknown) then it seems likely that this
would affect innd too, and the reload would force a retry.

-- 
http://www.greenend.org.uk/rjk/
Re: Inbound connection issue
#85572
Author: Tony
Date: Sat, 15 Jun 2013 12:37
30 lines
3175 bytes
In news.software.nntp, Richard Kettlewell <rjk@greenend.org.uk> wrote:

>Tony <tony@darkstorm.invalid> writes:
>> Richard Kettlewell <rjk@greenend.org.uk> wrote:
>>>I suggest tcpdumping the DNS traffic between this machine and its
>>>resolver to find out what it’s actually asking for and what answers it
>>>gets.
>>
>> Will do next time it triggers.  Any idea why a ctlinnd reload incoming.conf
>> stops the problem continuing (no other changes)?
>
>If getaddrinfo() is intermittently failing to return everything it
>should (for reasons currently unknown) then it seems likely that this
>would affect innd too, and the reload would force a retry.

I get that - but the problem isn't intermittent.  It affects a single peer
only, at any one time, and once it starts, every connection from that peer
appears to fail until I reload incoming.conf.

During the last period of the issue, the server had 13 peers working, and
one failing every ~30 seconds for several hours.  At no point does the
non-working peer work briefly.  Once it stops working, it never starts
again until the reload, but no other peer has a problem any time during
that period.
-- 
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 ]
Re: Inbound connection issue
#85573
Author: Ray Banana
Date: Sat, 15 Jun 2013 13:07
20 lines
2552 bytes
Thus spake Tony <tony@darkstorm.invalid>
 
> During the last period of the issue, the server had 13 peers working, and
> one failing every ~30 seconds for several hours.  At no point does the
> non-working peer work briefly.  Once it stops working, it never starts
> again until the reload, but no other peer has a problem any time during
> that period.

Loading incoming.conf into memory includes doing a lookup for every
hostname in incoming.conf and the result is kept in memory as a cache to
avoid DNS lookups for every incoming peer connection (that's why some
people have a "ctlinnd reload incoming.conf 'Flush cache'" line in their 
crontab). So, for some unknown reason, your cache seems to drop lines,
which causes innd to forward your peer's connection request to nnrpd as an
ordinary client. As soon as you refresh the cache by doing a ctlinnd
reload incoming.conf, everything goes back to normal. 

-- 
Time flies like an arrow, fruit flies like a Banana.
http://www.eternal-september.org
Re: Inbound connection issue
#85574
Author: Richard Kettlewell
Date: Sat, 15 Jun 2013 13:09
33 lines
3373 bytes
Tony <tony@darkstorm.invalid> writes:
> Richard Kettlewell <rjk@greenend.org.uk> wrote:
>>Tony <tony@darkstorm.invalid> writes:
>>> Richard Kettlewell <rjk@greenend.org.uk> wrote:
>>>>I suggest tcpdumping the DNS traffic between this machine and its
>>>>resolver to find out what it’s actually asking for and what answers it
>>>>gets.
>>>
>>> Will do next time it triggers.  Any idea why a ctlinnd reload incoming.conf
>>> stops the problem continuing (no other changes)?
>>
>>If getaddrinfo() is intermittently failing to return everything it
>>should (for reasons currently unknown) then it seems likely that this
>>would affect innd too, and the reload would force a retry.
>
> I get that - but the problem isn't intermittent.  It affects a single peer
> only, at any one time, and once it starts, every connection from that peer
> appears to fail until I reload incoming.conf.
>
> During the last period of the issue, the server had 13 peers working, and
> one failing every ~30 seconds for several hours.  At no point does the
> non-working peer work briefly.  Once it stops working, it never starts
> again until the reload, but no other peer has a problem any time during
> that period.

That’s not completely inconsistent with getaddrinfo() intermittently
going wrong, since innd only calls it when re-reading incoming.conf.
Once it’s got some bad data in its head (either becuase it was wrong at
reload or because the peer changed address), it’ll stay there until you
reload it.

-- 
http://www.greenend.org.uk/rjk/
Re: Inbound connection issue
#85590
Author: 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 ]
Re: Inbound connection issue
#85587
Author: Richard Kettlewell
Date: Mon, 17 Jun 2013 12:58
62 lines
4815 bytes
Tony <tony@darkstorm.invalid> writes:
> 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.

:48 is INN’s internal connection identifier.  The peer address is
2a01:4f8:140:6362::2 in both cases.

This is nnrpd:

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

nnrpd looked up the peer address, and then looked up the name as a
consistency check, which passed.

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

nnrpd looked up the local address, but does _not_ do a DNS lookup of the
name it gets back.

“reverse lookup validation failed” shows that the consistency check
nevertheless failed, so getaddrinfo() must have succeeded.  Based on
this I predict that your /etc/hosts contains:

92.243.25.93 matrix.darkstorm.co.uk

but doesn’t mention the IPv6 address.  You need to either add the IPv6
address, or delete the IPv4 address and rely on DNS.

If this prediction is correct then it explains why nnrpd behaves as it
does.  It doesn’t explain why the connection is handed to nnrpd instead
of handle by innd though.

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

RChostname() will return the address rather than the site name if no
site matches the address, so I suspect that you’re right that for
reasons unknown the list of sites has lost at least this particular
address (and perhaps all addresses for the site).  That would also
explain why it hands it subsequent connections to nnrpd, and why
reloading fixes it.

I notice that the name you quote has two IPv6 addresses; perhaps that
case is mishandled somehow?
 
-- 
http://www.greenend.org.uk/rjk/
Re: Inbound connection issue
#85588
Author: Tony
Date: Mon, 17 Jun 2013 13:36
58 lines
3919 bytes
On 2013-06-17, Richard Kettlewell <rjk@greenend.org.uk> wrote:

<snip good stuff>

> “reverse lookup validation failed” shows that the consistency check
> nevertheless failed, so getaddrinfo() must have succeeded.  Based on
> this I predict that your /etc/hosts contains:
>
> 92.243.25.93 matrix.darkstorm.co.uk
>
> but doesn’t mention the IPv6 address.  You need to either add the IPv6
> address, or delete the IPv4 address and rely on DNS.

You're correct.  That's different to how it used to be checking a backup
of /etc/hosts on the previous VPS.  I've put the IPv6 address in so that
it matches how it used to be.

Thanks for finding that.

> If this prediction is correct then it explains why nnrpd behaves as it
> does.  It doesn’t explain why the connection is handed to nnrpd instead
> of handle by innd though.
>
>> 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.
>
> RChostname() will return the address rather than the site name if no
> site matches the address, so I suspect that you’re right that for
> reasons unknown the list of sites has lost at least this particular
> address (and perhaps all addresses for the site).  That would also
> explain why it hands it subsequent connections to nnrpd, and why
> reloading fixes it.
>
> I notice that the name you quote has two IPv6 addresses; perhaps that
> case is mishandled somehow?

Now that I've changed /etc/hosts, I'll restart innd, leave the DNS trace
running, and wait and see if it misbehaves again.  

On the point about multiple IPv6 addresses, there are 13 peers in
incoming.conf, only two of them have multiple IPv6 addresses, and those 
are the only 2 that have ever exhibited this behaviour.

-- 
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 ]
Re: Inbound connection issue
#85635
Author: Tony
Date: Wed, 19 Jun 2013 13:42
47 lines
4622 bytes
On 2013-06-12, Tony <tony@darkstorm.invalid> wrote:
> I've upgraded my INN2 install from Squeeze to Wheezy, keeping most of
> the settings the same.  I did the upgrade by building a new server and
> then migrating the settings across, rather than doing an in-place
> upgrade.

Okay, after making Richard's change (thanks again), I no longer get the
reverse lookup failures.  Hoever, I am still getting, at random times,
but always within 2 or 3 days, one or two of my peers being rejected.

It looks like it's peers with multiple IPv6 addresses.

Everything was fine up until this point,

Jun 19 14:15:28 matrix innd: 2a01:4f8:140:6362::2:38 checkpoint seconds 32488 accepted 55 refused 2354 rejected 4 duplicate 0 accepted size 157448 duplicate size 0 rejected size 15763
Jun 19 14:15:28 matrix innd: 2a01:4f8:140:6362::2:38 closed seconds 85579 accepted 251 refused 9064 rejected 8 duplicate 0 accepted size 873827 duplicate size 0 rejected size 24644
Jun 19 14:15:29 matrix nnrpd[12844]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:15:29 matrix nnrpd[12844]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:15:29 matrix nnrpd[12844]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.139
Jun 19 14:15:29 matrix nnrpd[12844]: aquila.v.weretis.net time 139 idle 72(3) nntpwrite 0(6)
Jun 19 14:15:59 matrix nnrpd[12849]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:16:13 matrix nnrpd[12849]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:16:13 matrix nnrpd[12849]: aquila.v.weretis.net times user 0.000 system 0.008 idle 0.000 elapsed 14.674
Jun 19 14:16:13 matrix nnrpd[12849]: aquila.v.weretis.net time 14676 idle 14665(3) nntpwrite 0(6)
Jun 19 14:16:29 matrix innfeed[27364]: weretis.net checkpoint seconds 300 offered 41 accepted 0 refused 37 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 4/0.1 requeued 0 queue 0.0/10:100,0,0,0,0,0
Jun 19 14:16:43 matrix nnrpd[12850]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:16:43 matrix nnrpd[12850]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:16:43 matrix nnrpd[12850]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.078
Jun 19 14:16:43 matrix nnrpd[12850]: aquila.v.weretis.net time 78 idle 71(3) nntpwrite 0(6)
Jun 19 14:17:13 matrix nnrpd[12855]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:17:13 matrix nnrpd[12855]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:17:13 matrix nnrpd[12855]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.081
Jun 19 14:17:13 matrix nnrpd[12855]: aquila.v.weretis.net time 81 idle 73(3) nntpwrite 0(6)

Is this a problem with innd and hosts with multiple IPv6 addresses, or
is this something broken in my config?

I *can* just add all the IPv6 addresses to my incoming.conf, but I would
prefer to stick to hostnames for the obvious reasons.


-- 
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 ]
Re: Inbound connection issue
#85634
Author: Tony
Date: Wed, 19 Jun 2013 13:51
92 lines
7670 bytes
On 2013-06-19, Tony <tony@darkstorm.invalid> wrote:
> On 2013-06-12, Tony <tony@darkstorm.invalid> wrote:
>> I've upgraded my INN2 install from Squeeze to Wheezy, keeping most of
>> the settings the same.  I did the upgrade by building a new server and
>> then migrating the settings across, rather than doing an in-place
>> upgrade.
>
> Okay, after making Richard's change (thanks again), I no longer get the
> reverse lookup failures.  Hoever, I am still getting, at random times,
> but always within 2 or 3 days, one or two of my peers being rejected.
>
> It looks like it's peers with multiple IPv6 addresses.
>
> Everything was fine up until this point,
>
> Jun 19 14:15:28 matrix innd: 2a01:4f8:140:6362::2:38 checkpoint seconds 32488 accepted 55 refused 2354 rejected 4 duplicate 0 accepted size 157448 duplicate size 0 rejected size 15763
> Jun 19 14:15:28 matrix innd: 2a01:4f8:140:6362::2:38 closed seconds 85579 accepted 251 refused 9064 rejected 8 duplicate 0 accepted size 873827 duplicate size 0 rejected size 24644
> Jun 19 14:15:29 matrix nnrpd[12844]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
> Jun 19 14:15:29 matrix nnrpd[12844]: aquila.v.weretis.net noperm ihave without permission
> Jun 19 14:15:29 matrix nnrpd[12844]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.139
> Jun 19 14:15:29 matrix nnrpd[12844]: aquila.v.weretis.net time 139 idle 72(3) nntpwrite 0(6)
> Jun 19 14:15:59 matrix nnrpd[12849]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
> Jun 19 14:16:13 matrix nnrpd[12849]: aquila.v.weretis.net noperm ihave without permission
> Jun 19 14:16:13 matrix nnrpd[12849]: aquila.v.weretis.net times user 0.000 system 0.008 idle 0.000 elapsed 14.674
> Jun 19 14:16:13 matrix nnrpd[12849]: aquila.v.weretis.net time 14676 idle 14665(3) nntpwrite 0(6)
> Jun 19 14:16:29 matrix innfeed[27364]: weretis.net checkpoint seconds 300 offered 41 accepted 0 refused 37 rejected 0 missing 0 accsize 0 rejsize 0 spooled 0 on_close 0 unspooled 0 deferred 4/0.1 requeued 0 queue 0.0/10:100,0,0,0,0,0
> Jun 19 14:16:43 matrix nnrpd[12850]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
> Jun 19 14:16:43 matrix nnrpd[12850]: aquila.v.weretis.net noperm ihave without permission
> Jun 19 14:16:43 matrix nnrpd[12850]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.078
> Jun 19 14:16:43 matrix nnrpd[12850]: aquila.v.weretis.net time 78 idle 71(3) nntpwrite 0(6)
> Jun 19 14:17:13 matrix nnrpd[12855]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
> Jun 19 14:17:13 matrix nnrpd[12855]: aquila.v.weretis.net noperm ihave without permission
> Jun 19 14:17:13 matrix nnrpd[12855]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.081
> Jun 19 14:17:13 matrix nnrpd[12855]: aquila.v.weretis.net time 81 idle 73(3) nntpwrite 0(6)
>
> Is this a problem with innd and hosts with multiple IPv6 addresses, or
> is this something broken in my config?
>
> I *can* just add all the IPv6 addresses to my incoming.conf, but I would
> prefer to stick to hostnames for the obvious reasons.

Interestingly, the ctlinnd reload didn't instanty fix it this time.

Jun 19 14:38:45 matrix nnrpd[14771]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:38:45 matrix nnrpd[14771]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:38:45 matrix nnrpd[14771]: aquila.v.weretis.net times user 0.000 system 0.008 idle 0.000 elapsed 0.080
Jun 19 14:38:45 matrix nnrpd[14771]: aquila.v.weretis.net time 80 idle 72(3) nntpwrite 0(6)
Jun 19 14:38:47 matrix innd: ctlinnd command o:incoming.conf:bugged
Jun 19 14:38:56 matrix innd: SERVER reload incoming.conf bugged
Jun 19 14:39:15 matrix nnrpd[14777]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:39:15 matrix nnrpd[14777]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:39:15 matrix nnrpd[14777]: aquila.v.weretis.net times user 0.008 system 0.000 idle 0.000 elapsed 0.080
Jun 19 14:39:15 matrix nnrpd[14777]: aquila.v.weretis.net time 81 idle 73(3) nntpwrite 0(6)
Jun 19 14:39:45 matrix nnrpd[14779]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:39:45 matrix nnrpd[14779]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:39:45 matrix nnrpd[14779]: aquila.v.weretis.net times user 0.008 system 0.000 idle 0.000 elapsed 0.079
Jun 19 14:39:45 matrix nnrpd[14779]: aquila.v.weretis.net time 79 idle 72(3) nntpwrite 0(6)
Jun 19 14:40:15 matrix nnrpd[15124]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:40:15 matrix nnrpd[15124]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:40:15 matrix nnrpd[15124]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.083
Jun 19 14:40:15 matrix nnrpd[15124]: aquila.v.weretis.net time 83 idle 72(3) nntpwrite 0(6)
(snip regular log stuff and more noperm errors)

Then (blank lines added for emphasis)

Jun 19 14:43:45 matrix nnrpd[15142]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:43:45 matrix nnrpd[15142]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:43:45 matrix nnrpd[15142]: aquila.v.weretis.net times user 0.008 system 0.000 idle 0.000 elapsed 0.079
Jun 19 14:43:45 matrix nnrpd[15142]: aquila.v.weretis.net time 79 idle 70(3) nntpwrite 1(6)

Jun 19 14:43:47 matrix innd: filter: Reloading bad files after 20000 articles

Jun 19 14:44:15 matrix nnrpd[15147]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
Jun 19 14:44:15 matrix nnrpd[15147]: aquila.v.weretis.net noperm ihave without permission
Jun 19 14:44:15 matrix nnrpd[15147]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.079
Jun 19 14:44:15 matrix nnrpd[15147]: aquila.v.weretis.net time 79 idle 71(3) nntpwrite 0(6)

and then,

Jun 19 14:46:22 matrix innd: ctlinnd command o:incoming.conf:bugged
Jun 19 14:46:31 matrix innd: SERVER reload incoming.conf bugged
Jun 19 14:46:46 matrix innd: darkstorm-out.news.weretis.net connected 42 streaming allowed
Jun 19 14:46:47 matrix innd: darkstorm-out.news.weretis.net:42 NCmode "MODE STREAM" received



-- 
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 ]
Re: Inbound connection issue
#85639
Author: Richard Kettlewell
Date: Wed, 19 Jun 2013 14:22
9 lines
1993 bytes
Tony <tony@darkstorm.invalid> writes:
> Interestingly, the ctlinnd reload didn't instanty fix it this time.

Completely wild guess, but it may be connected to the ordering of
records within the DNS response, something that is (deliberately)
variable.

-- 
http://www.greenend.org.uk/rjk/
Re: Inbound connection issue
#85640
Author: Tony
Date: Wed, 19 Jun 2013 15:30
24 lines
2254 bytes
On 2013-06-19, Richard Kettlewell <rjk@greenend.org.uk> wrote:
> Tony <tony@darkstorm.invalid> writes:
>> Interestingly, the ctlinnd reload didn't instanty fix it this time.
>
> Completely wild guess, but it may be connected to the ordering of
> records within the DNS response, something that is (deliberately)
> variable.

Yeh, I wondered that.  I've been running the DNS tcpdump the whole time.
I don't have time to cut out the relevant records right now, but I'll
search through them later and see if there's any obvious difference
there.

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.

-- 
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 ]
Re: Inbound connection issue
#85652
Author: Tony
Date: Wed, 19 Jun 2013 19:39
85 lines
8258 bytes
On 2013-06-19, Tony <tony@darkstorm.invalid> wrote:

> Interestingly, the ctlinnd reload didn't instanty fix it this time.

> Jun 19 14:38:47 matrix innd: ctlinnd command o:incoming.conf:bugged
> Jun 19 14:38:56 matrix innd: SERVER reload incoming.conf bugged
> Jun 19 14:39:15 matrix nnrpd[14777]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
> Jun 19 14:39:15 matrix nnrpd[14777]: aquila.v.weretis.net noperm ihave without permission
> Jun 19 14:39:15 matrix nnrpd[14777]: aquila.v.weretis.net times user 0.008 system 0.000 idle 0.000 elapsed 0.080
> Jun 19 14:39:15 matrix nnrpd[14777]: aquila.v.weretis.net time 81 idle 73(3) nntpwrite 0(6)
> Jun 19 14:39:45 matrix nnrpd[14779]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
> Jun 19 14:39:45 matrix nnrpd[14779]: aquila.v.weretis.net noperm ihave without permission
> Jun 19 14:39:45 matrix nnrpd[14779]: aquila.v.weretis.net times user 0.008 system 0.000 idle 0.000 elapsed 0.079
> Jun 19 14:39:45 matrix nnrpd[14779]: aquila.v.weretis.net time 79 idle 72(3) nntpwrite 0(6)
> Jun 19 14:40:15 matrix nnrpd[15124]: aquila.v.weretis.net (2a01:4f8:140:6362::2) connect - port 119
> Jun 19 14:40:15 matrix nnrpd[15124]: aquila.v.weretis.net noperm ihave without permission
> Jun 19 14:40:15 matrix nnrpd[15124]: aquila.v.weretis.net times user 0.004 system 0.004 idle 0.000 elapsed 0.083
> Jun 19 14:40:15 matrix nnrpd[15124]: aquila.v.weretis.net time 83 idle 72(3) nntpwrite 0(6)
> (snip regular log stuff and more noperm errors)

Here's the DNS entries after the reload,

14:38:48.591554 IP matrix.darkstorm.co.uk.55259 > ns1.ghst.net.domain: 24149+ A? darkstorm-out.news.weretis.net. (48)
14:38:48.591875 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.55259: 24149 3/5/11 CNAME feeders.news.weretis.net., A 46.4.82.166, A 78.46.240.70 (453)
14:38:48.591947 IP matrix.darkstorm.co.uk.35805 > ns1.ghst.net.domain: 60867+ AAAA? darkstorm-out.news.weretis.net. (48)
14:38:49.592382 IP matrix.darkstorm.co.uk.35772 > ns2.ghst.net.domain: 48164+ A? news-out.aioe.org. (35)
14:38:49.605009 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.54787: 53734 2/5/8 CNAME load.tornevall.net., AAAA 2001:16d8:cc8b::2 (339)
14:38:49.631993 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.35772: 48164 1/4/4 A 94.75.214.39 (227)
14:38:49.632063 IP matrix.darkstorm.co.uk.60271 > ns2.ghst.net.domain: 36229+ AAAA? news-out.aioe.org. (35)
14:38:49.672589 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.60271: 36229 0/1/0 (100)
14:38:49.672859 IP matrix.darkstorm.co.uk.57249 > ns1.ghst.net.domain: 51634+ A? feeder.eternal-september.org. (46)
14:38:49.705263 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.57249: 51634 1/3/6 A 85.214.130.194 (251)
14:38:49.705353 IP matrix.darkstorm.co.uk.38058 > ns1.ghst.net.domain: 2272+ AAAA? feeder.eternal-september.org. (46)
14:38:50.673690 IP matrix.darkstorm.co.uk.46703 > ns2.ghst.net.domain: 27917+ A? news.unit0.net. (32)
14:38:50.694852 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.46703: 27917 1/5/8 A 195.71.90.67 (325)
14:38:50.694957 IP matrix.darkstorm.co.uk.49344 > ns2.ghst.net.domain: 54586+ AAAA? news.unit0.net. (32)
14:38:51.639565 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.49344: 54586 1/5/8 AAAA 2001:470:933e::5 (337)
14:38:51.639958 IP matrix.darkstorm.co.uk.55017 > ns1.ghst.net.domain: 34787+ A? newsfeed.neva.ru. (34)
14:38:51.698668 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.55017: 34787 6/3/6 A 195.208.113.67, A 83.149.209.203, A 195.208.112.253, A
195.208.113.1, A 195.208.113.2, A 195.208.113.3 (318) 14:38:51.698806 IP matrix.darkstorm.co.uk.41598 > ns1.ghst.net.domain: 15244+ AAAA? newsfeed.neva.ru. (34)
14:38:51.757329 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.41598: 15244 4/3/6 AAAA 2001:b08:2:100::119:53, AAAA 2001:b08:2:100::119:95, AAAA 2001:b08:2:100::119:96, AAAA 2001:b08:2:100::67 (334) 

Is it me, or does the request for AAAA darkstorm-out.news.weretis.net.
go unanswered?

These then match up with the nnrpd rejections,

14:39:15.748303 IP matrix.darkstorm.co.uk.42191 > ns2.ghst.net.domain: 31523+ 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)
14:39:15.748666 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.42191: 31523 1/3/6 PTR aquila.v.weretis.net. (346)
14:39:15.748861 IP matrix.darkstorm.co.uk.57318 > ns1.ghst.net.domain: 41233+ A? aquila.v.weretis.net. (38)
14:39:15.748892 IP matrix.darkstorm.co.uk.57318 > ns1.ghst.net.domain: 51711+ AAAA? aquila.v.weretis.net. (38)
14:39:15.749197 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.57318: 41233 1/5/11 A 46.4.82.166 (405)
14:39:15.749236 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.57318: 51711 1/5/11 AAAA 2a01:4f8:140:6362::2 (417)

14:39:45.096571 IP matrix.darkstorm.co.uk.38445 > ns2.ghst.net.domain: 43027+ 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)
14:39:45.096883 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.38445: 43027 1/3/6 PTR aquila.v.weretis.net. (346)
14:39:45.097077 IP matrix.darkstorm.co.uk.35151 > ns1.ghst.net.domain: 50669+ A? aquila.v.weretis.net. (38)
14:39:45.097112 IP matrix.darkstorm.co.uk.35151 > ns1.ghst.net.domain: 58567+ AAAA? aquila.v.weretis.net. (38)
14:39:45.097370 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.35151: 50669 1/5/11 A 46.4.82.166 (405)
14:39:45.097434 IP ns1.ghst.net.domain > matrix.darkstorm.co.uk.35151: 58567 1/5/11 AAAA 2a01:4f8:140:6362::2 (417)

> and then,
>
> Jun 19 14:46:22 matrix innd: ctlinnd command o:incoming.conf:bugged
> Jun 19 14:46:31 matrix innd: SERVER reload incoming.conf bugged
> Jun 19 14:46:46 matrix innd: darkstorm-out.news.weretis.net connected 42 streaming allowed
> Jun 19 14:46:47 matrix innd: darkstorm-out.news.weretis.net:42 NCmode "MODE STREAM" received

And here, after the reload we have,

14:46:25.983209 IP matrix.darkstorm.co.uk.39756 > ns2.ghst.net.domain: 49415+ A? darkstorm-out.news.weretis.net. (48)
14:46:25.983609 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.39756: 49415 3/5/4 CNAME feeders.news.weretis.net., A 78.46.240.70, A
46.4.82.166 (305)
14:46:25.983678 IP matrix.darkstorm.co.uk.58342 > ns2.ghst.net.domain: 15417+ AAAA? darkstorm-out.news.weretis.net. (48)
14:46:25.983960 IP ns2.ghst.net.domain > matrix.darkstorm.co.uk.58342: 15417 3/5/4 CNAME feeders.news.weretis.net., AAAA 2a01:4f8:120:8241::2, AAAA 2a01:4f8:140:6362::2 (329)

So this time, we do get a response to the AAAA lookup.  So, it looks
like I do have a DNS issue?

-- 
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 ]
Re: Inbound connection issue
#85673
Author: Julien ÉLIE
Date: Wed, 19 Jun 2013 19:55
63 lines
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. »
Re: Inbound connection issue
#85674
Author: Julien ÉLIE
Date: Wed, 19 Jun 2013 19:57
16 lines
2018 bytes
Hi Tony,

> 14:38:48.591947 IP matrix.darkstorm.co.uk.35805 > ns1.ghst.net.domain: 60867+ AAAA? darkstorm-out.news.weretis.net. (48)
> 14:38:49.592382 IP matrix.darkstorm.co.uk.35772 > ns2.ghst.net.domain: 48164+ A? news-out.aioe.org. (35)
>
> Is it me, or does the request for AAAA
> darkstorm-out.news.weretis.net. go unanswered?

And the request is unanswered during 1 second, which is exactly the 
value of your timeout option in /etc/resolv.conf...

-- 
Julien ÉLIE

« Ne craignez pas d'être lent, craignez seulement d'être à
   l'arrêt. »
Re: Inbound connection issue
#85675
Author: Richard Kettlewell
Date: Wed, 19 Jun 2013 19:59
13 lines
1973 bytes
Tony <tony@darkstorm.invalid> writes:
> Is it me, or does the request for AAAA darkstorm-out.news.weretis.net.
> go unanswered?

Looks like, yes.  Any errors logged corresponding to that?

> So this time, we do get a response to the AAAA lookup.  So, it looks
> like I do have a DNS issue?

Sounds like it.

-- 
http://www.greenend.org.uk/rjk/
Re: Inbound connection issue
#85688
Author: Tony
Date: Wed, 19 Jun 2013 22:31
17 lines
1910 bytes
In news.software.nntp, Richard Kettlewell <rjk@greenend.org.uk> wrote:

>Tony <tony@darkstorm.invalid> writes:
>> Is it me, or does the request for AAAA darkstorm-out.news.weretis.net.
>> go unanswered?
>
>Looks like, yes.  Any errors logged corresponding to that?

No, it looks like it's silently dropped.  I'll scout around some other (non
innd) log files, but news.err and news.crit are empty.

-- 
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 ]
Re: Inbound connection issue
#85705
Author: Tony
Date: Wed, 19 Jun 2013 22:32
26 lines
2669 bytes
In news.software.nntp, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
wrote:

>Hi Tony,
>
>> 14:38:48.591947 IP matrix.darkstorm.co.uk.35805 > ns1.ghst.net.domain: 60867+ AAAA? darkstorm-out.news.weretis.net. (48)
>> 14:38:49.592382 IP matrix.darkstorm.co.uk.35772 > ns2.ghst.net.domain: 48164+ A? news-out.aioe.org. (35)
>>
>> Is it me, or does the request for AAAA
>> darkstorm-out.news.weretis.net. go unanswered?
>
>And the request is unanswered during 1 second, which is exactly the 
>value of your timeout option in /etc/resolv.conf...

Yep, I've upped that to 3 seconds, since that's the last remaining obvious
difference between my new server and the last one.  man resolve.conf
suggests the default without that entry is 5, but I'll see if 3 is enough.

I may well run some regular dig's and see if I can trigger / observe the
behaviour outside of inn.
-- 
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 ]
Re: Inbound connection issue
#85707
Author: Tony
Date: Wed, 19 Jun 2013 22:42
21 lines
2188 bytes
In news.software.nntp, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
wrote:

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

I'll give it a shot, can't promise when, I'll need to find a time when I
know I'm not going to need the server for a couple of hours.  If I do, I'll
get back to you - thanks for putting that together.
-- 
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 ]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads