Article View: news.software.nntp
Article #86480INN2, need configuration help, access control
From: Robert Senger
Date: Tue, 31 Mar 2015 10:25
Date: Tue, 31 Mar 2015 10:25
119 lines
3868 bytes
3868 bytes
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)
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:
<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!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin2!goblin1!goblin3!goblin.stu.neva.ru!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <1427797554.29014.0.camel@altair> Subject: INN2, need configuration help, access control Date: Tue, 31 Mar 2015 12:25:54 +0200 From: Robert Senger <rs-news@microscopium.de> 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!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin2!goblin1!goblin3!goblin.stu.neva.ru!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Lines: 120 Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: individual.net xZb3BHV8ZvJAp2SV3odL2QJPPIOW4dizw5fGrKlylG1DeFyWtu Cancel-Lock: sha1:0bHyPDQO4OPpG1LoMl4KcZnHikc= X-Mailer: Evolution 3.8.5-2+b1