🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
14 messages
14 total messages Started by Grant Robertson Fri, 12 Jan 2007 04:46
RFC 3997 support in NNTP server software?
#74645
Author: Grant Robertson
Date: Fri, 12 Jan 2007 04:46
9 lines
1139 bytes
I am looking into setting up an entirely separate network of UseNet 
servers. I would like to make use of the most recent RFCs, MIME content, 
and relatively high level security. Since this will be an entirely 
separate network, compatibility with older RFCs and server software will 
not be an issue.

Can anyone recommend any NNTP server software that would meet my needs.

Thank you.
Re: RFC 3997 support in NNTP server software?
#74638
Author: Jeffrey M. Vinocur
Date: Fri, 12 Jan 2007 04:51
15 lines
1477 bytes
In article <MPG.2010ceba89601f639896da@news.newsguy.com>,
Grant Robertson  <bogus@bogus.invalid> wrote:
>
>Can anyone recommend any NNTP server software that would meet my needs.

Well, you haven't really said what your needs are.

But in terms of RFC 3977 (not 3997), INN does at least have
compliance as a goal, and is reasonably close, although not
entirely there at present.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: RFC 3997 support in NNTP server software?
#74640
Author: Grant Robertson
Date: Fri, 12 Jan 2007 16:17
52 lines
3742 bytes
In article <eo7446$aqi$1@puck.litech.org>, jeff@litech.org says...
> In article <MPG.2010ceba89601f639896da@news.newsguy.com>,
> Grant Robertson  <bogus@bogus.invalid> wrote:
> >
> >Can anyone recommend any NNTP server software that would meet my needs.
> 
> Well, you haven't really said what your needs are.

Well, my needs are as stated in my original post: RFC3977 compliance, 
specifically MIME message format compatibility, and relatively tight 
security. Since this will be a completely new and independent network I 
see no reason to tie it down to the old standards.

To be more specific: I want users to be able to post and read messages in 
XHTML format which may have embedded pictures or other media files. Those 
files may be attached to the message or simply be references to files on 
some web server elsewhere. If the latter then it will be up to the reader 
to retrieve them and they are of no concern to the news server. Both the 
servers and readers must transmit data in full 8 bits. I don't want 
anything to need to be UUENCODed. It would also be good if it was 
possible to set a very high maximum message length. I would prefer that 
users not have to split messages up.

I do not want to use web based forum software to achieve my goals for 
several reasons: I need the store and forward nature of NNTP because some 
users throughout the world may only have intermittent internet access. I 
want users to be able to connect, download their messages, then go 
offline and read and respond offline if necessary. There may be some 
remote villages who will only power up their server long enough to 
connect and retrieve a feed or to allow a user to walk in with their $100 
laptop and connect long enough to retrieve their messages. I also believe 
that, in the end, NNTP is more conservative of bandwidth. Connecting to a 
web based forum with all it's associated overhead will require much more 
bandwidth than the simple downloading of a few messages. This is 
especially true if the user downloads headers only first then marks and 
retrieves only the messages they are interested in. 

Remember, this usenet network will NOT be carrying the normal usenet news 
feeds. This will be a relatively restricted system for a very specific 
purpose. 

> But in terms of RFC 3977 (not 3997), INN does at least have
> compliance as a goal, and is reasonably close, although not
> entirely there at present.

Sorry, I keep going dyslexic on that number. I have looked at various INN 
web sites and I can't seem to find a list of exactly what its features 
are. They all seem more concerned with listing updates and terse 
instructions on how to set it up. Is there any web site that is designed 
to sell the features and benefits of INN that I could look at?

Thanks.
Re: RFC 3997 support in NNTP server software?
#74641
Author: Russ Allbery
Date: Fri, 12 Jan 2007 18:11
39 lines
3298 bytes
Grant Robertson <bogus@bogus.invalid> writes:

> To be more specific: I want users to be able to post and read messages
> in XHTML format which may have embedded pictures or other media
> files. Those files may be attached to the message or simply be
> references to files on some web server elsewhere. If the latter then it
> will be up to the reader to retrieve them and they are of no concern to
> the news server. Both the servers and readers must transmit data in full
> 8 bits. I don't want anything to need to be UUENCODed. It would also be
> good if it was possible to set a very high maximum message length. I
> would prefer that users not have to split messages up.

Any news server should be able to cope with this provided that you don't
need binary data (data with unpaired CR and LF, or with NUL).  RFC 3977
doesn't allow such data anyway, so my assumption is that you don't.

