🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Frank Slootweg Wed, 18 Apr 2001 12:36
nnrp.access for fixed IP addresses *and* DHCP?
#51892
Author: Frank Slootweg
Date: Wed, 18 Apr 2001 12:36
43 lines
2319 bytes
[INN 1.7.2]

  For our in-house News server, we mainly used fixed IP addresses and
hostnames in nnrp.access, but for some users we want to use DHCP
instead. I could not determine from the nnrp.access(5) manual page if
this is possible, but some tests lead me to think that it is not
possible. I would like to be proved wrong or get confirmation of my
suspicion.

  Details:
  
  I had:

# Allowed networks in neth.hp.com domain:
15.nnn.*:Read Post:::*
15.mmm.*:Read Post:::*
# Exceptions (i.e. do not have 15.nnn.*/15.mmm.* IP-addresses, but
# should be allowed):
# Joe Luser:
joeluser.neth.hp.com:Read Post:::*
# Nit Pick:
nitpick.neth.hp.com:Read Post:::*
[etc.]

  That worked fine. Then I wanted to add a DHCP user, so I added:

# Allow access from any host with user/password:
# D. Hcpuser:
*.neth.hp.com:Read Post:dhcpuser:dhcppass:*
# Frank Slootweg:
*.neth.hp.com:Read Post:myname:mypass:*

  That worked for D. Hcpuser and me (Frank Slootweg) but now everybody
else with a *.neth.hp.com hostname has to specify a username/password,
which is not what I want.

  Can I set things up in such a way that the existing users/hosts (i.e.
15.nnn.*, 15.mmm.*, joeluser and nitpick) are not affected in any way,
but D. Hcpuser can still connect from any (*.neth.hp.com) host by
specifying his username/password (dhcpuser/dhcppass)?

  Thanks in advance for any and all responses.
Re: nnrp.access for fixed IP addresses *and* DHCP?
#51897
Author: Jeffrey M. Vinocur
Date: Wed, 18 Apr 2001 15:56
28 lines
1979 bytes
In article <9bk1o2$a5s$1@support.neth.hp.com>,
Frank Slootweg  <franks@support.neth.hp.com> wrote:
>[INN 1.7.2]
>
>  Can I set things up in such a way that the existing users/hosts (i.e.
>15.nnn.*, 15.mmm.*, joeluser and nitpick) are not affected in any way,
>but D. Hcpuser can still connect from any (*.neth.hp.com) host by
>specifying his username/password (dhcpuser/dhcppass)?

I'm a bit vague on nnrp.access semantics (if you're sufficiently
motivated to upgrade to a current release of INN, the
readers.conf mechanism has much more featureful access control),
but if it can be done, you have to get the order of the entries
correct.

Assume for the moment that it's last-matching-entry (check your
manpage, I forget, but that feels right).  Then if you put the
username/password entries first, and the IP-restricted entries
after, anyone connecting from an allowed host ought to get in
without password.

I think.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: nnrp.access for fixed IP addresses *and* DHCP?
#51899
Author: Rebecca Ore
Date: Wed, 18 Apr 2001 16:05
18 lines
1522 bytes
Frank Slootweg <franks@neth.hp.com> writes:

> 
>   Can I set things up in such a way that the existing users/hosts (i.e.
> 15.nnn.*, 15.mmm.*, joeluser and nitpick) are not affected in any way,
> but D. Hcpuser can still connect from any (*.neth.hp.com) host by
> specifying his username/password (dhcpuser/dhcppass)?
> 
>   Thanks in advance for any and all responses.

As of INN-2.3.1, I found I could go by domains or I could use
username/password, but not both unless I rolled my own authenication
program.

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: nnrp.access for fixed IP addresses *and* DHCP?
#51901
Author: Jeffrey M. Vinocur
Date: Wed, 18 Apr 2001 16:45
25 lines
1897 bytes
In article <m3eluq2nxs.fsf@pyrophore.ogoense.net>,
Rebecca Ore  <rebecca@ogoense.net> wrote:
>
>As of INN-2.3.1, I found I could go by domains or I could use
>username/password, but not both unless I rolled my own authenication
>program.

