🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Gina Bull Thu, 24 Jul 2003 14:04
readers.conf vs subnets
#66301
Author: Gina Bull
Date: Thu, 24 Jul 2003 14:04
24 lines
2230 bytes
I manage the news servers for the University of Virginia. Currently, 
whatever address is on campus can access the news server without 
authentication, and accesses from users on stray ISPs have to 
authenticate. That all works fine. Basically, any name ending 
"virginia.edu" or any address 128.143.* or 137.54.* has access. (innd 
2.3.2 under Solaris 8 on a Sun Ultra)

Next month we are adding a *piece* of a subnet to our address pool, and 
I'm not sure how I can specify it in readers.conf. I don't want to 
enable the whole subnet because some of it belongs to agencies that 
aren't "ours". The piece is something like 199.111.162 - 199.111.255.255.

I experimented with CIDR notation when I was setting up this server and 
either it didn't do what I thought it should, or it didn't work -- but 
since my needs at that time were simple, I just used the old wildcard 
notation I've always used. Plus I'm fuzzy on exactly how that should 
help me. Now I'm inspired again. :-)

Any advice?

Gina Bull
usenet@virginia.edu
University of Virginia
Re: readers.conf vs subnets
#66303
Author: Jeffrey M. Vinocur
Date: Thu, 24 Jul 2003 15:17
18 lines
1633 bytes
In article <3F1FE758.1050802@virginia.edu>,
Gina Bull  <ginabull@virginia.edu> wrote:
>
>The piece is something like 199.111.162 - 199.111.255.255.
>
>I experimented with CIDR notation when I was setting up this server and 
>either it didn't do what I thought it should, or it didn't work

Well, that's probably what you want to use.  The IP range you
give above is missing a byte, so it's hard to help you exactly,
but if you can try CIDR and tell us what exactly the problem
is...



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: readers.conf vs subnets
#66308
Author: Gina Bull
Date: Thu, 24 Jul 2003 18:40
54 lines
3390 bytes
Jeffrey M. Vinocur wrote:
> In article <3F1FE758.1050802@virginia.edu>,
> Gina Bull  <ginabull@virginia.edu> wrote:
> 
>>The piece is something like 199.111.162 - 199.111.255.255.
>>
>>I experimented with CIDR notation when I was setting up this server and 
>>either it didn't do what I thought it should, or it didn't work
> 
> 
> Well, that's probably what you want to use.  The IP range you
> give above is missing a byte, so it's hard to help you exactly,
> but if you can try CIDR and tell us what exactly the problem
> is...
> 

Here's what I put into readers.conf:

auth "local" {
     hosts: "*.virginia.edu, 128.143.*, 137.54.*, 199.111.160/19, 
199.111.192/18"
     default: "<LOCAL>"
     default-domain: local
}

This is the stanza that recognizes the local networks. I just added the 
CIDR-style addresses to the same line. I then did a "make install 
readers.conf" and checked to be sure the working copy in /usr/news/etc 
was updated.

When I tried to access the news server from a PC at address 
199.111.165.141 (just using telnet) I got a response that authentication 
was required, as though the address was not local. Here are the log 
entries from the server (and yes, I did mistype my auth password...)

Jul 24 14:20:11 murdoch.acc.Virginia.EDU nnrpd[8744]: [ID 515199 
news.warning] ? cant gethostbyaddr 199.111.165.141 Unknown host -- using 
IP address for access
Jul 24 14:20:11 murdoch.acc.Virginia.EDU nnrpd[8744]: [ID 998472 
news.warning] 199.111.165.141 connect
Jul 24 14:20:57 murdoch.acc.Virginia.EDU nnrpd[8744]: [ID 265954 
news.warning] 199.111.165.141 auth_err ckpasswd: user rlb0p password 
doesn't match.
Jul 24 14:20:57 murdoch.acc.Virginia.EDU nnrpd[8744]: [ID 561221 
news.warning] 199.111.165.141 bad_auth
Jul 24 14:20:57 murdoch.acc.Virginia.EDU nnrpd[8744]: [ID 452021 
news.warning] 199.111.165.141 times user 0.160 system 0.090 elapsed 45.965

This is unfortunately what I had experienced when I was setting up the 
server.
I'm hoping fresh eyes (or more eperienced ones) can point me toward what 
I'm
doing wrong.
Re: readers.conf vs subnets
#66309
Author: Jeffrey M. Vinocur
Date: Thu, 24 Jul 2003 22:30
26 lines
1722 bytes
In article <3F20281B.7020504@virginia.edu>,
Gina Bull  <ginabull@virginia.edu> wrote:
>
>auth "local" {
>     hosts: "*.virginia.edu, 128.143.*, 137.54.*, 199.111.160/19, 
>199.111.192/18"
>     default: "<LOCAL>"
>     default-domain: local
>}

I think you need to put a full four-octet IP for the CIDR, like:
199.11.160.0/19.


>Jul 24 14:20:11 murdoch.acc.Virginia.EDU nnrpd[8744]: [ID 515199 
>news.warning] ? cant gethostbyaddr 199.111.165.141 Unknown host -- using 
>IP address for access

Can you turn on news.debug logging (in syslog.conf, then HUP
syslogd) -- it helps enormously debugging readers.conf.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: readers.conf vs subnets
#66319
Author: Gina Bull
Date: Fri, 25 Jul 2003 15:32
23 lines
1930 bytes
That was it! I was just putting in the notation the way I see the 
Networks gurus around here write it -- but that's really shorthand. I 
just got a good connection, so I'm ready for the new subnet addresses to 
come online in a few days.

Again, thanks!

Jeffrey M. Vinocur wrote:
> In article <3F20281B.7020504@virginia.edu>,
> Gina Bull  <ginabull@virginia.edu> wrote:
> 
>>auth "local" {
>>    hosts: "*.virginia.edu, 128.143.*, 137.54.*, 199.111.160/19, 
>>199.111.192/18"
>>    default: "<LOCAL>"
>>    default-domain: local
>>}
> 
> 
> I think you need to put a full four-octet IP for the CIDR, like:
> 199.11.160.0/19.
> 
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