🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
13 messages
13 total messages Started by Matthias Wach Mon, 29 Mar 2004 23:12
INN: Way to limiting the reader-download ?
#68862
Author: Matthias Wach
Date: Mon, 29 Mar 2004 23:12
20 lines
1692 bytes
I need a way to limit the download of readers.
One possibility is to set the max connections per user to 1 and throttle to
8 kb for example.
I don't know how to set the max connection per user to 1.
The other solution is to limit the monthly download. But how ?

How can i do this. I found nothing.

Thanks a lot.





................................................................
       Posted via TITANnews - Uncensored Newsgroups Access
             >>>> at http://www.TitanNews.com <<<<
-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-

Re: Way to limiting the reader-download ?
#68865
Author: Geoff Brozny
Date: Mon, 29 Mar 2004 23:31
20 lines
1629 bytes
"Matthias Wach" <webmaster@salimbo.com> wrote in message
news:4068ad4b$0$62830$a8266bb1@news.titannews.com...
> I need a way to limit the download of readers.
> One possibility is to set the max connections per user to 1 and throttle
to
> 8 kb for example.
> I don't know how to set the max connection per user to 1.

it should be in the readers.conf man file, if you cannot find it, let me
know and I will try to look it up..

> The other solution is to limit the monthly download. But how ?

you cannot do that out of the box with INN, just rate limit the readers.

geoff


Re: Way to limiting the reader-download ?
#68866
Author: Matthias Wach
Date: Tue, 30 Mar 2004 00:11
37 lines
2303 bytes
"Geoff Brozny" <gbrozny@glorb.columbus.oh.us> schrieb im Newsbeitrag
news:c4ab0c$uv6$1@ratbert.glorb.com...
>
> "Matthias Wach" <webmaster@salimbo.com> wrote in message
> news:4068ad4b$0$62830$a8266bb1@news.titannews.com...
> > I need a way to limit the download of readers.
> > One possibility is to set the max connections per user to 1 and throttle
> to
> > 8 kb for example.
> > I don't know how to set the max connection per user to 1.
>
> it should be in the readers.conf man file, if you cannot find it, let me
> know and I will try to look it up..
>
> > The other solution is to limit the monthly download. But how ?
>
> you cannot do that out of the box with INN, just rate limit the readers.
>
> geoff
>

does there no addon tool exist ?
i cannot give readers unlimited download...!!??

matthias






................................................................
       Posted via TITANnews - Uncensored Newsgroups Access
             >>>> at http://www.TitanNews.com <<<<
-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-

Re: Way to limiting the reader-download ?
#68869
Author: Geoff Brozny
Date: Tue, 30 Mar 2004 03:41
29 lines
2030 bytes
"Matthias Wach" <webmaster@salimbo.com> wrote in message
news:4068bb13$0$62781$a8266bb1@news.titannews.com...
>
> does there no addon tool exist ?

If there is one, I dont know about it..

> i cannot give readers unlimited download...!!??


       max_rate:
           If this parameter is present (and nonzero) it is used for nnrpd�s
           rate-limiting code.  The client will only be able to download at
           this speed (in bytes/second).  Note that if SSL is being used,
lim-
           iting is applied to the pre-encryption datastream.


I don't know if this will rate limit that client regardless of how many
connections they open up, or if it will just rate limit each connection,  I
was unable to find at this time if and/or how to limit the amount of
connections one host can open at one time,  hopefully someone else reading
this will be able to tell you..

geoff


Re: Way to limiting the reader-download ?
#68870
Author: Russ Allbery
Date: Tue, 30 Mar 2004 03:43
27 lines
2307 bytes
Geoff Brozny <gbrozny@glorb.columbus.oh.us> writes:

>    max_rate:
>        If this parameter is present (and nonzero) it is used for nnrpd�s
>        rate-limiting code.  The client will only be able to download at
>        this speed (in bytes/second).  Note that if SSL is being used,
>        limiting is applied to the pre-encryption datastream.

> I don't know if this will rate limit that client regardless of how many
> connections they open up, or if it will just rate limit each connection,

It only rate-limits each connection.

> I was unable to find at this time if and/or how to limit the amount of
> connections one host can open at one time, hopefully someone else
> reading this will be able to tell you..

There isn't any built-in functionality to do this; you'd have to roll your
own using the Perl or Python filter.  There are enough hooks to do a
proper job in the Perl or Python filter, though.