> Sorry, I keep going dyslexic on that number. I have looked at various
> INN web sites and I can't seem to find a list of exactly what its
> features are. They all seem more concerned with listing updates and
> terse instructions on how to set it up. Is there any web site that is
> designed to sell the features and benefits of INN that I could look at?

It's really hard to list the complete set of features of a software
package that's as complex as INN is.  What you're looking for in terms of
message support, though, is quite simple as far as news servers go and
should be supported by any news server.

The primary portion of RFC 3977 not yet supported by any server (except
possibly the NNTP component of Cyrus IMAP) is full extension support and
correct extension advertising.  There are other minor issues that would
need cleaning up in probably all servers, certainly including INN, which
is the reason why INN doesn't yet advertise extensions per RFC 3977.
(That and I just haven't had any time to work on INN lately.)

-- 
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.
Re: RFC 3997 support in NNTP server software?
#74642
Author: Jeffrey M. Vinocur
Date: Fri, 12 Jan 2007 22:35
92 lines
4822 bytes
In article <MPG.2011708e48ee6d6a9896db@news.newsguy.com>,
Grant Robertson  <bogus@bogus.invalid> wrote:
>
>relatively tight security.

What sort of security?  INN is pretty flexible about restricting
access for readers, although it can require some work to set up
depending on what exactly you're looking for.  On the other hand,
INN is relatively naive about security for NNTP peering
relationships, since most people have dedicated servers on fixed
IP addresses and are willing to rely on that.  Of course, it
sounds like you might be looking to do something other than
straight NNTP peering anyway (such as a suck feed, or even
potentially uucp).


>Both the servers and readers must transmit data in full 8 bits.

No news software can handle opaque binary data, because we depend
on an inline end-of-article tag to know where an article stops;
to do otherwise would require changing every program (since you'd
have to send the length first, and then the article, so the
recipient could count to the provided length to know where the
article ends).


>I don't want anything to need to be UUENCODed.

Because?

If you're worried about the bandwidth, I suppose you can do yEnc
instead.  


>It would also be good if it was possible to set a very high
>maximum message length. I would prefer that users not have to
>split messages up.

Well, INN defaults to 1 MB, and you could probably increase that
a reasonable amount without difficulty...but keep in mind that
NNTP doesn't have any facility for resuming interrupted transfers
in the middle of an article.  So (especially if you're
considering a situation with unreliable connectivity) the larger
you make individual articles, the more risk you're taking.


>I do not want to use web based forum software to achieve my goals for 
>several reasons: I need the store and forward nature of NNTP because some 
>users throughout the world may only have intermittent internet access [...]

For the discussion part of your idea, certainly a web forum
sounds disastarous.

I'm unconvinced that sending any substantial amount of binaries
via NNTP is going to be the best option for you, though.


>that, in the end, NNTP is more conservative of bandwidth. Connecting to a 
>web based forum with all it's associated overhead will require much more 
>bandwidth than the simple downloading of a few messages. This is 
>especially true if the user downloads headers only first then marks and 
>retrieves only the messages they are interested in. 

It's not clear to me what parts of your proposed network are
going to rely on peering links (with store-and-forward behavior,
that have to transmit more-or-less blindly) and which are going
to rely on a reader-style link (with selective retrieval).


>Sorry, I keep going dyslexic on that number. I have looked at various INN 
>web sites and I can't seem to find a list of exactly what its features 
>are. They all seem more concerned with listing updates and terse 
>instructions on how to set it up. Is there any web site that is designed 
>to sell the features and benefits of INN that I could look at?

I don't know if anyone has the time to bother pushing INN -- it
does most of what news servers do, and it's hard to even describe
that in detailed fashion because it's something "everybody knows"
or whatever.

You might find it useful to skim through the (copious)
documentation, since all of the features should be covered in
there in some fashion.  You can find it (webified) at:

    http://www.eyrie.org/~eagle/software/inn/

    (probably you want the INN 2.4 documentation)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: RFC 3997 support in NNTP server software?
#74644
Author: Grant Robertson
Date: Sat, 13 Jan 2007 04:46
55 lines
3754 bytes
In article <87ps9k5d4o.fsf@windlord.stanford.edu>, rra@stanford.edu 
says...
> Any news server should be able to cope with this provided that you don't
> need binary data (data with unpaired CR and LF, or with NUL).  RFC 3977
> doesn't allow such data anyway, so my assumption is that you don't.
> 
Darn, I read the whole RFC and I remember reading that but I didn't put 
the pieces together. I had thought the "no independent CR or LF" rule was 
just for commands and responses. But I just found it again in section 3.6 
in the second paragraph. Clear as day. 

However, section 10.2 doesn't seem to mention the "no independent CR or 
LF" rule. In fact it states, 

   ..."this specification allows
   the use of arbitrary 8-bit data in articles subject to the following
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   requirements and recommendations.

   o  The names of headers (e.g., "From" or "Subject") MUST be in
      US-ASCII.

   o  Header values SHOULD use US-ASCII or an encoding based on it, such
      as RFC 2047 [RFC2047], until such time as another approach has
      been standardised.  At present, 8-bit encodings (including UTF-8)
      SHOULD NOT be used because they are likely to cause
      interoperability problems.

   o  The character set of article bodies SHOULD be indicated in the
      article headers, and this SHOULD be done in accordance with MIME.

   o  Where an article is obtained from an external source, an
      implementation MAY pass it on and derive data from it (such as the
      response to the HDR command), even though the article or the data
      does not meet the above requirements.  Implementations MUST
      transfer such articles and data correctly and unchanged; they MUST
      NOT attempt to convert or re-encode the article or derived data.
      (Nevertheless, a client or server MAY elect not to post or forward
      the article if, after further examination of the article, it deems
      it inappropriate to do so.)

   This requirement affects the ARTICLE (Section 6.2.1), BODY
   (Section 6.2.3), HDR (Section 8.5), HEAD (Section 6.2.2), IHAVE
   (Section 6.3.2), OVER (Section 8.3), and POST (Section 6.3.1)
   commands."


So you can see where I got the idea that NNTP could now carry binary data 
directly. In fact, I can't quite see why it can't or shouldn't. I see 
from your web site that you don't like web based technology and prefer 
plain text. However, there are some important uses for being able to 
carry binary data directly and transparently. Remember, the usenet 
network I plan to set up will be completely separate from the regular 
usenet newsgroups. None of my servers will be allowed to carry regular 
usenet traffic.
Re: RFC 3997 support in NNTP server software?
#74646
Author: Russ Allbery
Date: Sat, 13 Jan 2007 04:56
64 lines
4208 bytes
Grant Robertson <bogus@bogus.invalid> writes:

> Darn, I read the whole RFC and I remember reading that but I didn't put
> the pieces together. I had thought the "no independent CR or LF" rule
> was just for commands and responses. But I just found it again in
> section 3.6 in the second paragraph. Clear as day.

> However, section 10.2 doesn't seem to mention the "no independent CR or 
> LF" rule. In fact it states, 

>    ..."this specification allows
>    the use of arbitrary 8-bit data in articles subject to the following
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    requirements and recommendations.

"8-bit data" here is being used in the MIME sense, as in RFC 2045:

2.8.  8bit Data

   "8bit data" refers to data that is all represented as relatively
   short lines with 998 octets or less between CRLF line separation
   sequences [RFC-821]), but octets with decimal values greater than 127
   may be used.  As with "7bit data" CR and LF octets only occur as part
   of CRLF line separation sequences and no NULs are allowed.

