Thread View: news.software.nntp
13 messages
13 total messages
Started by Dominik Klein
Tue, 19 Oct 2004 09:00
INN 2.4.1 and SSL
Author: Dominik Klein
Date: Tue, 19 Oct 2004 09:00
Date: Tue, 19 Oct 2004 09:00
24 lines
1928 bytes
1928 bytes
Hi, trying to get INN to listen on nntp port 119 and nnrpd in daemon mode on port 563 with SSL. Innd uses suid=root. So "news" can run it and bind to privileged port 119. In order to have nnrpd listen on 563, it would have to be started by root as well or it would have to have suid=root as well. Wondering if giving nnrpd the sticky bit is a good idea, because that is actually the program clients normally use to read (if I didn't get the whole thing wrong :) ) Not sure about security matters here. So is it "normal" to start "nnprd -D -S -p 563" as "root" or would you recommend setting it suid=root and then start it as "news"? Another question I would like to put is if there is any official INN LDAP Module so INN can authenticate against an LDAP Server. Any links welcome that give some idea about that. Regards, Dominik
Re: INN 2.4.1 and SSL
Author: Jeffrey M. Vinocur
Date: Tue, 19 Oct 2004 09:34
Date: Tue, 19 Oct 2004 09:34
34 lines
2438 bytes
2438 bytes
In article <cl2l3a$3ld$1@beech.fernuni-hagen.de>, Dominik Klein <Dominik.Klein@FernUni-Hagen.de> wrote: > >So is it "normal" to start "nnprd -D -S -p 563" as "root" or would you >recommend setting it suid=root and then start it as "news"? These two options have equivalent security risk. And you're right, nnrpd is a large chunk of code to be running as root. On the other hand, I can't recall the last time there was an exploitable problem with nnrpd. You have one other option, which -is- more secure. You can configure inetd/xinetd to listen on port 563 and spown an `nnrpd -S` for each incoming connection. This has somewhat more startup overhead for each connection, but if your system isn't overwhelmed with clients, give it a shot. >Another question I would like to put is if there is any official INN >LDAP Module so INN can authenticate against an LDAP Server. The `ckpasswd` utility in recent versions of INN can authenticate against PAM, and many operating systems these days have PAM support for authenticating against LDAP. We used to use this configuration, and it was very easy. If your system does not support PAM, probably the easiest option is to use the Perl authentication hooks, but this will require writing a small amount of code. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4.1 and SSL
Author: Dominik Klein
Date: Tue, 19 Oct 2004 09:53
Date: Tue, 19 Oct 2004 09:53
32 lines
2439 bytes
2439 bytes
> I can't recall the last time there was an > exploitable problem with nnrpd. Good point, but actually - you never know. So is SSL nnrpd common or is it not widely used? > You have one other option, which -is- more secure. You can > configure inetd/xinetd to listen on port 563 and spown an > `nnrpd -S` for each incoming connection. This has somewhat more > startup overhead for each connection, but if your system isn't > overwhelmed with clients, give it a shot. We have a lot of clients. And this would - correct me if I am wrong - go besides every access control I configured in INN. > The `ckpasswd` utility in recent versions of INN can authenticate > against PAM, and many operating systems these days have PAM > support for authenticating against LDAP. We used to use this > configuration, and it was very easy. Never dealt with PAM but what you said sounds good. Gonna have a look at it. > If your system does not support PAM, probably the easiest option > is to use the Perl authentication hooks, but this will require > writing a small amount of code. Going to check for PAM first. It's a Solaris 5.9 Thanks!
really equivalent risk?
Author: Dominik Klein
Date: Wed, 20 Oct 2004 08:36
Date: Wed, 20 Oct 2004 08:36
16 lines
1741 bytes
1741 bytes
>>So is it "normal" to start "nnprd -D -S -p 563" as "root" or would you >>recommend setting it suid=root and then start it as "news"? > These two options have equivalent security risk. Hm, been thinking about this. Starting nnrpd as root means all SSL clients use root-privilege nnrpd, all non-SSL clients will use news-privilege nnrpd (again: correct me if I'm wrong). If suid=root is set, both SSL and non-SSL clients use root-privilege nnrpd. So running it as root would be less problematic to me. Dominik
Re: INN 2.4.1 and SSL
Author: Jeffrey M. Vinocur
Date: Wed, 20 Oct 2004 10:15
Date: Wed, 20 Oct 2004 10:15
23 lines
1798 bytes
1798 bytes
In article <cl2o6o$7lj$1@beech.fernuni-hagen.de>, Dominik Klein <Dominik.Klein@FernUni-Hagen.de> wrote: > >So is SSL nnrpd common or is it not widely used? It's sometimes used, especially on small news servers, but by no means universal. >> You have one other option, which -is- more secure. You can >> configure inetd/xinetd to listen on port 563 and spown an >> `nnrpd -S` for each incoming connection. > >We have a lot of clients. >And this would - correct me if I am wrong - go besides every access >control I configured in INN. I don't understand what you say here. -- Jeffrey M. Vinocur jeff@litech.org
Re: really equivalent risk?
Author: Jeffrey M. Vinocur
Date: Wed, 20 Oct 2004 10:16
Date: Wed, 20 Oct 2004 10:16
23 lines
1982 bytes
1982 bytes
In article <cl582r$o3i$1@beech.fernuni-hagen.de>, Dominik Klein <Dominik.Klein@FernUni-Hagen.de> wrote: >>>So is it "normal" to start "nnprd -D -S -p 563" as "root" or would you >>>recommend setting it suid=root and then start it as "news"? > >> These two options have equivalent security risk. > >Hm, been thinking about this. > >Starting nnrpd as root means all SSL clients use root-privilege nnrpd, >all non-SSL clients will use news-privilege nnrpd (again: correct me if >I'm wrong). > >If suid=root is set, both SSL and non-SSL clients use root-privilege nnrpd. Yes, but unless you somehow are restrict access to port 563, any user that -wants- to attack your news server can decide to talk to the SSL/root nnrpd. So you haven't improved the security any. -- Jeffrey M. Vinocur jeff@litech.org
Re: really equivalent risk?
Author: Dominik Klein
Date: Wed, 20 Oct 2004 10:37
Date: Wed, 20 Oct 2004 10:37
5 lines
1490 bytes
1490 bytes
> Yes, but unless you somehow are restrict access to port 563, any > user that -wants- to attack your news server can decide to talk > to the SSL/root nnrpd. So you haven't improved the security any. okay good point
Re: INN 2.4.1 and SSL
Author: Dominik Klein
Date: Wed, 20 Oct 2004 10:38
Date: Wed, 20 Oct 2004 10:38
5 lines
1486 bytes
1486 bytes
> It's sometimes used, especially on small news servers, but by no > means universal. Okay, so we should either use another (non privileged) port (and tell our clients about it) or forget about SSL for news I think.
Re: INN 2.4.1 and SSL
Author: Jeffrey M. Vinocur
Date: Wed, 20 Oct 2004 23:48
Date: Wed, 20 Oct 2004 23:48
13 lines
1537 bytes
1537 bytes
In article <cl5f6o$33p$2@beech.fernuni-hagen.de>, Dominik Klein <Dominik.Klein@FernUni-Hagen.de> wrote: > >Okay, so we should either use another (non privileged) port (and tell >our clients about it) or forget about SSL for news I think. I'm not sure why you didn't like inetd/xinetd idea; it's a definite option if SSL is important to you. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4.1 and SSL
Author: Bill Davidsen
Date: Thu, 28 Oct 2004 15:46
Date: Thu, 28 Oct 2004 15:46
18 lines
2257 bytes
2257 bytes
Dominik Klein wrote: >> I can't recall the last time there was an >> exploitable problem with nnrpd. > > > Good point, but actually - you never know. > So is SSL nnrpd common or is it not widely used? Clearly it isn't used much or there would be a nice startup program just as there is for innd. If you were running on Linux I think I can tell you how to get around it, but since you're not maybe time to add code to drop privs and send that back to us ;-) -- bill davidsen (davidsen@darkstar.prodigy.com) SBC/Prodigy Yorktown Heights NY data center Project Leader, USENET news http://newsgroups.news.prodigy.com
Re: INN 2.4.1 and SSL
Author: Christian AgtMulda Luetzelberger
Date: Thu, 28 Oct 2004 16:04
Date: Thu, 28 Oct 2004 16:04
19 lines
1918 bytes
1918 bytes
Bill Davidsen <davidsen@deathstar.prodigy.com> hat folgendes getippert: > > Good point, but actually - you never know. > > So is SSL nnrpd common or is it not widely used? I have the same problem with inn. i just compile it from sources with ssl support and then just comment out the lines for the -S option of nnrpd so that ssl is started when nnrpd is started even without -S. it runs as news and without inetd. Its a bit quickndirty but for me it works fine. But this only works when you want to use _only_ nntp with ssl. AgtMulda -- BOFH excuse #410: Electrical conduits in machine room are melting.
Re: INN 2.4.1 and SSL
Author: Jeffrey M. Vinocur
Date: Fri, 29 Oct 2004 15:41
Date: Fri, 29 Oct 2004 15:41
20 lines
1946 bytes
1946 bytes
In article <4v8gd.19024$0T2.16196@newssvr31.news.prodigy.com>, Bill Davidsen <davidsen@deathstar.prodigy.com> wrote: >Dominik Klein wrote: > >> Good point, but actually - you never know. >> So is SSL nnrpd common or is it not widely used? > >Clearly it isn't used much or there would be a nice startup program just >as there is for innd. Actually, I think the underlying issue here is that nnrpd -D is not that widely used; some people have success with it, but some don't. Regardless, given the ease of setting up inetd/xinetd to handle listening on a separate port and spawning nnrpd -S, I believe that is the more common usage. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4.1 and SSL
Author: Bill Davidsen
Date: Fri, 19 Nov 2004 18:27
Date: Fri, 19 Nov 2004 18:27
35 lines
2996 bytes
2996 bytes
Jeffrey M. Vinocur wrote: > In article <4v8gd.19024$0T2.16196@newssvr31.news.prodigy.com>, > Bill Davidsen <davidsen@deathstar.prodigy.com> wrote: > >>Dominik Klein wrote: >> >> >>>Good point, but actually - you never know. >>>So is SSL nnrpd common or is it not widely used? >> >>Clearly it isn't used much or there would be a nice startup program just >>as there is for innd. > > > Actually, I think the underlying issue here is that nnrpd -D is > not that widely used; some people have success with it, but some > don't. Regardless, given the ease of setting up inetd/xinetd to > handle listening on a separate port and spawning nnrpd -S, I > believe that is the more common usage. It would be nice to be able to run nnrpd from innd, but innd doesn't have the code to listen on one port for client connects and another for peers. The solution is to have nnrpd run as daemon. On Linux that seems to have a small performance gain, although not any huge thing such as you gain on AIX. It seems to me that at one point someone was looking at running with threads instead of forks for nnrpd in daemon mode, but I don't remember the details. -- bill davidsen (davidsen@darkstar.prodigy.com) SBC/Prodigy Yorktown Heights NY data center Project Leader, USENET news http://newsgroups.news.prodigy.com
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