🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Peter Gradwell Thu, 20 Sep 2001 13:57
readers.conf - allowing read only access
#54321
Author: Peter Gradwell
Date: Thu, 20 Sep 2001 13:57
42 lines
2470 bytes
Hello,

I'm trying to write a new readers.conf file for inn. Most of it is now
working. This machine has two ip addresses bound to it,
"news.gradwell.net" and "pubnews.gradwell.net".

My objectives are:

1/ anyone connecting to the pubnews host can read a set of news
groups. They can't post, use newnews and are throttled.

2/ anyone connecting to the pubnews host, who logs in (listed in
passwd file number one) is the same as (1), but can use newnews, with
less throttiling.

3/ anyone who logs into news.gradwell.net (username/password,
different password file) get's full access to most groups.

4/ anyone who logs in, who is in passwd file "4" gets full access to
all groups.

5/ Localhost can post to anything.

The config file is available here:
http://news.gradwell.net/readers.conf.new

This all works fine, except that I can't get "rule 1" - allowing any
read only without authentication to work. It seems to be clashing with
"rule 2", and requiring login. 

If anyone who understands the readers.conf format properly could take
a look and recommend an improvement, I'd be most grateful. I imagine
I've got my ordering wrong some how/where, but I've tried it a few
ways round to no avail.

many thanks
peter

-- 
peter gradwell. gradwell dot com Ltd. http://www.gradwell.com/
engineering & hosting services for email, usenet, sms and web
Re: readers.conf - allowing read only access
#54328
Author: Jeffrey M. Vinocur
Date: Thu, 20 Sep 2001 16:14
97 lines
3313 bytes
In article <62tjqt4o0j3kchoc1f6ffrm5tu0oc9ut3s@news.gradwell.net>,
Peter Gradwell  <peter@gradwell.com> wrote:
>
>1/ anyone connecting to the pubnews host can read a set of news
>groups. They can't post, use newnews and are throttled.
>
>2/ anyone connecting to the pubnews host, who logs in (listed in
>passwd file number one) is the same as (1), but can use newnews, with
>less throttiling.
>
>[...]
>
>This all works fine, except that I can't get "rule 1" - allowing any
>read only without authentication to work. It seems to be clashing with
>"rule 2", and requiring login. 

I hypothesize this will work:


auth "localhost" {
    hosts: "localhost, 127.0.0.1, stdin"
    default: "<localhost>"
}

auth pub {
    key: pub
    default: "<anonpub>"
    auth: "ckpasswd -f /usr/local/news/db/users.pubnews"
    localaddress: "pubnews.gradwell.net, 195.149.39.138"
}

auth paid {
    key: paid
    auth: "ckpasswd -f /usr/local/news/db/users.paid"
    localaddress: "news.gradwell.net, 195.149.39.13"
}

auth otherplace {
    key: otherplace
    auth: "ckpasswd -f /usr/local/news/db/users.otherplace"
}

access registered {
    users: *
    key: pub
    post: !*,gradwell.discuss,gradwell.announce,gradwell.support,gradwell.news-request,gradwell.test
    read: *,!bofh.*,!net.*,!gradwell.lists.*
    access: "RN"
    virtualhost: true
    pathhost: pubnews.gradwell.net
    domain: pubnews.gradwell.net
    max_rate: 256
}

access public {  
    users: "<anonpub>"
    key: pub
    post: !*,gradwell.discuss,gradwell.announce,gradwell.support,gradwell.news-request,gradwell.test
    read: *,!bofh.*,!net.*,!gradwell.lists.*
    access: "R"
    virtualhost: true
    pathhost: pubnews.gradwell.net
    domain: pubnews.gradwell.net
    max_rate: 32
}

access paid {
    key: paid
    newsgroups: *,!bofh.*,!net.*
    access: "NRP"
    virtualhost: true
    pathhost: news.gradwell.net
    domain: news.gradwell.net
}

access otherplace {
    key: otherplace
    newsgroups: *
    access: "NRP"
    virtualhost: true
    pathhost: news.gradwell.net
    domain: news.gradwell.net
}

access "localhost" {
    users: "<localhost>"
    newsgroups: "*"
    access: "RPANL"
}




-- 
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