🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #11413

Re: ATTN: John; NNTP Protocol discussion (was Re: Replace Google Groups with ?)

#11413
From: John F. Morse
Date: Mon, 06 Aug 2012 23:28
159 lines
8628 bytes
Aaron W. Hsu wrote:
> Hey John:
>
> Thanks for this discussion. I hope we can stick with it as it is generating 
> a lot of useful information and it's improving NN as well. Firstly, I 
> want to address the protocol discussion that we are having, which I have 
> included below in snipped fashion. I think we are disagreeing about what 
> the correct protocol responses for servers should be. I am using the
> RFC 3977 document from here as a reference:
>
> 	https://tools.ietf.org/html/rfc3977
> 	
> You have a server configured to allow read-only, unauthenticated access. 
> You have a limited set of groups that you want to allow read access to, 
> above and beyond the basic restriction that the users who are unauthenticated 
> cannot post. You are doing two things that affect NN: first, you send 
> different listings for unauthenticated and authenticated users; second, 
> you always send the 200 code as the initial greeting.
>
> Let's consider the first (different listings). If, instead of giving 
> a different groups listing to unauthenticated users, you gave the same 
> group listing in both cases, you could still limit read and write 
> access to specific groups, because an attempt to read the group would 
> result in an access denied message. NN user's would see the groups, 
> but would authenticate when trying to get to one that was restricted. 
> (Incidently, I am addressing the groups access in absence of a complete 
> listing in a separate message.) In the RFC, I get this information from 
> section 3.2.1:
>
> 	The server MUST respond to any command with the appropriate one of
> 	the following generic responses if it represents the situation.
> 	
> 	[...]
> 	
> 	If the client is not authorized to use the specified facility when
> 	the server is in its current state, then the appropriate one of the
> 	following response codes MUST be used.
> 	
> 	[...]
> 	
> 	480: The client must authenticate itself to the server (that is, it
> 	     must provide information as to the identity of the client)
> 	     before the facility can be used on this connection. 
>
> This code will prompt NN to ask for authentication, which will happen when
> it tries to access your restricted groups. 
>
> Now, the second issue is the initial greeting. Here is section 5.1.1 from 
> the RFC:
>
> 	Responses [1]
> 		200    Service available, posting allowed
> 		201    Service available, posting prohibited
> 		400    Service temporarily unavailable [2]
> 		502    Service permanently unavailable [2]
>
> 	[1] These are the only valid response codes for the initial
> 	    greeting; the server MUST not return any other generic
> 	    response code.
>
> Notably, 201 is the code to send when you are not allowing posting on 
> the server, but you sill want to give access. The way I am reading the 
> RFC, your server should send 201 as its initial greeting, as the client 
> is initially unauthenticated and thus has not posting priveleges. 
> Now, at that point, NN will see the 201, and try an authentication to 
> see if it can get a 200 code instead by authenticating.

The problem I see here is INN (and most other NNTP/NNRP servers) are 
written to serve a complex audience.

A corporate news server is configured to allow access -- including 
seeing the names of newsgroups (the active file) -- to specific groups 
of users.

You wouldn't want the cafeteria department to be looking over the 
corporate leadership's listing of newsgroups.

News servers in universities are configured to disallow students access 
to the staff's newsgroups. This is quite common.

There are Usenet groups, local groups, and private groups. Not to 
mention the various control.* groups.

In a NSP setting, where the NSP resells NNTP (NNRP) access, it becomes 
more clear why it is important to only show information which is 
appropriate to specific users. It's called revenue, and the almighty 
dollar is the key!

Very important when an NSP, like Highwinds, provides backend group 
access for resale to smaller NSPs, and/or to the reading public. I'm not 
speaking of transit "peering" but reader access determined by incoming 
IP netblocks.

My cable ISP is an example. Unlike many big ISPs, mine still provides 
Usenet for its subscribers, but has never operated any NNTP/NNRP servers.

Instead, the news FQDN is forwarded (routed, whatever) to an NSP that is 
a reseller. In my case, that is usenetserver.com (a few years ago it was 
a different NSP reseller, newsfeeds.com).

Highwinds bought usenetserver.com, and has bought many other smaller 
NSPs in that last few years.

http://www.newsgroupservers.net/usenetserver_newshosting_highwinds_review/

Why? Most of these big ISPs used Highwind's software (Typhoon, Cyclone, 
Tornado, Hurricane, etc.).

The rich ISPs killed their news server farms when Andrew Cuomo, then the 
NY Attorney General, scared them in his quest of political excellence, 
and the governorship of NY. These NSPs no longer paid Highwinds for 
software nor for support.

Most believe the ISPs saw this as a good "politically correct" reason to 
stop selling NNTP, which cost them a lot of money, and didn't provide 
any income.

I'd argue that Usenet is a selling point for an ISP account, a value, 
but you know most computer users today only know how to operate a 
browser, and Facebook serves all of their desires. <sigh>

So the ISPs killed Usenet. Others followed, like Duke University, where 
it all started in the beginning.

Highwinds Media started feeling the pain of lost revenue. Plus many 
server farms were using INN and Diablo, both free of cost and Libre 
free, and likely more configurable and more powerful (I've never used 
Highwinds' software). These guys are both commercial and private.

A look at the ranking in the number of articles they have seen by 
reported Path data, can be found at the Top1000 listing:

http://top1000.anthologeek.net/topsum.current.txt

INN is designed with this screening and assigning reader privilege in 
mind. I wouldn't be surprised if other news server software includes a 
similar ability.

http://en.wikipedia.org/wiki/InterNetNews

 From your viewpoint as a newsreader developer, and that of the vast 
majority of regular news server "users," most don't even realize such 
selective newsgroup screening is even possible.

Your task is to make NN adhere to both the RFCs and to work with as many 
news servers as possible.

NN is "old school" (that is NOT a negative evaluation) which was 
designed in a simpler time. Usenet has evolved over the years, and so 
have the news server programs.

Is it like a cat chasing its tail? ;-)


-- 
John

When a person has -- whether they knew it or not -- already
rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <jvpjuq$euq$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail
References: <c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net> <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com> <jvktrf$8g2$1@n102.xanadu-bbs.net> <xYGdndRdjYlVv4PNnZ2dnUVZ_hydnZ2d@giganews.com> <jvom7t$7dc$1@n102.xanadu-bbs.net> <D_mdnR8f6ZXpjr3NnZ2dnUVZ_tednZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <jvpjuq$euq$1@n102.xanadu-bbs.net>
Subject: Re: ATTN: John; NNTP Protocol discussion (was Re: Replace Google Groups with ?)
Date: Mon, 06 Aug 2012 18:28:26 -0500
From: "John F. Morse" <john@example.invalid>
References: <c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net> <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com> <jvktrf$8g2$1@n102.xanadu-bbs.net> <xYGdndRdjYlVv4PNnZ2dnUVZ_hydnZ2d@giganews.com> <jvom7t$7dc$1@n102.xanadu-bbs.net> <D_mdnR8f6ZXpjr3NnZ2dnUVZ_tednZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nn
Organization: Xanadu BBS
Lines: 159
Reply-To: dont.bother
NNTP-Posting-Host: 4qHUE4Vte7yJH24F0tJGG5ugKIE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Mon, 6 Aug 2012 23:28:26 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20101027)
In-Reply-To: <D_mdnR8f6ZXpjr3NnZ2dnUVZ_tednZ2d@giganews.com>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 8328