(although NNTP doesn't care about the 998 character limitation).  It is
different from binary data, which is what you're looking for.

The NNTP article transfer protocol can't cope with binary data, I'm
afraid.

> So you can see where I got the idea that NNTP could now carry binary
> data directly. In fact, I can't quite see why it can't or shouldn't.

Because due to the way articles are teriminated, the article must end in
CRLF.

Other than that, you can write news software that handles full binary
data, but that one flaw means that you can't handle it completely cleanly
(and the use of dot-escaping rather than stating the length of the data
before sending it makes it annoying).  Because of its history, most NNTP
software doesn't deal with NUL well (mostly because it doesn't avoid
calling C string functions like strlen in all the places one must avoid
this).

Because of history, the dot-escaping method making binary data annoying,
and the CRLF ending requirement, the feeling has been that the existing
NNTP commands aren't usefully expandable to deal with binary data and
instead a separate set of commands should be introduced, replacing the
existing ARTICLE, BODY, POST, and IHAVE commands, that provide an octet
count up-front and are specified from the start as supporting binary data.
No one has yet written a specification or implementation that I'm aware
of, though.

In other words, I'm certainly not opposed to this being addressed, but no
one has yet done it and I don't have enough time even to do the basic
maintenance on INN that should be done and bring it up into compliance
with RFC 3977 in a reasonable time frame, let alone work on this.  :/

-- 
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.
Re: RFC 3997 support in NNTP server software?
#74647
Author: Grant Robertson
Date: Sat, 13 Jan 2007 07:59
35 lines
2738 bytes
In article <eo92ge$cqm$1@puck.litech.org>, jeff@litech.org says...