-- 
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: Way to limiting the reader-download ?
#68871
Author: Matthias Wach
Date: Tue, 30 Mar 2004 07:48
34 lines
2768 bytes
> >    max_rate:
> >        If this parameter is present (and nonzero) it is used for nnrpd�s
> >        rate-limiting code.  The client will only be able to download at
> >        this speed (in bytes/second).  Note that if SSL is being used,
> >        limiting is applied to the pre-encryption datastream.
>
> > I don't know if this will rate limit that client regardless of how many
> > connections they open up, or if it will just rate limit each connection,
>
> It only rate-limits each connection.
>
> > I was unable to find at this time if and/or how to limit the amount of
> > connections one host can open at one time, hopefully someone else
> > reading this will be able to tell you..
>
> There isn't any built-in functionality to do this; you'd have to roll your
> own using the Perl or Python filter.  There are enough hooks to do a
> proper job in the Perl or Python filter, though.
>
> -- 
> 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.

Thanks for help.
Does there any other newsserver software exist which support better reader
control ?
(runnning on redhat linux)
I am a little confused. INN supports so many functions, think it can cook
coffee. But this very important feature is not supported...


Re: Way to limiting the reader-download ?
#68872
Author: Russ Allbery
Date: Tue, 30 Mar 2004 17:15
15 lines
1835 bytes
Matthias Wach <webmaster@salimbo.com> writes:

> I am a little confused. INN supports so many functions, think it can
> cook coffee. But this very important feature is not supported...

All features are important to someone.  :)  This particular feature is
unfortunately somewhat difficult to implement in INN's architecture, since
it requires storing state across multiple independent nnrpd processes.

-- 
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: Way to limiting the reader-download ?
#68904
Author: Kai Henningsen
Date: Sun, 04 Apr 2004 15:23
27 lines
2585 bytes
rra@stanford.edu (Russ Allbery)  wrote on 30.03.04 in <874qs69ryh.fsf@windlord.stanford.edu>:

> Matthias Wach <webmaster@salimbo.com> writes:
>
> > I am a little confused. INN supports so many functions, think it can
> > cook coffee. But this very important feature is not supported...
>
> All features are important to someone.  :)  This particular feature is
> unfortunately somewhat difficult to implement in INN's architecture, since
> it requires storing state across multiple independent nnrpd processes.

That kind of thing is something Exim (the MTA) does all the time. It does  
this by having a few databases (Berkeley DB, I believe), in which the  
various processes can drop and get back the necessary information.  (In  
Exim's case, stuff like "this host was not reachable at this time", "we  
have this many connections open from that host", and so on.)

Inn currently does not have any database with those characteristics (many  
writers, many readers, typically short retention for small pieces of  
data), but I can see no reason why that would be a particular problem. It  
might even be a generally useful mechanism to have.

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)
Re: Way to limiting the reader-download ?
#68905
Author: Russ Allbery
Date: Sun, 04 Apr 2004 21:56
24 lines
2572 bytes
Kai Henningsen <kaih=96EZ576Xw-B@khms.westfalen.de> writes:

> That kind of thing is something Exim (the MTA) does all the time. It
> does this by having a few databases (Berkeley DB, I believe), in which
> the various processes can drop and get back the necessary information.
> (In Exim's case, stuff like "this host was not reachable at this time",
> "we have this many connections open from that host", and so on.)

> Inn currently does not have any database with those characteristics
> (many writers, many readers, typically short retention for small pieces
> of data), but I can see no reason why that would be a particular
> problem. It might even be a generally useful mechanism to have.

You need to significantly improve the architecture of nnrpd first, since
it already has problems stranding locks with the ovdb overview backend and
it's only opening that read-only.  I'd hate to see the damage that it
would currently do to a read/write database.  It wasn't designed to do a
clean shutdown and needs to be reworked so that it will.

