🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86490

Re: INN2, need configuration help, access control

#86490
From: Julien ÉLIE
Date: Wed, 01 Apr 2015 19:40
57 lines
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)
Technical Details
Message-ID: <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!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-651-1-141-165.w83-199.abo.wanadoo.fr!not-for-mail
References: <1427797554.29014.0.camel@altair>

Show Full Headers
Complete Article Headers
Message-ID: <mfhhk8$uav$1@news.trigofacile.com>
Subject: Re: INN2, need configuration help, access control
Date: Wed, 01 Apr 2015 21:40:56 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-651-1-141-165.w83-199.abo.wanadoo.fr!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: Wed, 1 Apr 2015 19:40:56 +0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien";
 posting-host="aaubervilliers-651-1-141-165.w83-199.abo.wanadoo.fr:83.199.236.165";
 logging-data="31071"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10;
In-Reply-To: <1427797554.29014.0.camel@altair>
Lines: 56