🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #70652

Re: Multiple feeds on a SINGLE computer

#70652
From: Jeffrey M. Vinocur
Date: Sat, 29 Jan 2005 23:03
94 lines
4767 bytes
In article <1106964312.140308.231380@z14g2000cwz.googlegroups.com>,
 <binary-nomad@hotmail.com> wrote:
>>
>> If you truly have a requirement for multiple groups of users
>> seeing groups with the same name but different contents, then you
>> may need to run multiple copies of a news server.  Certainly with
>> INN you would.
>>
>
>Is there an alternative? How good is it/they?

There are lots of news servers (see the "servers" section of
http://www.newsreaders.com/).  I've never used anything but INN
myself.

And I'd be surprised if any server had the feature you're looking
for -- it's a pretty fundamental concept that the newsgroup name
uniquely identifies a collection of articles.  In general, server
software authors will depend on that to be true.


>> (You could run multiple copies on the same machine either by
>> having multiple IP addresses, or by binding to different ports.)
>
>Is there documentation somewhere that explains how to do this? I've
>Googled for quite a while but this is a pretty rare concept, it seems.

Yeah, I've never heard of anyone wanting the behavior you
describe in all the years I've been doing this.  I think I can
recall people wanting to run two copies of INN on the same
machine, maybe, but that's it.

I believe that all the necessary information is included in the
INN documentation; try reading about ./configure --with-innd-port
in INSTALL, "port" and "bindaddress" in inn.conf(5), and -p in
nnrpd(8).  You'd obviously need two sets of INN config files;
and since some of the paths are compiled into the binaries and
scripts, probably the easiest thing to do is to have two separate
source trees (and pass different --prefix options to
./configure).


>Naturally, this would limit the number of daemons to the number of
>ports free on that machine, yes, it's probably not a worry in the real
>world, but somehow, it's the concept of *being* limited that gets to
>me.

In the real world, I think the memory overhead of all those
copies of INN will get you long before you run out of ports.


>Is there *any* conceivable way around it? How does Apache do
>multiple websites on one computer? Can't that technique be extended
>here?

Nope.  This was so visibly a problem in HTTP/1.0, that in
HTTP/1.1 they made it possible for the client to tell the server
what hostname it wanted (even if all the hostnames resolve to the
same IP address).  There's nothing like this in NNTP, so the
server has to guess based on client IP address and authentication
username (if any).

Now, INN can do some very powerful things based on this
information (see readers.conf(5)).  However, making newsgroups
change names based on who's connecting is not one of them,
because this just isn't something that people do.

I don't understand why you can't name the newsgroups different
things.  (Note that, in the scheme you've proposed, there's no
way for a user to be a member of more than one group -- since all
the newsgroups have the same name, any user can only see one of
them.)


>Isn't there simply a way to tell INNd to switch to a different
>directory for its files, depending on the username of who's connecting
>to it?

No.


>What about the "virtualhost" directive up there? Is just
>changing the posting headers etc. all it's limited to?

Yes.

This is something that an NNTP provider could use if it wanted
ISPs to resell its service -- the users of each ISP think they're
really connecting to that ISP's news server.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <cth4o8$bet$1@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.litech.org!not-for-mail
References: <60f8fe7a.0501252007.24a9f67e@posting.google.com> <1106934175.549199.132820@z14g2000cwz.googlegroups.com> <ctdu2j$a0c$1@puck.litech.org> <1106964312.140308.231380@z14g2000cwz.googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <cth4o8$bet$1@puck.litech.org>
Subject: Re: Multiple feeds on a SINGLE computer
Date: Sat, 29 Jan 2005 23:03:36 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <60f8fe7a.0501252007.24a9f67e@posting.google.com> <1106934175.549199.132820@z14g2000cwz.googlegroups.com> <ctdu2j$a0c$1@puck.litech.org> <1106964312.140308.231380@z14g2000cwz.googlegroups.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.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 94
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1107039816 11741 66.218.0.75 (29 Jan 2005 23:03:36
 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sat, 29 Jan 2005 23:03:36 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)