-- 
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: Way to limiting the reader-download ?
#68906
Author: pbs
Date: Sun, 04 Apr 2004 22:32
43 lines
3770 bytes
Kai Henningsen wrote:
> rra@stanford.edu (Russ Allbery)  wrote on 30.03.04 in <874qs69ryh.fsf@windlord.stanford.edu>:
> 
> 
>>Matthias Wach <webmaster@salimbo.com> writes:
>>
>>
>>>I am a little confused. INN supports so many functions, think it can
>>>cook coffee. But this very important feature is not supported...
>>
>>All features are important to someone.  :)  This particular feature is
>>unfortunately somewhat difficult to implement in INN's architecture, since
>>it requires storing state across multiple independent nnrpd processes.
>
> That kind of thing is something Exim (the MTA) does all the time. It does  
> this by having a few databases (Berkeley DB, I believe), in which the  
> various processes can drop and get back the necessary information.  (In  
> Exim's case, stuff like "this host was not reachable at this time", "we  
> have this many connections open from that host", and so on.)
> 
> Inn currently does not have any database with those characteristics (many  
> writers, many readers, typically short retention for small pieces of  
> data), but I can see no reason why that would be a particular problem. It  
> might even be a generally useful mechanism to have.

One quick way to do this would be to take the ideas in the relay-yEnc 
proxy junking the yEncoding and putting in a simple database of 
connections. This would be able to do the job for all versions of the 
inn news server and save the need for inn system integration testing. It 
is a pity that the licence on yEnc is not a little more liberal 
otherwise their code could be used as a base for doing this.
http://ziberex.dk/ENG-yEnc.htmI
                               ^upper case i

dnntpd is another candidate for alteration but I think that it does more
than is necessary for a simple authentication/authorization proxy.
http://www.netsw.org/net/news/proxy/dnntpd

Perhaps someone else knows of a proxy which can do 
authentication/authorization that is already available and ready to go.

If not this seems like a perfect small self contained undergraduate 
project :-)
Re: Way to limiting the reader-download ?
#68911
Author: Tommy van Leeuwen
Date: Mon, 05 Apr 2004 11:10
17 lines
2039 bytes
On Mon, 05 Apr 2004 10:32:12 +1200, pbs wrote:

> Perhaps someone else knows of a proxy which can do 
> authentication/authorization that is already available and ready to go.

Well, NNTPSwitch(.org) does exactly that. It has all the authentication
options you want and does rate limiting on a user basis, not nntp
connections. It keeps a memory of what is a user (i.e. a set of the same
ip addresses or a set of users logged in).

> If not this seems like a perfect small self contained undergraduate 
> project :-)

It does ;)

Cheers,
Tommy
Re: Way to limiting the reader-download ?
#68913
Author: pbs
Date: Mon, 05 Apr 2004 20:42
15 lines
2450 bytes
Tommy van Leeuwen wrote:
> On Mon, 05 Apr 2004 10:32:12 +1200, pbs wrote:
> 
>>Perhaps someone else knows of a proxy which can do 
>>authentication/authorization that is already available and ready to go.
> 
> Well, NNTPSwitch(.org) does exactly that. It has all the authentication
> options you want and does rate limiting on a user basis, not nntp

And www.nntpswitch.org mentions that it is much faster than NNTPCache.
http://iq.org/~proff/nntpcache.org which says:
  NNTPCache can also act selectively as an intelligent chrooted firewall
  NNTP application proxy and supports full RFC931/ident, source address
  and newsgroup access controls with quite a reasonable degree of
  granularity.
Re: Way to limiting the reader-download ?
#68918
Author: Tommy van Leeuwen
Date: Tue, 06 Apr 2004 07:17
26 lines
2636 bytes
On Tue, 06 Apr 2004 08:42:48 +1200, pbs wrote:

> Tommy van Leeuwen wrote:
>> On Mon, 05 Apr 2004 10:32:12 +1200, pbs wrote:
>> 
>>>Perhaps someone else knows of a proxy which can do 
>>>authentication/authorization that is already available and ready to go.
>> 
>> Well, NNTPSwitch(.org) does exactly that. It has all the authentication
>> options you want and does rate limiting on a user basis, not nntp
> 
> And www.nntpswitch.org mentions that it is much faster than NNTPCache.
> http://iq.org/~proff/nntpcache.org which says:
>   NNTPCache can also act selectively as an intelligent chrooted firewall
>   NNTP application proxy and supports full RFC931/ident, source address
>   and newsgroup access controls with quite a reasonable degree of
>   granularity.

But I think nntpcache is quite dead. It doesn't even handle simple things
like limiting the number of connections per host and such. Looks like
nntpcache.org itself is gone too. Anyway, lots of ideas were taken from
nntpcache initially to develop nntpswitch so it might look a bit like it,
for the basics atleast.

Cheers,
Tommy
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