Thread View: news.software.nntp
10 messages
10 total messages
Started by Aioe
Mon, 17 Dec 2018 15:04
nnrpd log
Author: Aioe
Date: Mon, 17 Dec 2018 15:04
Date: Mon, 17 Dec 2018 15:04
16 lines
1275 bytes
1275 bytes
in my news.notice, every day I find some hundreds of lines like this: ----------------------------- Dec 17 14:30:44 gioia nnrpd-ssl[25677]: times user 0.004 system 0.004 idle 0.000 elapsed 60.785 Dec 17 14:30:44 gioia nnrpd-ssl[25677]: time 60785 nntpwrite 0(1) ----------------------------- client's ip address is missing and this is a problem since i don't find a way to know it. does anyone have any suggestions? thank you
Re: nnrpd log (SOLVED)
Author: Aioe
Date: Mon, 17 Dec 2018 15:37
Date: Mon, 17 Dec 2018 15:37
20 lines
1481 bytes
1481 bytes
Il Mon, 17 Dec 2018 15:04:50 +0000, Aioe ha scritto: > in my news.notice, every day I find some hundreds of lines like this: there is a small bug in inn 2.5.4 If a user tries to establish an unsecured connection (plain) with nnrpd- ssl, the connection is not established but the IP address that attempted the connection is not saved in the logs. $ telnet nntp.aioe.org 563 ---------------- Dec 17 16:33:59 gioia nnrpd-ssl[61418]: times user 0.004 system 0.004 idle 0.000 elapsed 26.975 Dec 17 16:33:59 gioia nnrpd-ssl[61418]: time 26976 nntpwrite 0(1) ----------------
Re: nnrpd log
Author: Julien ÉLIE
Date: Mon, 17 Dec 2018 15:41
Date: Mon, 17 Dec 2018 15:41
44 lines
2626 bytes
2626 bytes
Hi Paolo,
> in my news.notice, every day I find some hundreds of lines like this:
>
> -----------------------------
> Dec 17 14:30:44 gioia nnrpd-ssl[25677]: times user 0.004 system 0.004
> idle 0.000 elapsed 60.785
> Dec 17 14:30:44 gioia nnrpd-ssl[25677]: time 60785 nntpwrite 0(1)
> -----------------------------
>
> client's ip address is missing and this is a problem since i don't find a
> way to know it.
>
> does anyone have any suggestions?
Hmmm. I also see such lines without hostname in my server logs.
Strange. A quick glance at the code seems to indicate that a value
should be set at connection startup: "?", "localhost", hostname or IP.
Besides, a "connect - port 563" is also always written at the end of the
function called at connection startup, and it does not appear in the
notice logs...
[10 minutes later]
Ah, it seems like these lines appear when a TLS session does not manage
to be established.
For instance if I try to negotiate a TLS v1.3-only connection with your
news server that is probably linked to an OpenSSL version that does not
support TLS 1.3.
openssl s_client -connect nntp.aioe.org:563 -tls1_3
I think I've made such lines appear in your logs.
--
Julien ÉLIE
« – Ce n'était pas ma question.
– C'était p'têt pas vot'question, oui, mais c'est ma
réponse ! » (Georges Marchais répondant à Alain Duhamel)
Re: nnrpd log (SOLVED)
Author: Julien ÉLIE
Date: Mon, 17 Dec 2018 16:00
Date: Mon, 17 Dec 2018 16:00
39 lines
2504 bytes
2504 bytes
Hi Paolo,
> there is a small bug in inn 2.5.4
> If a user tries to establish an unsecured connection (plain) with nnrpd-
> ssl, the connection is not established but the IP address that attempted
> the connection is not saved in the logs.
Yep, or more generally if the initial TLS handshake fails.
> $ telnet nntp.aioe.org 563
>
> ----------------
>
> Dec 17 16:33:59 gioia nnrpd-ssl[61418]: times user 0.004 system 0.004
> idle 0.000 elapsed 26.975
> Dec 17 16:33:59 gioia nnrpd-ssl[61418]: time 26976 nntpwrite 0(1)
> ----------------
These logs are written when nnrpd exits. In this case, the client never
managed to initiate an NNTP session (as the implicit TLS session is not
established).
Also, when nnrpd does not handle a connection because of a high load
average, the IP / hostname is not logged. This is the second case where
nnrpd exits before trying to find IP / hostname, and it has a special
additional log "load xx > yy".
I can have a look to try to compute the IP / hostname in these two
cases, so that it is logged.
--
Julien ÉLIE
« – Ce n'était pas ma question.
– C'était p'têt pas vot'question, oui, mais c'est ma
réponse ! » (Georges Marchais répondant à Alain Duhamel)
Re: nnrpd log
Author: Aioe
Date: Mon, 17 Dec 2018 16:05
Date: Mon, 17 Dec 2018 16:05
55 lines
2155 bytes
2155 bytes
Il Mon, 17 Dec 2018 16:41:24 +0100, Julien ÉLIE ha scritto:
> openssl s_client -connect nntp.aioe.org:563 -tls1_3
>
> I think I've made such lines appear in your logs.
my openssl installation doesn't seem to support -tls1_3 but if i use
-tls1_2 or -tls1_1, connection seems to be established by *no* log are
written (server does not save any track of incoming connection)
----
$ openssl s_client -connect nntp.aioe.org:563 -tls1_1
CONNECTED(00000003)
139695953282712:error:1409E0E5:SSL routines:ssl3_write_bytes:ssl
handshake failure:s3_pkt.c:656:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 0 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.1
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
Key-Arg : None
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1545062601
Timeout : 7200 (sec)
Verify return code: 0 (ok)
-------------------------------
tail -f /var/log/news/news.notice
[nothing]
Re: nnrpd log (SOLVED)
Author: Aioe
Date: Mon, 17 Dec 2018 16:08
Date: Mon, 17 Dec 2018 16:08
12 lines
1346 bytes
1346 bytes
Il Mon, 17 Dec 2018 17:00:44 +0100, Julien ÉLIE ha scritto: > Also, when nnrpd does not handle a connection because of a high load > average, the IP / hostname is not logged. imho this is a bad rule, probably a bug. If when the load is too high the server does not log which IPs have generated the traffic, the newsmaster can not know which IP has to ban. but it's only my opinion
Re: nnrpd log (SOLVED)
Author: Julien ÉLIE
Date: Mon, 17 Dec 2018 20:27
Date: Mon, 17 Dec 2018 20:27
34 lines
2332 bytes
2332 bytes
Hi Paolo, > Il Mon, 17 Dec 2018 17:00:44 +0100, Julien ÉLIE ha scritto: > >> Also, when nnrpd does not handle a connection because of a high load >> average, the IP / hostname is not logged. > > imho this is a bad rule, probably a bug. > If when the load is too high the server does not log which IPs have > generated the traffic, the newsmaster can not know which IP has to ban. > > but it's only my opinion I agree. I have a pending patch that I'll soon commit for INN 2.6.3. I'm just waiting for innreport to run once. Logs now look like: Dec 17 20:50:38 news nnrpd[32756]: localhost (127.0.0.1) connect - port 563 Dec 17 20:50:38 news nnrpd[32756]: localhost failure to negotiate TLS session Dec 17 20:50:38 news nnrpd[32756]: localhost times user 0.020 system 0.000 idle 0.000 elapsed 0.021 Dec 17 20:50:38 news nnrpd[32756]: localhost time 24 nntpwrite 0(1) and a similar log at the second line in case of high load. -- Julien ÉLIE « Corruptissima republica plurimae leges. »
Re: nnrpd log
Author: Julien ÉLIE
Date: Mon, 17 Dec 2018 20:30
Date: Mon, 17 Dec 2018 20:30
16 lines
1771 bytes
1771 bytes
Hi Paolo, > my openssl installation doesn't seem to support -tls1_3 but if i use > -tls1_2 or -tls1_1, connection seems to be established by *no* log are > written (server does not save any track of incoming connection) Even after sending a QUIT or terminating the openssl command? I do not manage to reproduce this case with INN 2.6.2 (which shares a similar code with your INN 2.5.4 as for startup logging). -- Julien ÉLIE « Les grands artistes n'ont pas de patrie. » (Alfred de Musset)
Re: nnrpd log
Author: Aioe
Date: Tue, 18 Dec 2018 19:38
Date: Tue, 18 Dec 2018 19:38
14 lines
1314 bytes
1314 bytes
Il Mon, 17 Dec 2018 21:30:59 +0100, Julien ÉLIE ha scritto: > I do not manage to reproduce this case with INN 2.6.2 (which shares a > similar code with your INN 2.5.4 as for startup logging). after a long day spent trying to understand, I finally realized that sometimes I'm an idiot, it was a mistake sorry for this
Re: nnrpd log (SOLVED)
Author: Julien ÉLIE
Date: Sat, 29 Dec 2018 13:41
Date: Sat, 29 Dec 2018 13:41
24 lines
2058 bytes
2058 bytes
>>> Also, when nnrpd does not handle a connection because of a high load >>> average, the IP / hostname is not logged. >> >> imho this is a bad rule, probably a bug. >> If when the load is too high the server does not log which IPs have >> generated the traffic, the newsmaster can not know which IP has to ban. >> >> but it's only my opinion > > I agree. > I have a pending patch that I'll soon commit for INN 2.6.3. I'm just > waiting for innreport to run once. Now committed. Thanks again for your report Paolo! https://inn.eyrie.org/trac/changeset/10319 -- Julien ÉLIE « It is better to sit in silence and appear ignorant, than to open your mouth and remove all doubt. »
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