> What sort of security?  INN is pretty flexible about restricting
> access for readers, although it can require some work to set up
> depending on what exactly you're looking for.  On the other hand,
> INN is relatively naive about security for NNTP peering
> relationships, since most people have dedicated servers on fixed
> IP addresses and are willing to rely on that.  Of course, it
> sounds like you might be looking to do something other than
> straight NNTP peering anyway... .

I specifically want to be able to prevent unauthorized servers (or 
individual users with client software) from logging in and uploading 
messages to my servers. I need to do more than rely on security through 
obscurity. I need strong password security and preferably digital 
certificates and or encryption of some kind. I read RFC 4642 (although it 
was about 2:00 am at the time) so it seems that good security is possible 
by creating a secure connection BEFORE initiating the NNTP session. Could 
I use any VPN software to achieve that or must I rely on the NNTP server 
software to achieve it by implementing RFC 4642?


> >Both the servers and readers must transmit data in full 8 bits.
> 
> No news software can handle opaque binary data, because we depend
> on an inline end-of-article tag to know where an article stops;
> to do otherwise would require changing every program (since you'd
> have to send the length first, and then the article, so the
> recipient could count to the provided length to know where the
> article ends).

So that explains why NNTP can't carry binary data directly and 
independently.

Thanks for your help.
Re: RFC 3997 support in NNTP server software?
#74648
Author: Grant Robertson
Date: Sat, 13 Jan 2007 08:05
17 lines
2002 bytes
In article <87wt3rzfrh.fsf@windlord.stanford.edu>, rra@stanford.edu 
says...
> Other than that, you can write news software that handles full binary
> data, but that one flaw means that you can't handle it completely cleanly
> (and the use of dot-escaping rather than stating the length of the data
> before sending it makes it annoying).  Because of its history, most NNTP
> software doesn't deal with NUL well (mostly because it doesn't avoid
> calling C string functions like strlen in all the places one must avoid
> this).

Nope. I want all my outward facing server software to be standard off-
the-shelf. The only software I will be writing is the desktop software. 
I'm actually working on creating a standard to which others can create 
software. But I don't want any custom server software because that would 
just introduce a whole new set of vulnerabilities.

Thanks for all your help and suggestions.
Re: RFC 3997 support in NNTP server software?
#74649
Author: Jeffrey M. Vinocur
Date: Sat, 13 Jan 2007 13:04
27 lines
2392 bytes
In article <MPG.201230949f9057839896dd@news.newsguy.com>,
Grant Robertson  <bogus@bogus.invalid> wrote:
>
>I specifically want to be able to prevent unauthorized servers (or 
>individual users with client software) from logging in and uploading 
>messages to my servers. I need to do more than rely on security through 
>obscurity. I need strong password security and preferably digital 
>certificates and or encryption of some kind. I read RFC 4642 (although it 
>was about 2:00 am at the time) so it seems that good security is possible 
>by creating a secure connection BEFORE initiating the NNTP session. Could 
>I use any VPN software to achieve that or must I rely on the NNTP server 
>software to achieve it by implementing RFC 4642?

Well of course, you can tunnel anything you want over an
encrypted link e.g. via VPN, without waiting for existing
software to implement anything.

I think the approach you take here is going to depend a lot on
the overall shape of this network, whether the server-server
links are going to be stable (obviously you described
readers-server links that are intermittent), how many servers
we're talking about, etc.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: RFC 3997 support in NNTP server software?
#74650
Author: Grant Robertson
Date: Sat, 13 Jan 2007 16:00
19 lines
2149 bytes
In article <eoalcl$5qf$1@puck.litech.org>, jeff@litech.org says...
> I think the approach you take here is going to depend a lot on
> the overall shape of this network, whether the server-server
> links are going to be stable (obviously you described
> readers-server links that are intermittent), how many servers
> we're talking about, etc.

The server based links will likely be stable while they are established. 
Some places may simply choose to shut the server down when not in use to 
conserve electricity. There will be enough servers up at any one time for 
everyone to get all the feed they want. The intermittent servers will 
naturally not be the ones people choose to rely on as a source for the 
feed.

Naturally, this will start with only one server but may grow to include 
thousands spread all over the world. I have worked out a multi-tiered 
system so there will always be some stable servers that everyone can rely 
on. I can't give you any more details now but you will know it when you 
see it.
Re: RFC 3997 support in NNTP server software?
#74651
Author: Russ Allbery
Date: Sat, 13 Jan 2007 16:59
17 lines
2128 bytes
Grant Robertson <bogus@bogus.invalid> writes:

