🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15809

Re: How to prevent INN from allowing connections from disallowed hosts ?

#15809
From: Cracker Buster
Date: Wed, 12 Mar 1997 00:00
37 lines
2311 bytes
On Wed, 12 Mar 1997, Dean Carpenter wrote:

> dcarpenter@kraft.com says...
> --> I need a way to prevent INN from even acknowledging its' presence
> --> unless the client host is in an "allowed" file.
> --> 
> --> I know about nnrp.access, but that still allows the host to connect
> --> and even get a list of newsgroups.  It just prevents them from actually
> --> getting headers or reading articles.  I want a "Connection refused" msg
> 
> Hmmm.  Looks like this isn't going to be possible.  What about 
> disallowing *any* commands unless the host is listed in the nnrp.access
> or hosts.nntp files ?

    Hang on a sec.  Now you mention hosts.nntp, and it would match the
behavior you describe (host is able to connect and LIST, but can't do any
reading) if your host in question is listed in hosts.nntp (meaning the
peer has permission to send you news), *or* if you are running INN in
promiscuous mode with -a to allow anyone to connect.

    Is your host in question in hosts.nntp?  That could explain it.  Do
you have any wildcards in nnrp.access, and if so, what is the order of
entries in this file?  If you are connecting from the host which you want
to deny access, what happens when you give the command after connecting
and seeing the greeting (and by the way, what does the greeting look
like?), the command being MODE READER ?

    Anyway, in the absence of a wildcard entry in nnrp.access, an unwanted
peer will be told to 502 Buzz off mate.  So you've got something that's
defeating this.


BArry Bouwsma, Radio Praha BNAFH


Technical Details
Message-ID: <Pine.LNX.3.93.970312195334.120X-100000@radostne-vanoce.radio.cz>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <MPG.d8f476d5680deb9989682@news.kraft.com> <MPG.d908941614a0d8c989684@news.kraft.com>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.93.970312195334.120X-100000@radostne-vanoce.radio.cz>
Subject: Re: How to prevent INN from allowing connections from disallowed hosts ?
Date: Wed, 12 Mar 1997 00:00:00 +0000
From: Cracker Buster <luser@Radio.CZ>
References: <MPG.d8f476d5680deb9989682@news.kraft.com> <MPG.d908941614a0d8c989684@news.kraft.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.mbox.zip!not-for-mail
X-Deja-AN: 224980782
Organization: Radio Praha -- Cesky Rozhlas 7
Reply-To: ag786@yfn.ysu.edu
Newsgroups: news.software.nntp
NNTP-Posting-User: luser