Rebecca, this is vague enough to be inaccurate.  It would be
difficult with 2.3.1 to do what you wanted, which was to have
_each_ separate user to have a list of allowed IPs (because to do
this using readers.conf you have to have a separate block for
each user, which doesn't scale very well).

It is possible and indeed quite trivial in 2.3.1 to do what the
original poster requested, which is to allow a certain type of
access to people coming from an IP range and in addition allow
some people to authenticate with username/password from a
different IP range.



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: nnrp.access for fixed IP addresses *and* DHCP?
#51904
Author: Rebecca Ore
Date: Wed, 18 Apr 2001 16:52
34 lines
2328 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:

> In article <9bk1o2$a5s$1@support.neth.hp.com>,
> Frank Slootweg  <franks@support.neth.hp.com> wrote:
> >[INN 1.7.2]
> >
> >  Can I set things up in such a way that the existing users/hosts (i.e.
> >15.nnn.*, 15.mmm.*, joeluser and nitpick) are not affected in any way,
> >but D. Hcpuser can still connect from any (*.neth.hp.com) host by
> >specifying his username/password (dhcpuser/dhcppass)?
> 
> I'm a bit vague on nnrp.access semantics (if you're sufficiently
> motivated to upgrade to a current release of INN, the
> readers.conf mechanism has much more featureful access control),
> but if it can be done, you have to get the order of the entries
> correct.
> 
> Assume for the moment that it's last-matching-entry (check your
> manpage, I forget, but that feels right).  Then if you put the
> username/password entries first, and the IP-restricted entries
> after, anyone connecting from an allowed host ought to get in
> without password.
> 
> I think.

I think he's talking about something similiar to the situation I had
where I *really* didn't want to let everyone on ct.home.com read and
post on my machine, but was perfectly happy to let everyone from a few
owner-operated domains do this.

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: nnrp.access for fixed IP addresses *and* DHCP?
#51915
Author: those who know me have no need o...
Date: Wed, 18 Apr 2001 18:31
15 lines
1230 bytes
<9bk1o2$a5s$1@support.neth.hp.com> divulged:

>That worked for D. Hcpuser and me (Frank Slootweg) but now everybody
>else with a *.neth.hp.com hostname has to specify a username/password,
>which is not what I want.

swap the order.  do the passworded entries first, then the no-password 
entries.

if you need to use radius i have a patch against the 2.2 nnrpd/ that 
should apply, with only a small crowbar, to 1.7.2.

-- 
okay, have a sig then
Re: nnrp.access for fixed IP addresses *and* DHCP?
#51907
Author: Rebecca Ore
Date: Wed, 18 Apr 2001 18:59
52 lines
3075 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:

