🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86482

Re: INN2, need configuration help, access control

#86482
From: Robert Senger
Date: Tue, 31 Mar 2015 12:37
142 lines
4863 bytes
Okay, removed the "default:" line, and it works as expected:


altair:~$ telnet localhost 119
Trying ::1...
Connected to localhost.
Escape character is '^]'.
200 mynntpsite.de InterNetNews NNRP server INN 2.5.3 ready (no posting)
POST
480 Authentication required for command
GROUP local.general
480 Authentication required for command


Closed.




Am Dienstag, den 31.03.2015, 12:25 +0200 schrieb Robert Senger:
> Hi,
> 
> I am setting up a small NNTP server for a local site, serving only local
> newsgroups (no peering). 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. 
> 
> Testing this configuration with various NNTP clients is difficult, since
> most client's error messages are, to be honest, inexpressively.
> 
> So I ran tests with telnet on a remote machine running a local stunnel4
> client to allow SSL connections to the server, and I got this:
> 
> altair:~$ telnet localhost 119
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> 200 mynntpsite.de InterNetNews NNRP server INN 2.5.3 ready (posting ok)
> GROUP local.general
> 480 Read access denied
> LIST NEWSGROUPS
> 215 Newsgroup descriptions in form "group description"
> .
> ARTICLE 5
> 412 Not in a newsgroup
> QUIT
> 205 Bye!
> Connection closed by foreign host.
> 
> 
> Okay, that's fine, READ access denied without login. But...
> 
> 
> altair:~$ telnet localhost 119
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> 200 mynntpsite.de InterNetNews NNRP server INN 2.5.3 ready (posting ok)
> POST
> 340 Ok, recommended message-ID <mfdrla$ib2$1@prokyon.mynntpsite.de>
> From: robert.senger@microscopium.de
> Newsgroups: local.general
> Message-ID: <mfdrla$ib2$1@prokyon.mynntpsite.de>
> Subject: Test
> 
> Test
> .
> 240 Article received <mfdrla$ib2$1@prokyon.mynntpsite.de>
> 
> 
> WTF, POST access allowed without login?!
> 
> 
> More...
> 
> 
> altair:~$ telnet localhost 119
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> 200 mynntpsite.de InterNetNews NNRP server INN 2.5.3 ready (posting ok)
> AUTHINFO USER abcdefg
> 381 Enter password
> AUTHINFO PASS 1234567
> 281 Authentication succeeded
> GROUP local.general
> 211 8 1 11 local.general
> article 11
> 220 11 <mfdrla$ib2$1@prokyon.mynntpsite.de> article
> Path: mynntpsite.de!.POSTED!not-for-mail
> From: robert.senger@microscopium.de
> Newsgroups: local.general
> Subject: Test
> Date: Tue, 31 Mar 2015 10:08:25 +0000 (UTC)
> Organization: Private
> Lines: 1
> Message-ID: <mfdrla$ib2$1@prokyon.mynntpsite.de>
> NNTP-Posting-Host: familie-senger.net
> X-Trace: prokyon.mynntpsite.de 1427796505 18786 2001:0000:0000:976::1
> (31 Mar 2015 10:08:25 GMT)
> X-Complaints-To: usenet@prokyon.mynntpsite.de
> NNTP-Posting-Date: Tue, 31 Mar 2015 10:08:25 +0000 (UTC)
> Xref: mynntpsite.de local.general:11
> 
> Test
> .
> QUIT
> 205 Bye!
> Connection closed by foreign host.
> 
> 
> This is the article the was posted above.
> 
> 
> This is the content of the readers.conf file:
> 
> 
> 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?
> 
> Thanks for help,
> 
> Robert
> 
> 

Technical Details
Message-ID: <1427805457.29014.2.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!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <1427797554.29014.0.camel@altair>

Show Full Headers
Complete Article Headers
Message-ID: <1427805457.29014.2.camel@altair>
Subject: Re: INN2, need configuration help, access control
Date: Tue, 31 Mar 2015 14:37:37 +0200
From: Robert Senger <rs-news@microscopium.de>
References: <1427797554.29014.0.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!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 142
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: individual.net Xs9lUUjMa4pM5I20m/MAogzZoWoOWp5sbEoBGwJR2/MyR7ZLfo
Cancel-Lock: sha1:Mev26fCZ3fOnQ5LuhN2MCJUD96U=
In-Reply-To: <1427797554.29014.0.camel@altair>
X-Mailer: Evolution 3.8.5-2+b1