🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Bjorn Tue, 17 Sep 2002 13:24
INN and maxconnections.
#60453
Author: Bjorn
Date: Tue, 17 Sep 2002 13:24
12 lines
1328 bytes
Hi,

Are there anyway to limit maxconnection per group/key in INN?

I want to specify which customer should be able to connect with
10, 20 or 50 connections.

both Typhoon and DNEWS can handle this, but where in the messy
INN-conf can I set it?

/Bjorn
Re: INN and maxconnections.
#60456
Author: Russ Allbery
Date: Tue, 17 Sep 2002 15:43
21 lines
1763 bytes
Bjorn <bjorn@behindthedecks.com> writes:

> Are there anyway to limit maxconnection per group/key in INN?

> I want to specify which customer should be able to connect with
> 10, 20 or 50 connections.

> both Typhoon and DNEWS can handle this, but where in the messy
> INN-conf can I set it?

For incoming peering connections or for incoming reader connections?  For
peering connections, you do it in incoming.conf; there isn't a way to do
this for reader connections currently without writing code to do it
yourself using the authentication hooks.

-- 
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: INN and maxconnections.
#60457
Author: Bjorn
Date: Tue, 17 Sep 2002 16:03
29 lines
2074 bytes
Russ Allbery wrote:
> 
> Bjorn <bjorn@behindthedecks.com> writes:
> 
> > Are there anyway to limit maxconnection per group/key in INN?
> 
> > I want to specify which customer should be able to connect with
> > 10, 20 or 50 connections.
> 
> > both Typhoon and DNEWS can handle this, but where in the messy
> > INN-conf can I set it?
> 
> For incoming peering connections or for incoming reader connections?  For
> peering connections, you do it in incoming.conf; there isn't a way to do
> this for reader connections currently without writing code to do it
> yourself using the authentication hooks.

Its for incoming reader connections. 

There was a hook for 1.5.1 called climit. dont know if it works. 
probably not. =)

So the new question is are there anyone that already have written one?

I dont really have time to write one myself, since im going to vacation 
next week. 

/Bjorn
Re: INN and maxconnections.
#60463
Author: Thomas
Date: Tue, 17 Sep 2002 20:39
16 lines
1632 bytes
Russ Allbery wrote:

> For incoming peering connections or for incoming reader connections?  For
> peering connections, you do it in incoming.conf; there isn't a way to do
> this for reader connections currently without writing code to do it
> yourself using the authentication hooks.

I run nnrpd from xinetd. Xinetd can limit the number of connections per IP, 
leaving the rest of the authentication to nnrpd.

It means running innd on a different port though.


Thomas

Re: INN and maxconnections.
#60471
Author: Bjorn
Date: Wed, 18 Sep 2002 07:37
24 lines
1873 bytes
Thomas wrote:
> 
> Russ Allbery wrote:
> 
> > For incoming peering connections or for incoming reader connections?  For
> > peering connections, you do it in incoming.conf; there isn't a way to do
> > this for reader connections currently without writing code to do it
> > yourself using the authentication hooks.
> 
> I run nnrpd from xinetd. Xinetd can limit the number of connections per IP,
> leaving the rest of the authentication to nnrpd.
> 
> It means running innd on a different port though.
> 
> Thomas

per IP or by domain?

since i have customers that pay for different amount of maxconnections.

(I know its a old and terrible way of charging customers)

/Bjorn
Re: INN and maxconnections.
#60475
Author: Thomas
Date: Wed, 18 Sep 2002 13:04
16 lines
1638 bytes
Bjorn wrote:

> per IP or by domain?
> 
> since i have customers that pay for different amount of maxconnections.

I set the number of connections allowed per IP. I don't think it can do per 
domain - and not even 'this domain 3 per IP, that domain 5 per IP'.

It does not even do name lookups as that would be too slow to fit in the 
single-threaded architecture.


Thomas

Re: INN and maxconnections.
#60480
Author: Jeffrey M. Vinocur
Date: Wed, 18 Sep 2002 22:28
22 lines
1644 bytes
In article <5R_h9.979$Aa.13264@amstwist00>, Thomas  <zak@spam.invalid> wrote:
>
>I set the number of connections allowed per IP. I don't think it can do per 
>domain - and not even 'this domain 3 per IP, that domain 5 per IP'.

Not by default, no.  That's why the authentication hooks are
there...


>It does not even do name lookups as that would be too slow to fit in the 
>single-threaded architecture.

Err.  Try putting "*.example.com" in your readers.conf and see
what happens.

Or just check the -n flag to nnrpd.


-- 
Jeffrey M. Vinocur
jeff@litech.org
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