Thread View: news.software.nntp
9 messages
9 total messages
Started by D. Stussy
Tue, 14 Apr 2009 23:30
Suggestion for SSL with nnrpd.
Author: D. Stussy
Date: Tue, 14 Apr 2009 23:30
Date: Tue, 14 Apr 2009 23:30
16 lines
1983 bytes
1983 bytes
It appears that the SSL configuration is in inn.conf. However, it also
appears that nnrpd cannot override the choices made there. It would be
nice if there were permitted an SSL configuration in readers.conf so that
multiple nnrpds could be run, each using a separate address, and therefore
have certificates that match the hostname assigned to each separate IP
address (i.e. virtual hosting). Only tlskeyfile and tlscertfile need have
overrides; perhaps tlscafile too. I don't see any merit to overriding
tlscapath. That way, different nnrpd programs could be run with different
certificates (matching the IP address' hostname bound to via the -b option)
and no errors would be generated by a client. These difference instances
would have separate "readers.conf" files ("-c" parameter).
Shouldn't the PID file also use the -I (instance) parameter to generate its
filename, as port alone might not be unique in such situations?
Re: Suggestion for SSL with nnrpd.
Author: Alexander Bartolich
Date: Wed, 15 Apr 2009 06:08
Date: Wed, 15 Apr 2009 06:08
34 lines
2627 bytes
2627 bytes
D. Stussy wrote: > It appears that the SSL configuration is in inn.conf. With my INN 2.4.3 the certificate is configured in sasl.conf. What rationale was there to pull that file into inn.conf? > However, it also appears that nnrpd cannot override the choices made > there. Yes, there is currently no way to have separate certificates. > It would be nice if there were permitted an SSL configuration in > readers.conf so that multiple nnrpds could be run, each using a > separate address, This can be configured through inetd (or xinetd). And readers.conf is IMHO already too complicated. > and therefore have certificates that match the hostname assigned > to each separate IP address (i.e. virtual hosting). With web servers like Apache the term "virtual hosting" usually means that one listening address is used for multiple web sites. With HTTPS this is currently not possible, i.e. Apache needs a separate address (or port) for each virtual host running on SSL. Anyway, the motivation for virtual hosts is not to have a possibility to spend more money on certificates but to have one server provide multiple services. In the case of a web server that means different web pages. But what should a news server do? Deliver different articles when used on a different addresses? -- seq 100 | sed 's/.*/Romani Ite Domum./'
Re: Suggestion for SSL with nnrpd.
Author: Julien ĂLIE
Date: Wed, 15 Apr 2009 06:25
Date: Wed, 15 Apr 2009 06:25
44 lines
3315 bytes
3315 bytes
Hi D. Stussy, > It appears that the SSL configuration is in inn.conf. However, it also > appears that nnrpd cannot override the choices made there. It would be > nice if there were permitted an SSL configuration in readers.conf so that > multiple nnrpds could be run, each using a separate address, and therefore > have certificates that match the hostname assigned to each separate IP > address (i.e. virtual hosting). That's an useful request. However, I do not think readers.conf is an appropriate place for TLS configuration, at least the way it is used now (auth and access blocks only). As you see for instance, the require_ssl: parameter is in an auth block; this auth group is used if the connection is encrypted using TLS so it is already to late. readers.conf is read for authentication needs, in order to find out the rights an user has and subsequent possible modifications of nnrpd's behaviour (a few overrides). So maybe nnrpd's code should be reorganized to better use readers.conf if this parameter should really be in this file. And use of global options at top-level of readers.conf? Or, another possible thing, like the "-S" flag to nnrpd for initial TLS connections, would be to override these four parameters with options passed to nnrpd. Which approach seems to be the right one to take? > Shouldn't the PID file also use the -I (instance) parameter to generate its > filename, as port alone might not be unique in such situations? Not only in these situations anyway. The same port with different binding addresses would also not work. The problem with -I is that it will also change message-IDs so another option should perhaps be used. (?) -- Julien ĂLIE « Il faut que j'en parle Ă notre chef ; ce n'est pas normal que des Romains bravent les dangers de la forĂȘt, surtout quand les dangers, c'est nous ! » (AstĂ©rix)
Re: Suggestion for SSL with nnrpd.
Author: Jeffrey M. Vinocur
Date: Wed, 15 Apr 2009 09:00
Date: Wed, 15 Apr 2009 09:00
22 lines
1759 bytes
1759 bytes
In article <gs3uns$jm5$1@news.trigofacile.com>, Julien ĂLIE <iulius@nom-de-mon-site.com.invalid> wrote: > >However, I do not think readers.conf is an appropriate place for TLS >configuration, No, not particularly. I suppose we could give nnrpd another flag (like -c) that would specify which inn.conf to use; it would require extra effort from the admin to keep multiple inn.conf files if the only thing to be different is tls, but it would provide lots of flexibility for the rare case when it is needed, without being too hard to code. On the other hand, inn.conf path is baked into other programs (e.g. authenticators) so this might turn out harder to code than it first seems. -- Jeffrey M. Vinocur jeff@litech.org
Re: Suggestion for SSL with nnrpd.
Author: Julien ĂLIE
Date: Wed, 15 Apr 2009 18:22
Date: Wed, 15 Apr 2009 18:22
49 lines
3068 bytes
3068 bytes
Hi Jeffrey,
>>However, I do not think readers.conf is an appropriate place for TLS
>>configuration,
>
> I suppose we could give nnrpd another flag (like -c) that would
> specify which inn.conf to use
Maybe we should not make TLS configuration an inn.conf setting.
The "sasl.conf" file would have been fine for that :->
nnrpd -c readers.conf -S -s tls.conf
would work fine!
tls.conf would contain the four needed parameters.
> it would require extra effort from
> the admin to keep multiple inn.conf files if the only thing to be
> different is tls, but it would provide lots of flexibility for
> the rare case when it is needed, without being too hard to code.
It would have been easier with inclusions but I see that the inn.conf
parser knows to do that only with groups:
Finally, the body of a group may be defined in a separate file.
To do this, rather than writing the body of the group enclosed in {},
instead give the file name in <>:
group tag <filename>
So we cannot use inclusions to maintain different inn.conf with only TLS
configuration changing.
> On the other hand, inn.conf path is baked into other programs
> (e.g. authenticators) so this might turn out harder to code than
> it first seems.
And also INN::Config with Perl hooks like nnrpd_auth.pl...
--
Julien ĂLIE
« Cette apostrophe me déconcerte et me réduit au silence,
parce que l'homme sensible comme moi, tout entier Ă ce qu'on lui objecte,
perd la tĂȘte, et ne se retrouve qu'au bas de l'escalier. » (Denis Diderot)
Re: Suggestion for SSL with nnrpd.
Author: Julien ĂLIE
Date: Wed, 15 Apr 2009 20:56
Date: Wed, 15 Apr 2009 20:56
38 lines
2413 bytes
2413 bytes
Hi D. Stussy, > Shouldn't the PID file also use the -I (instance) parameter to generate its > filename, as port alone might not be unique in such situations? As we recently spoke about message-IDs for IHAVE/TAKETHIS, nnrpd does not currently check values given to -I: % nnrpd -I "a b c" 200 test InterNetNews NNRP server INN 2.5.0 (20090412 prerelease) ready (posting ok) post 340 Ok, recommended message-ID <gs5gqo$h9b$1a b c@test> Eeek! And if I put an article without any message-ID, nnrpd puts its suggestion and it ends up with: 441 435 Bad Message-ID IHAVE obviously rejects it: 200 news.trigofacile.com InterNetNews server INN 2.5.0 (20090412 prerelease) ready IHAVE <gs5gqo$h9b$1a b c@test> 435 Bad Message-ID And unfortunately, I also see that innfeed will block if it receives 501 in response to IHAVE. It will try to send again and again the same article. I believe the same goes to other servers, like we saw on streaming commands. -- Julien ĂLIE « Pour aller plus vite, j'additionne toujours de bas en haut : je fais du mĂȘme coup l'addition et la preuve. » (AurĂ©lien Scholl)
Re: Suggestion for SSL with nnrpd.
Author: Jeffrey M. Vinocur
Date: Thu, 16 Apr 2009 01:36
Date: Thu, 16 Apr 2009 01:36
19 lines
1573 bytes
1573 bytes
In article <gs5hqp$icm$1@news.trigofacile.com>, Julien ĂLIE <iulius@nom-de-mon-site.com.invalid> wrote: > >As we recently spoke about message-IDs for IHAVE/TAKETHIS, nnrpd does >not currently check values given to -I: This doesn't seem so awful (considering how many ways a foolish admin can mess with INN), honestly. >441 435 Bad Message-ID But how did this end up with two response codes. That's got to be a bug (but not one I have time to track down right now). -- Jeffrey M. Vinocur jeff@litech.org
Re: Suggestion for SSL with nnrpd.
Author: Russ Allbery
Date: Thu, 16 Apr 2009 04:22
Date: Thu, 16 Apr 2009 04:22
17 lines
1842 bytes
1842 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:
> Julien ĂLIE <iulius@nom-de-mon-site.com.invalid> wrote:
>> 441 435 Bad Message-ID
> But how did this end up with two response codes. That's got to
> be a bug (but not one I have time to track down right now).
nnrpd has always done that when innd rejects an article after POST. It
returns a 441 response followed by the response from innd, which includes
in turn innd's response code to the IHAVE.
--
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: Suggestion for SSL with nnrpd.
Author: Julien ĂLIE
Date: Sat, 18 Apr 2009 19:03
Date: Sat, 18 Apr 2009 19:03
31 lines
2366 bytes
2366 bytes
Hi D. Stussy,
> It appears that the SSL configuration is in inn.conf. However, it also
> appears that nnrpd cannot override the choices made there. It would be
> nice if there were permitted an SSL configuration in readers.conf so that
> multiple nnrpds could be run, each using a separate address, and therefore
> have certificates that match the hostname assigned to each separate IP
> address (i.e. virtual hosting).
Maybe there is no need to have different configurations.
I see that you can use what is called "Subject Alternative Names" in
TLS certificates:
http://www.digicert.com/subject-alternative-name.htm
and I also remember having opened that ticket in order to implement
server_name in nnrpd:
http://inn.eyrie.org/trac/ticket/92
Wouldn't one of these solutions enough to do what you want to achieve?
--
Julien ĂLIE
« -- Il est vraiment trĂšs frĂȘle cet esquif !
-- Il vaudrait mieux ne pas prendre de risques.
-- Des risques ? Une galĂšre fortement armĂ©e contre un frĂȘle esquif ?
-- Un frĂȘle esquif plein de Gaulois ! » (pirates)
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