Thread View: news.software.nntp
6 messages
6 total messages
Started by Robert Senger
Tue, 31 Mar 2015 10:25
INN2, need configuration help, access control
Author: 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
Re: INN2, need configuration help, access control
Author: Robert Senger
Date: Tue, 31 Mar 2015 12:37
Date: Tue, 31 Mar 2015 12:37
142 lines
4863 bytes
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
>
>
Re: INN2, need configuration help, access control
Author: Julien ÉLIE
Date: Wed, 01 Apr 2015 19:40
Date: Wed, 01 Apr 2015 19:40
57 lines
2810 bytes
2810 bytes
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.
> 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: !*
}
--
Julien ÉLIE
« O fortunatos nimium, sua si bona norint, agricolas. » (Virgile)
Re: INN2, need configuration help, access control
Author: Robert Senger
Date: Sat, 04 Apr 2015 09:43
Date: Sat, 04 Apr 2015 09:43
60 lines
2927 bytes
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: !*
> }
>
Re: INN2, need configuration help, access control
Author: Julien ÉLIE
Date: Sat, 04 Apr 2015 13:01
Date: Sat, 04 Apr 2015 13:01
20 lines
2179 bytes
2179 bytes
Hi Robert, >> 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. Ah, OK, I understand. Then you will probably be happy to hear that forthcoming INN 2.5.5 has new inn.conf parameters to fine-tune the SSL/TLS configuration: tlsciphers, tlscompression, tlseccurve, tlspreferserverciphers, and tlsprotocols. You will be able to activate only TLSv1.x protocols and the cipher suites you wish to use. -- Julien ÉLIE « Rien ne serpe de courir ! » (Druides gaulois)
Re: INN2, need configuration help, access control
Author: Robert Senger
Date: Sun, 05 Apr 2015 19:48
Date: Sun, 05 Apr 2015 19:48
18 lines
1834 bytes
1834 bytes
Am Samstag, den 04.04.2015, 15:01 +0200 schrieb Julien ÉLIE: > Then you will probably be happy to hear that forthcoming INN 2.5.5 has > new inn.conf parameters to fine-tune the SSL/TLS configuration: > tlsciphers, tlscompression, tlseccurve, tlspreferserverciphers, and > tlsprotocols. You will be able to activate only TLSv1.x protocols and > the cipher suites you wish to use. > Yes, I found a discussion about that. Good to see there's active development! For the moment, I am happy with stunnel. -- Robert Senger <robert.senger@microscopium.de> PGP/GPG Public Key ID: 24E78B5E
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads