Thread View: news.software.nntp
10 messages
10 total messages
Started by Michael Grimm
Mon, 26 Jul 2010 20:04
Injection-Info header
Author: Michael Grimm
Date: Mon, 26 Jul 2010 20:04
Date: Mon, 26 Jul 2010 20:04
17 lines
1671 bytes
1671 bytes
Hi -- I recently upgraded my reader server to INN 2.6.0 (snapshot 20100723) without any issues, kudos to all involved. I might have missed in all the readmes, installs and rfcs regarding the new Injection-Info: how one would modify the contents of this header in INN? Is it filter_nnrpd.XX, only? Second question: the "logging-data" part is set to the PID of my running nnrpd instance. But, how would one use this part in a meaningful manner at a server with many users? By filter_nnrpd.XX, again? Just curious ... Regards, Michael -- to let
Re: Injection-Info header
Author: Michael Grimm
Date: Mon, 26 Jul 2010 20:17
Date: Mon, 26 Jul 2010 20:17
22 lines
1912 bytes
1912 bytes
Michael Grimm <trashcan@odo.in-berlin.de> wrote: Hmm, I just realized that my Path: header ... Path: de-l.enfer-du-nord.net!reader.enfer-du-nord.net!.POSTED.pd9536b94.dip.t-dialin.net!not-for-mail ... contains the advertised ... ,---- http://www.eyrie.org/~eagle/software/inn/docs/news.html#S2 | The Injection-Info: [...] The Path: header of locally posted articles | now also contains the contents of the NNTP-Posting-Host: header. `---- ... NNTP-Posting-Host part after ".Posted.". How do I get rid of that? Sorry, but I'm obviously missing something important here. Back to reading the info texts ... Regards, Michael -- to let
Re: Injection-Info header
Author: D. Stussy
Date: Mon, 26 Jul 2010 21:22
Date: Mon, 26 Jul 2010 21:22
16 lines
1783 bytes
1783 bytes
"Michael Grimm" <trashcan@odo.in-berlin.de> wrote in message news:i2kqg3$1rmc$3@de-l.enfer-du-nord.net... > Michael Grimm <trashcan@odo.in-berlin.de> wrote: > > Hmm, I just realized that my Path: header ... > > Path: de-l.enfer-du-nord.net!reader.enfer-du-nord.net!.POSTED.pd9536b94.dip.t-dia lin.net!not-for-mail I know that this changed with 2.5.2, but is ".POSTED" (i.e. a path element starting with a period) valid? I thought it was supposed to be suffixed to another path element (the one from the originating server); not separated from it by "!".
Re: Injection-Info header
Author: Russ Allbery
Date: Mon, 26 Jul 2010 21:58
Date: Mon, 26 Jul 2010 21:58
16 lines
1804 bytes
1804 bytes
"D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:
> I know that this changed with 2.5.2, but is ".POSTED" (i.e. a path
> element starting with a period) valid? I thought it was supposed to be
> suffixed to another path element (the one from the originating server);
> not separated from it by "!".
No, it's separated by "!". It's a <path-diagnostic>, specifically a
<diag-other>. See RFC 5536 section 3.1.5, and also the detailed
discussion and example in RFC 5537 sections 3.2.1 and 3.2.2.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Injection-Info header
Author: Julien ÉLIE
Date: Thu, 29 Jul 2010 18:23
Date: Thu, 29 Jul 2010 18:23
33 lines
2526 bytes
2526 bytes
Hi Michael, > Path: > de-l.enfer-du-nord.net!reader.enfer-du-nord.net!.POSTED.pd9536b94.dip.t-dialin.net!not-for-mail > > ... contains the advertised ... > > ,---- http://www.eyrie.org/~eagle/software/inn/docs/news.html#S2 > | The Injection-Info: [...] The Path: header of locally posted articles > | now also contains the contents of the NNTP-Posting-Host: header. > `---- > > ... NNTP-Posting-Host part after ".Posted.". > > How do I get rid of that? Sorry, but I'm obviously missing something > important here. Back to reading the info texts ... In the changelog you quote, there is also: "Note that addnntppostinghost has been renamed to addinjectionpostinghost in inn.conf." And the documentation of inn.conf mentions: "When this parameter is set to true, the FQDN (or, if unknown, the IP address) of the client is also added to the Path: header, after the !.POSTED diagnostic." I hope this parameter will suit you. -- Julien ÉLIE « Le sel de l'existence est essentiellement dans le poivre qu'on y met. » (Alphonse Allais)
Re: Injection-Info header
Author: Julien ÉLIE
Date: Thu, 29 Jul 2010 18:29
Date: Thu, 29 Jul 2010 18:29
24 lines
2177 bytes
2177 bytes
Hi Michael, > I might have missed in all the readmes, installs and rfcs regarding > the new Injection-Info: how one would modify the contents of this header > in INN? Is it filter_nnrpd.XX, only? Yes, it will be at injection time. Therefore, in nnrpd filters. > Second question: the "logging-data" part is set to the PID of my running > nnrpd instance. But, how would one use this part in a meaningful manner > at a server with many users? By filter_nnrpd.XX, again? Just curious ... You can modify it if you want with your nnrpd filters. The point of logging-data is to identify more easily the relevant lines in news.notice (where the PID is also used). -- Julien ÉLIE « Le sel de l'existence est essentiellement dans le poivre qu'on y met. » (Alphonse Allais)
Re: Injection-Info header
Author: Michael Grimm
Date: Thu, 29 Jul 2010 19:00
Date: Thu, 29 Jul 2010 19:00
51 lines
3244 bytes
3244 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> ,---- http://www.eyrie.org/~eagle/software/inn/docs/news.html#S2 >> | The Injection-Info: [...] The Path: header of locally posted articles >> | now also contains the contents of the NNTP-Posting-Host: header. >> `---- >> >> How do I get rid of that? Sorry, but I'm obviously missing something >> important here. Back to reading the info texts ... > > In the changelog you quote, there is also: "Note that > addnntppostinghost has been renamed to addinjectionpostinghost in > inn.conf." > > And the documentation of inn.conf mentions: "When this parameter is > set to true, the FQDN (or, if unknown, the IP address) of the client > is also added to the Path: header, after the !.POSTED diagnostic." > > I hope this parameter will suit you. During my initital tests I did set addinjectionpostinghost to false and ended up in (snipped to the relevant parts): Path: ...!.POSTED!not-for-mail Injection-Info: without FQDN:IP of injecting client If set addinjectionpostinghost to true this is modified to: Path: ...!.POSTED.example.com:1.2.3.4!not-for-mail Injection-Info: ...; posting-host="example.com:1.2.3.4" Well, that is exactly what is mentioned in the documentation. Nothing to complain, though. I was only wondering why? Today, ISPs tend to encrypt such sensible data like FQDN and IP of injecting clients. That can be easily achieved within Injection-Info: header as in X-Trace, but: may one insert an encrypted FQDN:IP into the path header as well? I doubt, but I do have to admit that I don't know. Therefore I did wonder, why one cannot configure that behaviour in a way shown in this posting's headers: Path: like in addinjectionpostinghost set to false and Injection-Info: like in addinjectionpostinghost set to true? Well, it can be done within filter_nnrpd.pl, as others (presumely) and myself do, thus, no need to change things ;-) Regards, Michael -- to let
Re: Injection-Info header
Author: Michael Grimm
Date: Thu, 29 Jul 2010 19:03
Date: Thu, 29 Jul 2010 19:03
19 lines
1900 bytes
1900 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> Second question: the "logging-data" part is set to the PID of my >> running nnrpd instance. But, how would one use this part in a >> meaningful manner at a server with many users? By filter_nnrpd.XX, >> again? Just curious ... > > You can modify it if you want with your nnrpd filters. The point of > logging-data is to identify more easily the relevant lines in > news.notice (where the PID is also used). Ok, now I do understand. Thanks for clarification. As I'm currently the only user of my server, I delete that part in order to save some bytes in my CNFSs ;-)) Regards, Michael -- to let
Re: Injection-Info header
Author: Julien ÉLIE
Date: Thu, 29 Jul 2010 20:59
Date: Thu, 29 Jul 2010 20:59
39 lines
2989 bytes
2989 bytes
Hi Michael,
> Well, that is exactly what is mentioned in the documentation. Nothing to
> complain, though. I was only wondering why? Today, ISPs tend to encrypt
> such sensible data like FQDN and IP of injecting clients.
>
> That can be easily achieved within Injection-Info: header as in X-Trace,
> but: may one insert an encrypted FQDN:IP into the path header as well? I
> doubt, but I do have to admit that I don't know.
posting-host="U2FsdGVkX18n6s0P6ImmT+si83q928+X+EFKxrF+0jo=";
According to RFC 5536, "posting-host" allows that (alpha+digit+some characters).
But *not* the Path: header, where "+" and "=" are for instance forbidden:
path-identity = ( 1*( label "." ) toplabel ) / path-nodot
path-nodot = 1*( alphanum / "-" / "_" ) ; legacy names
label = alphanum [ *( alphanum / "-" ) alphanum ]
toplabel = ( [ label *( "-" ) ] ALPHA *( "-" ) label ) /
( label *( "-" ) ALPHA [ *( "-" ) label ] ) /
( label 1*( "-" ) label )
alphanum = ALPHA / DIGIT ; compare [RFC3696]
An encrypted FQDN:IP should be different. Maybe with a base64 transformation
after the encryption.
Yet, as long as it is in the Injection-Info: header, I believe "!.POSTED"
could be used without any information after.
--
Julien ÉLIE
« Le sel de l'existence est essentiellement dans le poivre
qu'on y met. » (Alphonse Allais)
Re: Injection-Info header
Author: Michael Grimm
Date: Sat, 31 Jul 2010 20:05
Date: Sat, 31 Jul 2010 20:05
27 lines
2322 bytes
2322 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> may one insert an encrypted FQDN:IP into the path header as well? I >> doubt, but I do have to admit that I don't know. > > posting-host="U2FsdGVkX18n6s0P6ImmT+si83q928+X+EFKxrF+0jo="; > > According to RFC 5536, "posting-host" allows that (alpha+digit+some > characters). But *not* the Path: header, where "+" and "=" are for > instance forbidden: [...] > An encrypted FQDN:IP should be different. Maybe with a base64 > transformation after the encryption. I did use base64 in the past, but that tends to bloat the encrypted string significantly. Therefore I discarded that, and, ... > Yet, as long as it is in the Injection-Info: header, I believe > "!.POSTED" could be used without any information after. ... I do prefer this solution. A Path: header with an encrypted tailing injection host looks "ugly" from my point of view ;-) Regards, Michael -- to let
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