> Nope. I want all my outward facing server software to be standard off-
> the-shelf. The only software I will be writing is the desktop
> software. I'm actually working on creating a standard to which others
> can create software. But I don't want any custom server software because
> that would just introduce a whole new set of vulnerabilities.

Oh, yeah, I understand.  I meant "you" in the general sense, meaning
"people who have time to work on this, which unfortunately I don't at the
moment."  I'm too busy writing Kerberos software.  :/

-- 
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.
Re: RFC 3997 support in NNTP server software?
#74653
Author: Curt Welch
Date: Sun, 14 Jan 2007 06:03
88 lines
6176 bytes
Grant Robertson <bogus@bogus.invalid> wrote:

> > >Both the servers and readers must transmit data in full 8 bits.
> >
> > No news software can handle opaque binary data, because we depend
> > on an inline end-of-article tag to know where an article stops;
> > to do otherwise would require changing every program (since you'd
> > have to send the length first, and then the article, so the
> > recipient could count to the provided length to know where the
> > article ends).
>
> So that explains why NNTP can't carry binary data directly and
> independently.

Many of the major servers now do support 8 bit binary data in the article
body.  Only the headers, and the requirement that the article end with CR
LF limits the data.  If you build your own network out of servers that
support 8 bit data, and use an article format that deals with the
limitation that the article must end with CR LF, then you can use off the
shelf servers to do pure 8 bit binary.

On the real Usenet, it gets more complex mostly for historic reasons.
Usenet started on Unix machines and the article format was defined in terms
Unix text files which used only the LF as the end of line marker.  And of
course, Usenet was intended for only text articles with the assumption that
systems like UUENCODE would be used if you really just had to send a binary
file in the text article.  The original Usenet transport protocols all
passed articles around in Unix format - they didn't use CR LF end of line
markers.  Not until NNTP was created for transporting Usenet articles over
the few lucky sites to have access to the Internet was the CR LF issue
added.  And it was done only because of the convention to use that format
for text articles on the Internet.

The first NNTP implementations all converted the CR LF wire format to the
LF disk format, and back again.

Over the years, NNTP became the rule instead of the exception for both
transporting and accessing Usenet articles.  But other than the tendency of
Usenet servers to used limited length line buffers, and standard nul
terminated C strings to hold lines, the other hidden complexity to pure
binary was the fact that CR LF got converted to LF and then back to CR LF
on transmitting.  This meant if you sent an article with a lone LF, many
servers would convert it to CR LF along the way.  So you get extra CRs
added to your binary file.  And, once that happened, if the next character
was a dot, then that could get picked up as part of the dot stuffing and
cause more corruption.

Servers as late as Diablo (mid 90's) still stored articles in UNIX style LF
format.  But later NNTP based servers, tend to move away from that and
store articles in NNTP wire format with CR LF (so it didn't have to do
conversions which required article size expansion and contraction).
Highwind's servers I think were 8 bit clean.

A wire-format option was added to Diablo some time back so a Diablo system
configured to use wire format is mostly 8 bit clean.  But I think it might
still allow LF DOT LF to terminate an article which causes corruption.

INN I think uses wire format and I think is 8 bit clean for transport and
reading but articles posted from INN I think might have an issue with line
length.

So in general, A good bit of Usenet is _almost_ able to carry 8 bit binary
in the article body and were were well on the way of motivating Usenet to
convert when yenc was created to move binary transport from the 6 bit
format of uuencode to an effective 7.9 bit (or something like that).  Now
that we have almost pure binary transport implemented on Usenet, there's
almost no motivation to convert to pure 8 bit bodies so it's unlikely to
ever happen at this point.

But, if you can control which servers get used on your private network,
there are some that support 8 bit clean bodies, and ones like Diablo, if
they don't, are so close to doing it (when configured correctly) that you
could make the few changes that are needed yourself or get someone to do it
(if you could afford to pay them).

I don't know what the current status of readers are for dealing with 8 bit.
I would guess most don't.  But if you are going to use some new 8 bit
binary format for transporting files, you are going to have to write a
custom reader anyhow.

The easiest way to do it and be compatible with current clients and
servers, is to just yenc your data - which gives you almost 8 bit
transport. (I didn't see the start of this thread so I don't know what you
are tying to do).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: RFC 3997 support in NNTP server software?
#74663
Author: Grant Robertson
Date: Sun, 14 Jan 2007 15:58
1 lines
1043 bytes
Wow! Thank you for your great explanation.
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