🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51571

Re: SSL in inn-2.3.1

#51571
From: Jeffrey M. Vinocur
Date: Fri, 30 Mar 2001 05:02
41 lines
2508 bytes
In article <99uo52$ce0$1@simancas.uva.es>,
 <ladm_removethis@cascarela.tel.uva.es> wrote:
>
>I have read nnrpd man page and it says that running nnrpd with switch '-S'
>starts a negotiation for SSL session. So what I need is that when anybody
>from outside connects, innd must call 'nnrpd -S', and in any other case
>the usual nnrpd. Is this possible? Is there any other solution?

There are two solutions.  One is to use port 563 (instead of 119)
exclusively for SSL connections.  You modify your inetd to answer
connections on that port with `nnrpd -S`, and users connect to
that port for SSL.  The only trouble there is that you need to
use a different readers.conf file for that nnrpd, and there is no
such feature in 2.3.1.  It is not very difficult to add support
for `-c filename` to nnrpd (I have a patch that does it for
2.3.1 if you like).

The other thing (this can also be done in addition to the above)
is another patch for 2.3.1 which adds support for a readers.conf
parameter "ssl_required: true" to auth blocks.  For example, this
allows SSL connections to authenticate against our system
password database but unencrypted connections to only use special
news-only passwords.

auth "foreign-SSL" {
    hosts: *
    require_ssl: "true"
    auth: "ckpasswd -s"
    auth: "ckpasswd -f /usr/local/news/db/newsusers"
}

auth "foreign" {
    hosts: *
    auth: "ckpasswd -f /usr/local/news/db/cucsusers"
}


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <9a140n$cfu$2@marduk.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!206.252.192.28!news.stealth.net!newsstand.cit.cornell.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
References: <99uo52$ce0$1@simancas.uva.es>

Show Full Headers
Complete Article Headers
Message-ID: <9a140n$cfu$2@marduk.litech.org>
Subject: Re: SSL in inn-2.3.1
Date: Fri, 30 Mar 2001 05:02:15 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <99uo52$ce0$1@simancas.uva.es>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!206.252.192.28!news.stealth.net!newsstand.cit.cornell.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Lithium Technologies
Lines: 40
Sender: jeff@litech.org
NNTP-Posting-Host: marduk.litech.org
X-Trace: marduk.litech.org 985928535 12798 128.84.154.54 (30 Mar 2001 05:02:15 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Fri, 30 Mar 2001 05:02:15 +0000 (UTC)
X-Newsreader: trn 4.0-test75 (Feb 13, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)