Thread View: news.software.nntp
11 messages
11 total messages
Started by uhlar
Tue, 04 Dec 2001 16:52
SSL in inn-2.3.2
Author: uhlar
Date: Tue, 04 Dec 2001 16:52
Date: Tue, 04 Dec 2001 16:52
11 lines
1400 bytes
1400 bytes
Hello, I set up inn-2.3.2 to use with ssl. Anyway, the docs are very poor here. How can I define who may use ssl and who not? -- Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I don't wish to receive spam to this address. Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu. 2B|!2B, that's a question!
Re: SSL in inn-2.3.2
Author: Jeffrey M. Vinocur
Date: Tue, 04 Dec 2001 22:01
Date: Tue, 04 Dec 2001 22:01
36 lines
2322 bytes
2322 bytes
In article <1007484766.857038@virtual.nextra.sk>, <uhlar@fantomas.sk> wrote: > >I set up inn-2.3.2 to use with ssl. Anyway, the docs are very poor here. >How can I define who may use ssl and who not? In straight 2.3.2, you have only the following options: - Run nnrpd only with SSL - Run nnrpd with regular and SSL, with the same configuration file - Run two copies of nnrpd with different configuration files on different ports (563 is common for NNTP-over-SSL) The last option may be enough for what you want, but it's difficult to do in 2.3.2 (because nnrpd looks only for a file called "readers.conf" in the pathetc directory specified in inn.conf). I have a patch which allows you to start nnrpd with the "-c filename" flag to specify an alternative config file. (This functionality got added in the 2.4 tree.) Thus you can have your regular config file be the plaintext one on port 119, and have inetd spawn "nnrpd -c filename" to handle SSL connections on port 563. However, I have another patch which you may find useful. It adds an "ssl_required:" boolean to auth blocks in readers.conf, which allows you to do more complex configurations (for example, only allowing people with encryption to use system passwords). See the patches "nnrpd-readers" and "nnrpd-ssl" at http://www.litech.org/~jeff/inn-diffs/ -- Jeffrey M. Vinocur jeff@litech.org
Re: SSL in inn-2.3.2
Author: uhlar
Date: Wed, 05 Dec 2001 12:23
Date: Wed, 05 Dec 2001 12:23
40 lines
2829 bytes
2829 bytes
->>I set up inn-2.3.2 to use with ssl. Anyway, the docs are very poor here. ->>How can I define who may use ssl and who not? [deleted] -> - Run two copies of nnrpd with different configuration files on -> different ports (563 is common for NNTP-over-SSL) That's good idea. I will probably use this one; -> I have a patch which allows you to start nnrpd with the "-c -> filename" flag to specify an alternative config file. (This -> functionality got added in the 2.4 tree.) Thus you can have your -> regular config file be the plaintext one on port 119, and have -> inetd spawn "nnrpd -c filename" to handle SSL connections on port -> 563. Hmm, maybe running two nnrpd's nnrpd -D nnrpd -D -p 563 -S Should be enough. Anyway, i don't think innd should spawn nnrpd's anymore. it should only care about feeds. nnrpd should be imho standalone daemon, including flood-control functionality that's now only built into innd -> However, I have another patch which you may find useful. It adds -> an "ssl_required:" boolean to auth blocks in readers.conf, which -> allows you to do more complex configurations (for example, only -> allowing people with encryption to use system passwords). That's good idea. Anyway, is it possible to listen on one port with ssl, on one port without ssl? -- Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I don't wish to receive spam to this address. Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu. WinError #98652: Operation completed successfully.
Re: SSL in inn-2.3.2
Author: those who know me have no need o...
Date: Wed, 05 Dec 2001 13:40
Date: Wed, 05 Dec 2001 13:40
26 lines
2142 bytes
2142 bytes
<9ujh2s$q23$3@marduk.litech.org> divulged: >However, I have another patch which you may find useful. It adds >an "ssl_required:" boolean to auth blocks in readers.conf, which >allows you to do more complex configurations (for example, only >allowing people with encryption to use system passwords). the main problem with this type of solution is that the damage has already been done; the best you can hope for is that any sniffers will discard the captured password due to the failure message, but that is a slim hope. nnrpd doesn't check the authentication info until after `authinfo pass', at which time the password has been sent in the clear. if that were changed, so that some code (perhaps including perl and python hooks, though that changes their semantics so a different hook would have to be created) runs when `authinfo user' is provided, it can issue a permanent failure immediately if a prerequisite such as this is not met, which should, theoretically, cause the client to abort before sending the password. (the `simple' method is even `worse' in this regard in that the password is sent along with the name, preventing this kind of solution.) does your patch take care of this? -- okay, have a sig then
Re: SSL in inn-2.3.2
Author: Jeffrey M. Vinocur
Date: Thu, 06 Dec 2001 01:04
Date: Thu, 06 Dec 2001 01:04
35 lines
2224 bytes
2224 bytes
In article <1007554986.866428@virtual.nextra.sk>, <uhlar@fantomas.sk> wrote: > >nnrpd -D >nnrpd -D -p 563 -S Note that "we" don't trust daemon mode and prefer to have inetd/xinetd spawn nnrpd. >Anyway, i don't think innd should spawn nnrpd's anymore. it should only care >about feeds. nnrpd should be imho standalone daemon, including flood-control >functionality that's now only built into innd Well, many people run INN on a completely different port (433, usually), and then can have nnrpd alone on 119. But if you want to have INN on 119, then it has to be able to spawn nnrpd for reader connections. >-> However, I have another patch which you may find useful. It adds >-> an "ssl_required:" boolean to auth blocks in readers.conf, which >-> allows you to do more complex configurations (for example, only >-> allowing people with encryption to use system passwords). > >That's good idea. Anyway, is it possible to listen on one port with ssl, on >one port without ssl? Nope. It's feasible to add that, but I don't see a big advantage over two separate nnrpds as above. -- Jeffrey M. Vinocur jeff@litech.org
Re: SSL in inn-2.3.2
Author: Jeffrey M. Vinocur
Date: Thu, 06 Dec 2001 01:09
Date: Thu, 06 Dec 2001 01:09
48 lines
3083 bytes
3083 bytes
In article <9ul83o01psc@enews1.newsguy.com>, those who know me have no need of my name <not-a-real-address@usa.net> wrote: ><9ujh2s$q23$3@marduk.litech.org> divulged: > >>However, I have another patch which you may find useful. It adds >>an "ssl_required:" boolean to auth blocks in readers.conf, which >>allows you to do more complex configurations (for example, only >>allowing people with encryption to use system passwords). > >the main problem with this type of solution is that the damage has already >been done; the best you can hope for is that any sniffers will discard the >captured password due to the failure message, but that is a slim hope. Agreed. However, except for really dumb users (which certainly exist) this ought to be a one-time event, after which they switch their settings to SSL. So that ought to really drop the potential for sniffing. You're never going to be able to stop certain users from sending passwords in the clear occasionally -- people just type any password they know at any sort of prompt when they get stuck. >nnrpd doesn't check the authentication info until after `authinfo pass', at >which time the password has been sent in the clear. if that were changed, >so that some code (perhaps including perl and python hooks, though that >changes their semantics so a different hook would have to be created) runs >when `authinfo user' is provided, it can issue a permanent failure >immediately if a prerequisite such as this is not met, which should, >theoretically, cause the client to abort before sending the password. (the >`simple' method is even `worse' in this regard in that the password is sent >along with the name, preventing this kind of solution.) This comes up occasionally, but nobody seems to really care (and I'm not optimistic about clients dealing properly with such a transaction). >does your patch take care of this? Nope. You're welcome to submit one, though; I think we'd integrate it into CURRENT. -- Jeffrey M. Vinocur jeff@litech.org
Re: SSL in inn-2.3.2
Author: uhlar
Date: Thu, 06 Dec 2001 08:12
Date: Thu, 06 Dec 2001 08:12
40 lines
2893 bytes
2893 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote: -> In article <1007554986.866428@virtual.nextra.sk>, <uhlar@fantomas.sk> wrote: ->> ->>nnrpd -D ->>nnrpd -D -p 563 -S -> Note that "we" don't trust daemon mode and prefer to have -> inetd/xinetd spawn nnrpd. That explains much. But I don't know why not to trust daemon mode. The advantage above running from (x)inetd or innd is that nnrpd will need to mmap active, read config etc etc only once. this should spare come CPU cycles etc. ->>Anyway, i don't think innd should spawn nnrpd's anymore. it should only care ->>about feeds. nnrpd should be imho standalone daemon, including flood-control ->>functionality that's now only built into innd -> Well, many people run INN on a completely different port (433, usually), -> and then can have nnrpd alone on 119. But if you want to have INN on -> 119, then it has to be able to spawn nnrpd for reader connections. Of course. But i plan to run nnrpd just because of this. And, maybe because of ssl. And because of reason mentioned above. ->>That's good idea. Anyway, is it possible to listen on one port with ssl, on ->>one port without ssl? -> Nope. It's feasible to add that, but I don't see a big advantage -> over two separate nnrpds as above. You are right. The advantage would be if nnrpd would multiplex client connections and manage all clients, but that seems to be away in the future. -- Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I don't wish to receive spam to this address. Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu. I just got lost in thought. It was unfamiliar territory.
Re: SSL in inn-2.3.2
Author: Jeffrey M. Vinocur
Date: Thu, 06 Dec 2001 23:10
Date: Thu, 06 Dec 2001 23:10
24 lines
1769 bytes
1769 bytes
In article <1007626373.269482@virtual.nextra.sk>, <uhlar@fantomas.sk> wrote: > >That explains much. But I don't know why not to trust daemon mode. Because Russ doesn't. I forget precisely why, you could search groups.google.com for it. >The advantage above running from (x)inetd or innd is that nnrpd will need to >mmap active, read config etc etc only once. this should spare come CPU cycles I suppose either: - most of the load is feeds, not readers - if most of the load is readers, it's from high-bandwidth (binaries?) users, not the overhead of opening a new connection I have no evidence for any of this, but it makes sense :-) -- Jeffrey M. Vinocur jeff@litech.org
Re: SSL in inn-2.3.2
Author: Russ Allbery
Date: Fri, 07 Dec 2001 00:58
Date: Fri, 07 Dec 2001 00:58
23 lines
2082 bytes
2082 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> uhlar@fantomas.sk wrote:
>> That explains much. But I don't know why not to trust daemon mode.
> Because Russ doesn't. I forget precisely why, you could search
> groups.google.com for it.
I don't really have specific problems with it; I've just looked at the
code a bit too much. :) There are too many parts of INN like that.
(I have extensive modifications of the INN 2.4 test suite pending some
additional work to finish, including testing the error handling features
of the new parser, and then three or four more days of work should be
enough to get rid of the old inn.conf parser... now I just have to find
that time. Maybe over Christmas holidays....)
--
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: SSL in inn-2.3.2
Author: uhlar
Date: Fri, 07 Dec 2001 09:49
Date: Fri, 07 Dec 2001 09:49
27 lines
2638 bytes
2638 bytes
->>The advantage above running from (x)inetd or innd is that nnrpd will need to ->>mmap active, read config etc etc only once. this should spare come CPU cycles -> I suppose either: -> - most of the load is feeds, not readers -> - if most of the load is readers, it's from high-bandwidth -> (binaries?) users, not the overhead of opening a new connection Well, some news readers that use to open new connection in a short time, and drop old connections when they don't need it (very lame behaviour but there are such) could overload news server quite fast. Especially when you have many such readers. Also, fork() on linux (for example) is very "cheap" operation while 'exec' is not. That also makes sense. Last (but not least), I think sparing some CPU cycles etc may _always_ help. These are my reasons for running nnrpd as a daemon. It seems that nnrpd does not have connection control that is already built into innd. bad bad. I hope it will be integrated in some time. -- Matus "fantomas" Uhlar, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I don't wish to receive spam to this address. Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu. Quantum mechanics: The dreams stuff is made of.
Re: SSL in inn-2.3.2
Author: Jeffrey M. Vinocur
Date: Fri, 07 Dec 2001 20:01
Date: Fri, 07 Dec 2001 20:01
26 lines
1794 bytes
1794 bytes
In article <1007718575.751477@virtual.nextra.sk>, <uhlar@fantomas.sk> wrote: > >Well, some news readers that use to open new connection in a short time, and >drop old connections when they don't need it (very lame behaviour but there >are such) could overload news server quite fast. I would only be concerned about this if presented with actual evidence of it happening. >Also, fork() on linux (for example) is very "cheap" operation while 'exec' >is not. That also makes sense. True. >Last (but not least), I think sparing some CPU cycles etc may _always_ help. Oh of course. But given finite time...I'm not about to rewrite it in the immediate future. -- Jeffrey M. Vinocur jeff@litech.org
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