🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64382

Re: MODE READER (revisited)

#64382
From: Russ Allbery
Date: Fri, 14 Mar 2003 17:26
45 lines
2835 bytes
Ken Murchison <ken@oceana.com> writes:

> Having reread 5.2.2 of base-17 and read the previous MODE READER
> threads, how is a single process which can do both peer-to-peer and
> reader connections, supposed to determine which is which?

Probably the best way is to use port 433 for transit connections and 119
for reader connections.  That's what I do, and that makes everything very
straightforward.

Alternately, you can often distinguish pretty easily by the IP address of
the connection; usually one's peers and one's readers form a disjoint set.

Finally, you don't have to do what INN does and separate the
implementations; you can implement the entire protocol in a single daemon
and then just either accept or not accept the peer and the reader commands
based on whatever authentication mechanism that you're using.

MODE READER is discouraged because it's a wart that adds an unnecessary
round trip to every connection and is normally avoidable using some other
technique.

> Would this scenario be in the spirit of the current draft:

> if the IP address of the client matches a known feeder, then allow
> feeder commands only {
>     if the known feeder wishes to become a reader, then it can use MODE
> READER
> }
> else if the client has an unknown IP address, then it becomes an
> anonymous reader (possibly limited/no reader commands based on site
> policy) {
>     if the client uses in-band authentication, then it becomes an
> authenticated reader (access to more/all reader         commands based
> on site policy)
> }

Yes.  That's exactly how INN works.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <ylsmtp2724.fsf@windlord.stanford.edu>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <3E71FF5C.2573C82A@oceana.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylsmtp2724.fsf@windlord.stanford.edu>
Subject: Re: MODE READER (revisited)
Date: Fri, 14 Mar 2003 09:26:27 -0800
From: Russ Allbery <rra@stanford.edu>
References: <3E71FF5C.2573C82A@oceana.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 44
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1047662787 20313 171.64.13.23 (14 Mar 2003 17:26:27 GMT)
X-Complaints-To: news@news.stanford.edu
To: ietf-nntp@academ.com
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:r8Z1FqPs39H2W614l4pZGSGeP5A=