> In article <m3eluq2nxs.fsf@pyrophore.ogoense.net>,
> Rebecca Ore  <rebecca@ogoense.net> wrote:
> >
> >As of INN-2.3.1, I found I could go by domains or I could use
> >username/password, but not both unless I rolled my own authenication
> >program.
> 
> Rebecca, this is vague enough to be inaccurate.  It would be
> difficult with 2.3.1 to do what you wanted, which was to have
> _each_ separate user to have a list of allowed IPs (because to do
> this using readers.conf you have to have a separate block for
> each user, which doesn't scale very well).

No, *that* wasn't what I wanted to do.  I wanted some users who roamed
to be able to come in from a range of IPS, most users who didn't roam
to both authenticate and come in from known IPs ranges, and other
users to simply use static IPs that I knew to be reserved for very
limited numbers of users.

This may have been why I couldn't understand what you were telling me
because I thought I'd made myself clear, but I couldn't make myself
much clearer until I got the thing changed for security reasons.

One user:  username/password, any IP, restricted groups
Roaming users: user/pass, several ranges of IPS, restricted groups
Roaming users: user/pass, several ranges of IPs, other set of restricted groups.
Non-roaming users on large systems: user/pass, fixed range of IPs, restricted
groups
Non-roaming users on large systems: user/pass, fixed range of IPs,
different mix of groups. 
non-roaming users on fixed IP#1: no auth, various groups.

And so forth.  



> 
> It is possible and indeed quite trivial in 2.3.1 to do what the
> original poster requested, which is to allow a certain type of
> access to people coming from an IP range and in addition allow
> some people to authenticate with username/password from a
> different IP range.

I wasn't sure quite that was what he wanted to do, but if so, yes,
it's the most restrictive category last.

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Re: nnrp.access for fixed IP addresses *and* DHCP?
#51914
Author: Frank Slootweg
Date: Thu, 19 Apr 2001 14:09
22 lines
1900 bytes
those who know me have no need of my name <not-a-real-address@usa.net> wrote:
> <9bk1o2$a5s$1@support.neth.hp.com> divulged:
> 
>>That worked for D. Hcpuser and me (Frank Slootweg) but now everybody
>>else with a *.neth.hp.com hostname has to specify a username/password,
>>which is not what I want.
> 
> swap the order.  do the passworded entries first, then the no-password 
> entries.

  Thanks <I_don't_know_you>, and Jeffrey and Rebecca.

  I will try this. That will take some time, because I am about to go on
a holiday/vacation and do not want to mess things up for my News-sitter.
At the moment, I only tried to accomodate the wishes of a *single* (DHCP)
user and that already led to (temporarily) blocking access for
*everybody except hir*, so I want to tread very carefully (also because
for some strange reason, people do not know how to 'find'/contact their
News Admin, but that's another story).

  Thanks again!
Re: nnrp.access for fixed IP addresses *and* DHCP?
#52234
Author: Frank Slootweg
Date: Tue, 08 May 2001 08:57
96 lines
4404 bytes
Just to end this thread neatly:

On April 19, I wrote:
> those who know me have no need of my name <not-a-real-address@usa.net> wrote:
>> <9bk1o2$a5s$1@support.neth.hp.com> divulged:
>> 
>>>That worked for D. Hcpuser and me (Frank Slootweg) but now everybody
>>>else with a *.neth.hp.com hostname has to specify a username/password,
>>>which is not what I want.
>> 
>> swap the order.  do the passworded entries first, then the no-password 
>> entries.
> 
>   Thanks <I_don't_know_you>, and Jeffrey and Rebecca.
> 
>   I will try this. That will take some time, because I am about to go on
> a holiday/vacation and do not want to mess things up for my News-sitter.
> At the moment, I only tried to accomodate the wishes of a *single* (DHCP)
> user and that already led to (temporarily) blocking access for
> *everybody except hir*, so I want to tread very carefully (also because
> for some strange reason, people do not know how to 'find'/contact their
> News Admin, but that's another story).

  This indeed works so my 'problem' is solved. Thanks again.

  FYI, I now have:

# Allow access from any host with user/password:
# D. Hcpuser:
*.neth.hp.com:Read Post:dhcpuser:dhcppass:*
# Allowed networks in neth.hp.com domain:
15.nnn.*:Read Post:::*
15.mmm.*:Read Post:::*
# Exceptions (i.e. do not have 15.nnn.*/15.mmm.* IP-addresses, but
# should be allowed):
# Joe Luser:
joeluser.neth.hp.com:Read Post:::*
# Nit Pick:
nitpick.neth.hp.com:Read Post:::*
[etc.]

  I.e. I indeed did "swap the order.  do the passworded entries first,
then the no-password entries.".

  In case it has expired from your server, here is my original article
for your reference:

> From: Frank Slootweg <franks@neth.hp.com>
> Newsgroups: news.software.nntp
> Subject: nnrp.access for fixed IP addresses *and* DHCP?
> Date: 18 Apr 2001 12:36:18 GMT
> Message-ID: <9bk1o2$a5s$1@support.neth.hp.com>
> 
> [INN 1.7.2]
> 
>   For our in-house News server, we mainly used fixed IP addresses and
> hostnames in nnrp.access, but for some users we want to use DHCP
> instead. I could not determine from the nnrp.access(5) manual page if
> this is possible, but some tests lead me to think that it is not
> possible. I would like to be proved wrong or get confirmation of my
> suspicion.
> 
>   Details:
>   
>   I had:
> 
> # Allowed networks in neth.hp.com domain:
> 15.nnn.*:Read Post:::*
> 15.mmm.*:Read Post:::*
> # Exceptions (i.e. do not have 15.nnn.*/15.mmm.* IP-addresses, but
> # should be allowed):
> # Joe Luser:
> joeluser.neth.hp.com:Read Post:::*
> # Nit Pick:
> nitpick.neth.hp.com:Read Post:::*
> [etc.]
> 
>   That worked fine. Then I wanted to add a DHCP user, so I added:
> 
> # Allow access from any host with user/password:
> # D. Hcpuser:
> *.neth.hp.com:Read Post:dhcpuser:dhcppass:*
> # Frank Slootweg:
> *.neth.hp.com:Read Post:myname:mypass:*
> 
>   That worked for D. Hcpuser and me (Frank Slootweg) but now everybody
> else with a *.neth.hp.com hostname has to specify a username/password,
> which is not what I want.
> 
>   Can I set things up in such a way that the existing users/hosts (i.e.
> 15.nnn.*, 15.mmm.*, joeluser and nitpick) are not affected in any way,
> but D. Hcpuser can still connect from any (*.neth.hp.com) host by
> specifying his username/password (dhcpuser/dhcppass)?
> 
>   Thanks in advance for any and all responses.
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