Thread View: news.software.nntp
20 messages
20 total messages
Started by Mike Mimic
Tue, 20 Aug 2002 14:17
Configuring readers.conf
Author: Mike Mimic
Date: Tue, 20 Aug 2002 14:17
Date: Tue, 20 Aug 2002 14:17
43 lines
1879 bytes
1879 bytes
Hi!
I will nees some help with configuring readers.conf file
in INN 2.
I would like that users connected from localhost have
full access and user connected from anywhere have
also full access but that they won't "see" control and
junk newsgroups. Is this possible? Will other users
have some problems because of that?
And what is use of control and junk groups?
I would like to know if this is correct:
auth "normal" {
hosts: *
default: normal
default-domain: some.org
}
auth "localhost" {
hosts: localhost,127.0.0.1,stdin
default: localhost
default-domain: some.org
}
access "normal" {
users: normal@some.org
newsgroups: *,!junk.*,!control.*
access: RPN
}
access "localhost" {
users: localhost@some.org
newsgroups: *
access: RPN
}
Mike
Re: Configuring readers.conf
Author: Jeffrey M. Vinocur
Date: Tue, 20 Aug 2002 21:47
Date: Tue, 20 Aug 2002 21:47
44 lines
2445 bytes
2445 bytes
In article <3D624F8E.8010707@yahoo.com>, Mike Mimic <ppagee@yahoo.com> wrote: > >I will nees some help with configuring readers.conf file >in INN 2. For future reference, that's a nearly useless version number; in this case I can tell from the below that you mean 2.3.x, though. >I would like that users connected from localhost have >full access and user connected from anywhere have >also full access but that they won't "see" control and >junk newsgroups. Is this possible? Will other users >have some problems because of that? That should be fine. >And what is use of control and junk groups? Well, control messages (group creation/deletion messages, cancels, etc) are filed in the control groups, and "junk" is used if the "wanttrash" setting in inn.conf is true. >I would like to know if this is correct: Looks good. A couple suggestions: - You don't need to use default-domain in this case, it doesn't help you any (but it doesn't hurt either, except by perhaps confusing you) - You probably want to also have !control in the exclusions (since !control.* actually doesn't handle that) - The "access:" parameter is deprecated, you can leave it out in your configuration as long as allownewnews in inn.conf is true - Be warned that your current configuration would allow all sorts of spamming (I don't know what groups you carry and if the server is accessible to the world, though) -- Jeffrey M. Vinocur jeff@litech.org
Re: Configuring readers.conf
Author: Mike Mimic
Date: Tue, 20 Aug 2002 22:54
Date: Tue, 20 Aug 2002 22:54
38 lines
2233 bytes
2233 bytes
Hi! Jeffrey M. Vinocur wrote: >>And what is use of control and junk groups? >> > Well, control messages (group creation/deletion messages, > cancels, etc) are filed in the control groups, and "junk" is used > if the "wanttrash" setting in inn.conf is true. And who can post to control and junk groups? And will be users able to cancel messages if I disallow access? Will there be any downgrade on server's functionality because of that? And can I delete junk group if I don't want trash (and I have set so in config file)? I read somewhere that control and junk are required for INN. And I have only control group, no control.* sub-groups. Is this OK? Can I hide those groups from appearing on groups list? Who must have access to those groups? > - Be warned that your current configuration would allow all sorts > of spamming (I don't know what groups you carry and if the > server is accessible to the world, though) Uh. Anyone can access to it (if he knows my address and that I run NNTP server). And is there some defence from that? Mike
Re: Configuring readers.conf
Author: Russ Allbery
Date: Wed, 21 Aug 2002 00:22
Date: Wed, 21 Aug 2002 00:22
58 lines
3252 bytes
3252 bytes
Mike Mimic <ppagee@yahoo.com> writes:
> And who can post to control and junk groups?
That depends on how your server is set up. The INN documentation
recommends creating the control groups with mode "n" which will disallow
all local postings, since posting directly to the control groups is
generally not useful.
> And will be users able to cancel messages if I disallow access?
Yes. There's no need to ever post directly to the control groups; one is
supposed to post to the affected newsgroup and the control group is just
where the server files the article for convenience.
> Will there be any downgrade on server's functionality because of that?
No.
> And can I delete junk group if I don't want trash (and I have set so in
> config file)? I read somewhere that control and junk are required for
> INN.
They have to exist, but you can exclude them in the read and post patterns
in readers.conf (with *,!junk,!control* or the like) and then readers will
never see them and they won't appear in the group list.
> And I have only control group, no control.* sub-groups. Is this OK?
Not if you want to run controlchan, which I strongly recommend. You need
at least the .cancel group for that. I really recommend creating all the
control.* sub-groups as described in the INN documentation just because
it's more convenient if you ever have to do anything with them.
> Can I hide those groups from appearing on groups list?
Yes, see above.
> Who must have access to those groups?
No one. They can be entirely internal to the server.
>> - Be warned that your current configuration would allow all sorts
>> of spamming (I don't know what groups you carry and if the
>> server is accessible to the world, though)
> Uh. Anyone can access to it (if he knows my address and that I run
> NNTP server). And is there some defence from that?
Yes, you can require authentication of some kind or limit connections to
certain IP addresses.
--
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: Configuring readers.conf
Author: Jeffrey M. Vinocur
Date: Wed, 21 Aug 2002 02:10
Date: Wed, 21 Aug 2002 02:10
63 lines
2404 bytes
2404 bytes
In article <3D62C8C0.30004@yahoo.com>, Mike Mimic <ppagee@yahoo.com> wrote:
>
>And who can post to control and junk groups?
Check your active file. Most likely they are configured to
disallow posting ("n" as the last field).
>And will be users able to cancel messages if I disallow access?
Certainly
>Will there be any downgrade on server's functionality because of
>that?
No
>And can I delete junk group if I don't want trash (and I have set so
>in config file)?
No -- just put !junk in the readers.conf and don't worry about it
>I read somewhere that control and junk are required for
>INN.
In INSTALL, probably
>And I have only control group, no control.* sub-groups. Is this OK?
Does the server work? :-)
>Can I hide those groups from appearing on groups list?
Yes
>Who must have access to those groups?
No one
>> - Be warned that your current configuration would allow all sorts
>> of spamming (I don't know what groups you carry and if the
>> server is accessible to the world, though)
>
>Uh. Anyone can access to it (if he knows my address and that I run
>NNTP server). And is there some defence from that?
What sort of defense do you want? You can restrict by IP
address, make it read-only, require authentication, all sorts of
things.
Check your docs.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Configuring readers.conf
Author: Mike Mimic
Date: Wed, 21 Aug 2002 10:50
Date: Wed, 21 Aug 2002 10:50
48 lines
2417 bytes
2417 bytes
Hi!
Russ Allbery wrote:
>>And I have only control group, no control.* sub-groups. Is this OK?
>
> Not if you want to run controlchan, which I strongly recommend. You need
> at least the .cancel group for that. I really recommend creating all the
> control.* sub-groups as described in the INN documentation just because
> it's more convenient if you ever have to do anything with them.
Why shoud I have a controlchan running? I think that on my server with
50 messages a day there is no such need. Or it is?
> No one. They can be entirely internal to the server.
So. I can than have such configuration?
auth "normal" {
hosts: *
default: normal
}
access "normal" {
users: normal
newsgroups: *,!junk,!control
}
>>Uh. Anyone can access to it (if he knows my address and that I run
>>NNTP server). And is there some defence from that?
>>
> Yes, you can require authentication of some kind or limit connections to
> certain IP addresses.
Hm. I would like that this server is as much public as it can be.
So I would not like any authentication or to limit IPs.
Is there any good manual or text on this topic (anti-spam)?
What about spam-filters? Or something?
Mike
Re: Configuring readers.conf
Author: Russ Allbery
Date: Wed, 21 Aug 2002 15:31
Date: Wed, 21 Aug 2002 15:31
40 lines
2326 bytes
2326 bytes
Mike Mimic <ppagee@yahoo.com> writes:
> Why shoud I have a controlchan running? I think that on my server with
> 50 messages a day there is no such need. Or it is?
True, if you're not taking any outside feeds you don't need controlchan.
> So. I can than have such configuration?
> auth "normal" {
> hosts: *
> default: normal
> }
> access "normal" {
> users: normal
> newsgroups: *,!junk,!control
> }
Yup!
> Hm. I would like that this server is as much public as it can be.
> So I would not like any authentication or to limit IPs.
> Is there any good manual or text on this topic (anti-spam)?
> What about spam-filters? Or something?
You could use controlchan; if you're not carrying any groups in common
with the rest of Usenet, you don't let anyone read control or junk, and
you don't allow crossposts to groups you don't carry, that would probably
take care of it. The last will require a filter of some kind, though (a
fairly simple one).
--
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: Configuring readers.conf
Author: Mike Mimic
Date: Thu, 22 Aug 2002 05:46
Date: Thu, 22 Aug 2002 05:46
25 lines
2035 bytes
2035 bytes
Hi! Russ Allbery wrote: >>What about spam-filters? Or something? >> > You could use controlchan; if you're not carrying any groups in common > with the rest of Usenet, you don't let anyone read control or junk, and > you don't allow crossposts to groups you don't carry, that would probably > take care of it. The last will require a filter of some kind, though (a > fairly simple one). I don't carry any groups. I have disabled control and junk access. But where can I find a filter which will disallow any cross posting on my server (so I will get rid of spam and will get rid of local spam, too)? And thanks for help! Mike
Re: Configuring readers.conf
Author: those who know me have no need o...
Date: Thu, 22 Aug 2002 06:50
Date: Thu, 22 Aug 2002 06:50
10 lines
1286 bytes
1286 bytes
in news.software.nntp i read: >But where can I find a filter which will disallow any cross posting you don't, you write it. (just check the newsgroups header for any commas.) -- bringing you boring signatures for 17 years
Re: Configuring readers.conf
Author: Russ Allbery
Date: Thu, 22 Aug 2002 13:05
Date: Thu, 22 Aug 2002 13:05
24 lines
1839 bytes
1839 bytes
Mike Mimic <ppagee@yahoo.com> writes:
> But where can I find a filter which will disallow any cross posting on
> my server (so I will get rid of spam and will get rid of local spam,
> too)?
If you're happy disallowing *any* crossposting, the following Perl filter
should do it:
sub filter_post {
if ($hdr{'Newsgroups'} =~ /,/) {
return "Crossposting is not allowed";
}
return "";
}
Install it as filter_nnrpd.pl.
--
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: Configuring readers.conf
Author: Mike Mimic
Date: Fri, 23 Aug 2002 12:45
Date: Fri, 23 Aug 2002 12:45
31 lines
1902 bytes
1902 bytes
Hi!
Russ Allbery wrote:
> Mike Mimic <ppagee@yahoo.com> writes:
>
>
>>But where can I find a filter which will disallow any cross posting on
>>my server (so I will get rid of spam and will get rid of local spam,
>>too)?
>>
>
> If you're happy disallowing *any* crossposting, the following Perl filter
> should do it:
>
> sub filter_post {
> if ($hdr{'Newsgroups'} =~ /,/) {
> return "Crossposting is not allowed";
> }
> return "";
> }
>
> Install it as filter_nnrpd.pl.
Thanks (for everything).
Mike
Re: Configuring readers.conf
Author: Mike Mimic
Date: Fri, 23 Aug 2002 12:52
Date: Fri, 23 Aug 2002 12:52
15 lines
1615 bytes
1615 bytes
Hi! Russ Allbery wrote: > Install it as filter_nnrpd.pl. But what if user sends "mode reader" command? Then this filter won't work because the connection is handled by innd? Mike
Re: Configuring readers.conf
Author: Russ Allbery
Date: Fri, 23 Aug 2002 15:17
Date: Fri, 23 Aug 2002 15:17
17 lines
1753 bytes
1753 bytes
Mike Mimic <ppagee@yahoo.com> writes:
> Russ Allbery wrote:
>> Install it as filter_nnrpd.pl.
> But what if user sends "mode reader" command?
> Then this filter won't work because the connection
> is handled by innd?
No, when you send "mode reader" the connection is handed off to nnrpd.
--
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: Configuring readers.conf
Author: Mike Mimic
Date: Fri, 23 Aug 2002 15:34
Date: Fri, 23 Aug 2002 15:34
29 lines
2178 bytes
2178 bytes
Hi! Russ Allbery wrote: >>>Install it as filter_nnrpd.pl. >>> >>But what if user sends "mode reader" command? >>Then this filter won't work because the connection >>is handled by innd? >> > No, when you send "mode reader" the connection is handed off to nnrpd. I have read this in Net:NNTP documentation: Reader - If the remote server is INN then initially the connection will be to nnrpd, by default Net::NNTP will issue a MODE READER command so that the remote server becomes innd. If the Reader option is given with a value of zero, then this command will not be sent and the connection will be left talking to nnrpd. (this is a bit from description of a 'new' function call) I have add it to inn filter, too (just to be sure). Mike
Re: Configuring readers.conf
Author: Russ Allbery
Date: Fri, 23 Aug 2002 15:49
Date: Fri, 23 Aug 2002 15:49
26 lines
2234 bytes
2234 bytes
Mike Mimic <ppagee@yahoo.com> writes:
> I have read this in Net:NNTP documentation:
> Reader - If the remote server is INN then initially the connection will
> be to nnrpd, by default Net::NNTP will issue a MODE READER command so
> that the remote server becomes innd.
The Net::NNTP documentation is wrong. That's exactly backwards.
> If the Reader option is given with a value of zero, then this command
> will not be sent and the connection will be left talking to nnrpd.
It would be left talking to innd. But innd doesn't allow POST, so that's
not a problem.
> I have add it to inn filter, too (just to be sure).
It won't hurt, but for your server configuration, it's not necessary.
--
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: Configuring readers.conf
Author: those who know me have no need o...
Date: Fri, 23 Aug 2002 20:35
Date: Fri, 23 Aug 2002 20:35
18 lines
1868 bytes
1868 bytes
in news.software.nntp i read: >But what if user sends "mode reader" command? >Then this filter won't work because the connection >is handled by innd? first you shouldn't normally allow your customers transfer access, i.e., you should *not* have the ip addresses / names from which their connections originate listed in incoming.conf, they should only be listed in readers.conf, this way they are immediately handed to nnrpd. further, as has already been mentioned, but i'll reiterate so that you will believe from the weight of responses you've received, when the `mode reader' command is issued inn transfers the connection to nnrpd, which is where filter_nntpd.pl works. -- bringing you boring signatures for 17 years
Re: Configuring readers.conf
Author: those who know me have no need o...
Date: Fri, 23 Aug 2002 20:37
Date: Fri, 23 Aug 2002 20:37
14 lines
1688 bytes
1688 bytes
in news.software.nntp i read: >Mike Mimic <ppagee@yahoo.com> writes: >> I have add it to inn filter, too (just to be sure). > >It won't hurt, but for your server configuration, it's not necessary. umm, well, errr. a `no crossposting' filter_innd.pl would certainly cause something to happen -- no more cross-posted articles (from anywhere) would be stored! -- bringing you boring signatures for 17 years
Re: Configuring readers.conf
Author: Mike Mimic
Date: Fri, 23 Aug 2002 21:03
Date: Fri, 23 Aug 2002 21:03
20 lines
2133 bytes
2133 bytes
HI! those who know me have no need of my name wrote: > first you shouldn't normally allow your customers transfer access, i.e., > you should *not* have the ip addresses / names from which their connections > originate listed in incoming.conf, they should only be listed in > readers.conf, this way they are immediately handed to nnrpd. further, as > has already been mentioned, but i'll reiterate so that you will believe > from the weight of responses you've received, when the `mode reader' > command is issued inn transfers the connection to nnrpd, which is where > filter_nntpd.pl works. Thanks! Mike
Re: Configuring readers.conf
Author: Russ Allbery
Date: Fri, 23 Aug 2002 21:08
Date: Fri, 23 Aug 2002 21:08
18 lines
2062 bytes
2062 bytes
those who know me have no need of my name <not-a-real-address@usa.net> writes:
> in news.software.nntp i read:
>> It won't hurt, but for your server configuration, it's not necessary.
> umm, well, errr. a `no crossposting' filter_innd.pl would certainly
> cause something to happen -- no more cross-posted articles (from
> anywhere) would be stored!
From previous discussion in this thread, my understanding is that he
doesn't have any external feeds.
--
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: Configuring readers.conf
Author: those who know me have no need o...
Date: Sat, 24 Aug 2002 02:33
Date: Sat, 24 Aug 2002 02:33
19 lines
2091 bytes
2091 bytes
in news.software.nntp i read: >those who know me have no need of my name <not-a-real-address@usa.net> >writes: >> in news.software.nntp i read: >>> It won't hurt, but for your server configuration, it's not necessary. > >> umm, well, errr. a `no crossposting' filter_innd.pl would certainly >> cause something to happen -- no more cross-posted articles (from >> anywhere) would be stored! > >From previous discussion in this thread, my understanding is that he >doesn't have any external feeds. silly me, i should have reviewed the thread. -- bringing you boring signatures for 17 years
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