Thread View: news.software.nntp
7 messages
7 total messages
Started by Adam French
Sat, 25 Nov 2000 00:28
INN 2.3.0 readers.conf question......
Author: Adam French
Date: Sat, 25 Nov 2000 00:28
Date: Sat, 25 Nov 2000 00:28
12 lines
1300 bytes
1300 bytes
I have to set our nntp server to accept connections from multiple domains, but have to limit the max number of connections per domain. I've read through the man pages, and faqs, but can't find any documentation on this configuration. Anyone out there set this up before? If so, how? Thanks! Adam French
Re: INN 2.3.0 readers.conf question......
Author: Russ Allbery
Date: Fri, 24 Nov 2000 00:00
Date: Fri, 24 Nov 2000 00:00
21 lines
1658 bytes
1658 bytes
Adam French <adamfre@nospamccrtc.com> writes: > I think I see what you are saying..... It would be difficult. I could > code something that just counted up to the limit, then denied all other > requests, but for the script to determin when they loged out, that may > be a toughie. Doesn't the Perl authentication stuff have hooks for this? Let me see.... Yup, authenticate is called on a disconnect. So in auth_init, tie to an external database (NDBM or Berkeley DB v1 would do just fine), and on a connection, increment the count for that domain. That should be easy enough to do. Deny access if they're over with a temporary failure, and then when they disconnect, decrement the count for that domain. You'll have to do some locking because of multiple nnrpd processes, but simple fcntl locking should work. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: INN 2.3.0 readers.conf question......
Author: Adam French
Date: Fri, 24 Nov 2000 00:00
Date: Fri, 24 Nov 2000 00:00
15 lines
1488 bytes
1488 bytes
I think I see what you are saying..... It would be difficult. I could code something that just counted up to the limit, then denied all other requests, but for the script to determin when they loged out, that may be a toughie. Guess I could set up my syslog to log all timeout events to a file, and have the script parse that every 10 minutes or so...... but even at that, I'd have to up my timeout to where people didn't accidently 'expire' themselves due to reading a long article, or whatnot..... And to think, I was going to crash early tonite, thinking about this will keep me up for days..... LOL!! Thanks adam
Re: INN 2.3.0 readers.conf question......
Author: Russ Allbery
Date: Sat, 25 Nov 2000 00:38
Date: Sat, 25 Nov 2000 00:38
19 lines
1755 bytes
1755 bytes
Adam French <adamfre@ccrtc.com> writes: > I have to set our nntp server to accept connections from multiple > domains, but have to limit the max number of connections per domain. > I've read through the man pages, and faqs, but can't find any > documentation on this configuration. Anyone out there set this up > before? If so, how? I'm not aware of anyone who has set up this sort of configuration before. I think the easiest way of implementing it would probably be to use the Perl authentication hooks to maintain a separate database of connections from different domains, although I'm not sure if that gives you enough power (you have to know when a connection terminates too). Because you have to keep track of when a connection terminates, the current res: external authenticators don't have enough power. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: INN 2.3.0 readers.conf question......
Author: bill davidsen
Date: Tue, 28 Nov 2000 00:00
Date: Tue, 28 Nov 2000 00:00
17 lines
1556 bytes
1556 bytes
In article <9017p3$1ru$1@nntp.ccrtc.com>, Adam French <adamfre@nospamccrtc.com> wrote: | Russ, is there documentation on any of this anywhere? Your doing a good job | explaining, but this is so different from what I'm used to dealing with, and | it's hard to experiment on a production machine..... | | I guess for starters, what is auth_init? Start with the readers.conf man page, follow all the "see also" stuff which is relevant. You need to write an auth program which will handle the features you want. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Make the rules? I don't make the rules. I don't even FOLLOW the rules!
Re: INN 2.3.0 readers.conf question......
Author: Russ Allbery
Date: Tue, 28 Nov 2000 00:00
Date: Tue, 28 Nov 2000 00:00
17 lines
1445 bytes
1445 bytes
Adam French <adamfre@nospamccrtc.com> writes: > Russ, is there documentation on any of this anywhere? Your doing a good > job explaining, but this is so different from what I'm used to dealing > with, and it's hard to experiment on a production machine..... > I guess for starters, what is auth_init? See README.perl_hook (or doc/hook-perl in CURRENT) for the details on the Perl authentication stuff. For the native readers.conf stuff, see the readers.conf man page and then also take a good look at the heavily commented sample file. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: INN 2.3.0 readers.conf question......
Author: Adam French
Date: Tue, 28 Nov 2000 00:00
Date: Tue, 28 Nov 2000 00:00
12 lines
1201 bytes
1201 bytes
Russ, is there documentation on any of this anywhere? Your doing a good job explaining, but this is so different from what I'm used to dealing with, and it's hard to experiment on a production machine..... I guess for starters, what is auth_init? A lost soul......
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