πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86492

Re: INN2, need configuration help, access control

#86492
From: Robert Senger
Date: Sat, 04 Apr 2015 09:43
60 lines
2927 bytes
Am Mittwoch, den 01.04.2015, 21:40 +0200 schrieb Julien Γ‰LIE:
> Hi Robert,
> 
> > The server must be accessible from the local
> > LAN/WLAN clients as well as from clients outside. I've already set up a
> > stunnel4 server to allow SSL/TLS connections via port 563. Port 119 is
> > filtered, and not needed. The server must require login/password
> > authentication.
> 
> Just out of curiosity:  why don't you just use native TLS support in nnrpd?
> Then you wouldn't need stunnel.

Because with stunnel, I have full control over protocols and cipher
suites (e.g. no SSLv3, mandatory DH key exchange). INN 2.5.3 lacks these
options, so stunnel is the method of choice for now.

> > auth "external" {
> >      hosts: "*"
> >      auth: "ckpasswd -f /etc/news/newsusers"
> >      default: "<fail>"
> > }
> >
> > access "external" {
> >      users: "*, !<fail>"
> >      newsgroups: "*"
> >      access: RPA
> > }
> >
> >
> > Question, how can I deny all access to unauthenticated users, including
> > POST access?
> 
> I see in your response that you fixed that by removing the default: line.
> I just want to point out that in fact, the problem comes from the users: 
> line that excludes "!<fail>" instead of "!<fail>@*".  The username 
> contains a domain.
> 
> You can see interesting examples in the documentation:
>      http://www.eyrie.org/~eagle/software/inn/docs/readers.conf.html
> 
>      access dialup {
>          users: *@dialup.example.com
>          newsgroups: *,!example.*
>          nnrpdauthsender: true
>      }
> 
>      access other {
>          users: "*@example.com, !<FAIL>@example.com"
>          newsgroups: *,!example.*
>      }
> 
>      access fail {
>          users: "<FAIL>@*"
>          newsgroups: !*
>      }
> 

Technical Details
Message-ID: <1428140601.25284.3.camel@altair>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20150601.mbox.gz!buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <1427797554.29014.0.camel@altair> <mfhhk8$uav$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <1428140601.25284.3.camel@altair>
Subject: Re: INN2, need configuration help, access control
Date: Sat, 04 Apr 2015 11:43:21 +0200
From: Robert Senger <rs-news@microscopium.de>
References: <1427797554.29014.0.camel@altair> <mfhhk8$uav$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.20150601.mbox.gz!buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 60
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: individual.net eW3sIo+Qkf+RCRRIow10zgWTdk3fhq6yDZ0h3W95wGZqpTmXZL
Cancel-Lock: sha1:hLEHozeR//6fQN4Z6sXQRGq1Q68=
In-Reply-To: <mfhhk8$uav$1@news.trigofacile.com>
X-Mailer: Evolution 3.8.5-2+b1