Article View: news.software.nntp
Article #86921Re: help please - readers.conf setup + authentication via port 563
From: Julien ÉLIE
Date: Sat, 29 Aug 2015 15:22
Date: Sat, 29 Aug 2015 15:22
118 lines
5328 bytes
5328 bytes
Hi Paul,
> 1) How to get a secure session via port 563 up and running?
>
> Aug 29 17:27:19 news nnrpd[19844]: starttls: TLSv1 with cipher DHE-RSA-
> AES256-SHA (256/256 bits) no authentication
> Aug 29 17:27:19 news nnrpd[19844]: avon.news.bbs.geek.nz (192.168.1.90)
> connect - port 119
>
> I can't seem to get a newsreader on my local network to connect to INN
> via port 563 in a secure fashion.
Is there a special reason for using port 563?
I mean: do you need a secure session (whatever the port) or do you need
a secure session via port 563 only?
According to the logs you provide, the connection via port 119 is
secured (a TLS session has been negotiated).
Note that it is the preferred way to do, per RFC 4642:
https://tools.ietf.org/html/rfc4642
In some existing implementations, TCP port 563 has been dedicated to
NNTP over TLS. These implementations begin the TLS negotiation
immediately upon connection and then continue with the initial steps
of an NNTP session. This use of TLS on a separate port is
discouraged for the reasons documented in Section 7 of "Using TLS
with IMAP, POP3 and ACAP" [TLS-IMAPPOP].
This specification formalizes the STARTTLS command already in
occasional use by the installed base. The STARTTLS command rectifies
a number of the problems with using a separate port for a "secure"
protocol variant; it is the preferred way of using TLS with NNTP.
> The copy of PAN I am using is pointing
> at the correct port on the server but not passing any user name /
> password info as I have nothing set up in INN as yet to handle this nor
> loaded into PAN. So what happens at the moment is can't get a session
> going on port 563 and it seems to default back to port 119
Well, PAN seems to behave pretty well (respectful of the standards)
according yo your logs.
> Then there's my readers.conf -I am wondering if it is the cause of the
> fallback to port 119?
Just a basic question to be sure: is nnrpd running as a daemon on port
563, and pointing to the right readers.conf file?
See the last section of CHECKLIST:
http://www.eyrie.org/~eagle/software/inn/docs/checklist.html
> auth "localsec" {
> key: "localtsl"
Your readers.conf file looks right to me.
Note a typo for "localtsl" (instead of "localtls") but it does not
matter as you spell it twice the same.
> Can someone kindly post some feedback or an example readers.conf I can
> use as the basis to get my port 563 connects working?
I personally use a readers-ssl.conf file dedicated to the nnrpd that
runs in daemon mode.
Mine is pretty straight-forward!
auth "users-ssl" {
hosts: "*"
auth: "ckpasswd -f /home/news/etc/users-ssl"
}
access "users-ssl" {
newsgroups: "*"
access: RPAN
}
> 2) What is the best option to use when trying to set up something for
> users authenticated name / password?
>
> I figured setting up port 563 was key as best practice would seem to
> suggest offering secure TSL connects for the transmission of name/pasword
A TLS connection is best practice (either via port 119 or 563).
Another possibility is to use SASL authentication with a mechanism that
negotiates a secure layer.
> There seem to be a number of options assisted with setting up ckpasswd to
> use user login/password info. What do you guys think is the best way
> forward? I am wondering about a file created by apache htpasswd as a
> starting point but really unsure etc..
It is what I use. Be sure that the file is not world-readable, but only
readable by your news user.
If you do not want to use ckpasswd, you can of course use other kinds of
authentication (via perl_auth or python_auth for instance). The
passwords will have to be somewhere anyway (file or database) unless you
wish to use SASL mechanisms like OPENID20 but I doubt all your users
will be able to easily authenticate against your news server!
--
Julien ÉLIE
« L'éternité, c'est long, surtout vers la fin. » (Woody Allen)
Technical Details
Message-ID:
<mrsin1$gmg$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<mrrhtp$ekm$3@news.bbs.geek.nz>Show Full Headers
Complete Article Headers
Message-ID: <mrsin1$gmg$1@news.trigofacile.com> Subject: Re: help please - readers.conf setup + authentication via port 563 Date: Sat, 29 Aug 2015 17:22:09 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <mrrhtp$ekm$3@news.bbs.geek.nz> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 29 Aug 2015 15:22:09 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="aaubervilliers-651-1-145-42.w86-212.abo.wanadoo.fr:86.212.128.42"; logging-data="17104"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <mrrhtp$ekm$3@news.bbs.geek.nz> X-Received-Body-CRC: 2166360975 X-Received-Bytes: 5323