🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Ken Murchison Fri, 14 Mar 2003 16:12
MODE READER (revisited)
#64380
Author: Ken Murchison
Date: Fri, 14 Mar 2003 16:12
30 lines
2111 bytes
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?

The text says that readers SHOULD use this command, but server SHOULDN'T
require it.  So, should a server make the determination based on the
commands used, out-of-band authentication, in-band authentication, or
some combination?

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)
}

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
Re: MODE READER (revisited)
#64382
Author: 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.
ietf-nntp Re: MODE READER (revisited)
#64384
Author: Ken Murchison
Date: Fri, 14 Mar 2003 18:23
40 lines
2452 bytes

Russ Allbery wrote:
> 
> 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.

Unfortunately, this doesn't appear to be common practice (yet), so
getting an ISP to do this might be difficult.


> Finally, you don't have to do what INN does and separate the
> implementations; you can implement the entire protocol in a single daemon

Which is what I have done.


> and then just either accept or not accept the peer and the reader commands
> based on whatever authentication mechanism that you're using.

Hence the question :)   Thanks for the input.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
_______________________________________________
ietf-nntp mailing list
ietf-nntp@academ.com
https://www.academ.com/mailman/listinfo/ietf-nntp

Re: ietf-nntp Re: MODE READER (revisited)
#64385
Author: Russ Allbery
Date: Fri, 14 Mar 2003 18:27
16 lines
1772 bytes
Ken Murchison <ken@oceana.com> writes:
> Russ Allbery wrote:

>> and then just either accept or not accept the peer and the reader
>> commands based on whatever authentication mechanism that you're using.

> Hence the question :)   Thanks for the input.

Well, one thing that you could do is for connections from peers, just
grant them the transit commands and also the same privileges as any
anonymous reader.  Then, if they actually want to read more, they can
authenticate, and no MODE READER command is ever needed.

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