🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Pablo Alsina Thu, 19 Feb 1998 00:00
Virtual INN servers
#26416
Author: Pablo Alsina
Date: Thu, 19 Feb 1998 00:00
20 lines
1233 bytes
Hi!
	I've got INN 1.7 running on a linux box, providing news services to our
customers.

	Now one of our clients needs his own newsserver with his own newsgroups
and he wants that server to only have his newsgroups. I need to run that
server on the same machine my server is running. How can I manage this?
Is there some way to install "virtual servers", something like Apache
does?

	My fisrt idea was to have 2 daemons running on the same machine, but
they would have to listen to different ports and thats not acceptable.
	All readers will connect to servers from the same IP range, so
nnrpd.access wont help.

Thanks in advance,
	Pablo

Re: Virtual INN servers
#26419
Author: Ron Jarrell
Date: Thu, 19 Feb 1998 00:00
24 lines
1286 bytes
Pablo Alsina (palsina@chasque.apc.org) wrote:
: 	Now one of our clients needs his own newsserver with his own newsgroups
: and he wants that server to only have his newsgroups. I need to run that
: server on the same machine my server is running. How can I manage this?
: Is there some way to install "virtual servers", something like Apache
: does?


Use the same daemon, but set the access for his hosts in nnrp.access
to be "!*,his.groups"


Set your default line to be "*,!his.groups"


It effectively partitions them in two.  Then later, when he decides
he'd like "just one group" about once a week, you can just add them,
instead of trying to feed news between two daemons on the same
machine :-).



Re: Virtual INN servers
#26421
Author: bill davidsen
Date: Fri, 20 Feb 1998 00:00
34 lines
2155 bytes
In article <34EC0397.46B4232A@chasque.apc.org>,
Pablo Alsina  <palsina@chasque.apc.org> wrote:

| 	Now one of our clients needs his own newsserver with his own newsgroups
| and he wants that server to only have his newsgroups. I need to run that
| server on the same machine my server is running. How can I manage this?
| Is there some way to install "virtual servers", something like Apache
| does?
| 
| 	My fisrt idea was to have 2 daemons running on the same machine, but
| they would have to listen to different ports and thats not acceptable.

I like your first thought... why would this be unacceptable? If the
client doesn't want regular groups why should they care? 

| 	All readers will connect to servers from the same IP range, so
| nnrpd.access wont help.

So how would you tell if a machine was going to the regular server
or the "other" server? You have to have something diferent, either
the port, the server IP, or the client IP. I guess you could
authenticate and have the same IP do various things depending on the
password. You can have two copies of innd listening to diferent IP
numbers by a small patch to innd or any of several other obvious
tricks.
-- 
bill davidsen (davidsen@tmr.com) CTO, TMR Associates, Inc
  Company policy prevents me from commenting on the performance of
this distributed database. However, the machines on which it runs
are called bottleneck and roadblock.


Re: Virtual INN servers
#26423
Author: Pablo Alsina
Date: Fri, 20 Feb 1998 00:00
30 lines
1895 bytes
bill davidsen wrote:
> 
> So how would you tell if a machine was going to the regular server
> or the "other" server? You have to have something diferent, either
> the port, the server IP, or the client IP. I guess you could
> authenticate and have the same IP do various things depending on the
> password. You can have two copies of innd listening to diferent IP
> numbers by a small patch to innd or any of several other obvious
> tricks.

I would like to use the destination IP (that is, the server IP) to
select to witch server the client wants to connect, but have both IPs
mapped on the same machine, so I suppose that "small patch" you're
talking about will be the right thing to use. Where can I find more info
about it?

Another solution (proposed by Steven Jones) is to use Dnntp. As he told
me, 
"Dnntp allows a traditional newsreader (supports a connection to 
a single NNTP server) to access newsgroups from multiple NNTP servers,
and the port numbers for the servers need not be the standard 119.
The configuration allows for any combination of newsgroups from
any number of servers, so you can have as many "virtual" servers
as you have hosts for them."

Thanks you all
Pablo

Re: Virtual INN servers
#26462
Author: Gerrard Family
Date: Sat, 21 Feb 1998 00:00
17 lines
1145 bytes
>So how would you tell if a machine was going to the regular server
>or the "other" server? You have to have something diferent, either
>the port, the server IP, or the client IP. I guess you could
>authenticate and have the same IP do various things depending on the
>password. You can have two copies of innd listening to diferent IP
>numbers by a small patch to innd or any of several other obvious
>tricks.


Okay, so what are these tricks and where can I find the patch?





Re: Virtual INN servers
#26498
Author: bill davidsen
Date: Tue, 24 Feb 1998 00:00
49 lines
2927 bytes
In article <34ED5250.4B2A2D95@chasque.apc.org>,
Pablo Alsina  <palsina@chasque.apc.org> wrote:
| bill davidsen wrote:
| > 
| > So how would you tell if a machine was going to the regular server
| > or the "other" server? You have to have something diferent, either
| > the port, the server IP, or the client IP. I guess you could
| > authenticate and have the same IP do various things depending on the
| > password. You can have two copies of innd listening to diferent IP
| > numbers by a small patch to innd or any of several other obvious
| > tricks.
| 
| I would like to use the destination IP (that is, the server IP) to
| select to witch server the client wants to connect, but have both IPs
| mapped on the same machine, so I suppose that "small patch" you're
| talking about will be the right thing to use. Where can I find more info
| about it?

Just take a look at the socket setup and bind to a single IP
address, then alias multiple IPs on a single NIC. See bind() man
page, I think.

| Another solution (proposed by Steven Jones) is to use Dnntp. As he told
| me, 
| "Dnntp allows a traditional newsreader (supports a connection to 
| a single NNTP server) to access newsgroups from multiple NNTP servers,
| and the port numbers for the servers need not be the standard 119.
| The configuration allows for any combination of newsgroups from
| any number of servers, so you can have as many "virtual" servers
| as you have hosts for them."

Earlier you said:

<>         My fisrt idea was to have 2 daemons running on the same
<> machine, but they would have to listen to different ports and thats
<> not acceptable.

If you can stand using several port numbers (which I thought was not
an option) that's a good way to do it. But if you use several IPs
you don't have to worry about stupid browsers which can't handle any
port but 119.
-- 
bill davidsen (davidsen@tmr.com) CTO, TMR Associates, Inc
  Company policy prevents me from commenting on the performance of
this distributed database. However, the machines on which it runs
are called bottleneck and roadblock.

Re: Virtual INN servers
#26545
Author: Pablo Alsina
Date: Thu, 26 Feb 1998 00:00
17 lines
1079 bytes
> > Is there some way to install "virtual servers", something like Apache
> > does?
> 
> Not with current stock INN, but you can look at
> http://www.inka.de/~bigred/sw/inn-virtual.txt
> for a patch. (This is for 1.6b3; I'd like to get reports on whether it
> works or where it fails for 1.7.)
> 
> olaf

Thanks. I will try to make it run for 1.7. If anyone makes a patch
before, please let me now.

Pablo

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