Thread View: news.software.nntp
7 messages
7 total messages
Started by Carsten Fuchs
Sat, 03 May 2003 13:08
INN as local news server
Author: Carsten Fuchs
Date: Sat, 03 May 2003 13:08
Date: Sat, 03 May 2003 13:08
89 lines
3458 bytes
3458 bytes
Dear newsgroup,
I'm currently trying to set up INN 2.3.3 on my local
Debian GNU/Linux 3.0 computer, in order to learn more
about it before putting it on an on-line public server.
My intention is to set it up as a news server for
"public support newsgroups". That is, I do not want to carry
any USENET newsgroups - no incoming or outgoing feeds.
Despite it is intended as "local news server",
it should be accessible for everybody, worldwide.
Well, I was working through the INSTALL documentation,
as well as Elenas Samsonovas Implementation guide,
but I'm still confused somehow. Some questions:
control.ctl:
Is is sufficient to have the line
all:*:*:drop
in control.ctl?
I don't want others to send control messages to my server
anyway, and this line should also save me from pgp-authentication
issues, does it?
However, do I still have a way to admin my groups
(e.g. create/rm groups, cancel individual articles, ...)
with this simple control.ctl file,
or am I pulling the floor from under my feet?
readers.conf:
Well, should I just put the following in readers.conf?
auth all {
hosts: *
default: <user>
}
access all {
newsgroups: *
}
Is that sufficient?
Is that secure?
Has it side-effects?
(I don't want moderated newsgroups, but of course reserve
the power to e.g. cancel articles.)
newsfeeds:
Having set usecontrolchan to true in inn.conf,
is it correct to have the file newsfeeds simply look like
ME:*,!control,!junk::
controlchan!\
:!*,control,control.*,!control.cancel\
:Tc,Wnsm:/usr/lib/news/bin/controlchan
My incoming.conf looks like
peer ME {
hostname: "localhost, 127.0.0.1"
}
storage.conf:
method tradspool {
class: 1
newsgroups: *
size: 0,1000000
}
With groupbaseexpiry set to true in inn.conf,
my expire.ctl looks like
/remember/:10
*:A:never:never:never
Well, I use "never" because I don't yet know a good way to
archive the groups. Also, using tradspool, can I control
expiry by total size of articles? E.g. if all articles
exceed 2 GB of disk space, expire the oldest articles,
as with the CNFS storage method?
Any comments or help is much appreciated.
Thank you very much in advance! :-)
Best regards,
Carsten
--
Ca3D - Engine http://www.Ca3D-Engine.de
Carsten Fuchs http://www.Ca3D-Engine.de/carsten
Re: INN as local news server
Author: Jeffrey M. Vinocur
Date: Sat, 03 May 2003 14:15
Date: Sat, 03 May 2003 14:15
96 lines
3549 bytes
3549 bytes
In article <b90f0a$5u8$05$1@news.t-online.com>,
Carsten Fuchs <CarstenFuchs@T-Online.de> wrote:
>
>control.ctl:
>Is is sufficient to have the line
>all:*:*:drop
>in control.ctl?
>I don't want others to send control messages to my server
>anyway, and this line should also save me from pgp-authentication
>issues, does it?
Sure, that's fine.
>However, do I still have a way to admin my groups
>(e.g. create/rm groups, cancel individual articles, ...)
>with this simple control.ctl file,
>or am I pulling the floor from under my feet?
When you only want to add or remove groups on the local server,
you can use `ctlinnd newgroup` and `ctlinnd rmgroup`. And
control.ctl doesn't apply to cancel messages; do you want to
disable those? (You always have local administrative cancel by
using `ctlinnd cancel`.)
>auth all {
> hosts: *
> default: <user>
>}
>access all {
> newsgroups: *
>}
>Is that sufficient?
>Is that secure?
>Has it side-effects?
That looks good to me. Obviously, it permits anyone to read and
post, but hopefully no one will abuse it.
You may wish to do
newsgroups: "*,!junk,!control,!control.*"
to reduce clutter for your users.
>newsfeeds:
Your newsfeeds looked fine.
>method tradspool {
> class: 1
> newsgroups: *
> size: 0,1000000
>}
I'd remove the size: line -- in the event that some day an
article exceeding that gets posted, your server will throttle
itself and sit there until you intervene. If you are worried
about such things, you may want to set maxartsize in inn.conf (or
use Cleanfeed).
>/remember/:10
>*:A:never:never:never
>Well, I use "never" because I don't yet know a good way to
>archive the groups.
That's fine; it's what I do for some groups. (Note that the
above means that Expires: headers will be ignored, so if you plan
on using that functionality for posting an updated FAQ every
month or something like that, you may wish to use 1:never:never
instead of never:never:never.)
You can set up the $pathbin/archive program (by listing it in
$pathetc/newsfeeds) to archive articles to a separate directory,
if you like.
>Also, using tradspool, can I control
>expiry by total size of articles? E.g. if all articles
>exceed 2 GB of disk space, expire the oldest articles,
>as with the CNFS storage method?
Not automatically (unless you script it yourself), but at any
point you can modify your expire.ctl and the next night
news.daily will expire the relevant articles.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: INN as local news server
Author: Carsten Fuchs
Date: Sun, 04 May 2003 09:14
Date: Sun, 04 May 2003 09:14
62 lines
3035 bytes
3035 bytes
Hi!
Jeffrey, thank you very much for your advice!!
It helps a lot! :-)
Jeffrey M. Vinocur wrote:
> When you only want to add or remove groups on the local server,
> you can use `ctlinnd newgroup` and `ctlinnd rmgroup`. And
> control.ctl doesn't apply to cancel messages; do you want to
> disable those? (You always have local administrative cancel by
> using `ctlinnd cancel`.)
Oh, yes, please, how can I best drop/disable cancel control messages?
Should I simply change the newsfeeds file,
such that cancel messages are also handled by controlchan
(and thus dropped due to all:*:*:drop in control.ctl)?
>>auth all {
>> hosts: *
>> default: <user>
>>}
>>access all {
>> newsgroups: *
>>}
>>Is that sufficient?
>>Is that secure?
>>Has it side-effects?
>
> That looks good to me. Obviously, it permits anyone to read and
> post, but hopefully no one will abuse it.
About abusing, do you have anything special in mind?
> You may wish to do
> newsgroups: "*,!junk,!control,!control.*"
> to reduce clutter for your users.
Changed. Thanks.
> I'd remove the size: line -- in the event that some day an
> article exceeding that gets posted, your server will throttle
> itself and sit there until you intervene. If you are worried
> about such things, you may want to set maxartsize in inn.conf (or
> use Cleanfeed).
Ok, changed that either. My main intention with limiting the
article size was to reduce the likelihood that someone
maliciously tries to flood my server...
This is certainly not the way to do it, but while I realize
that there are spam filters, how do I prevent flooding attacks?
Can the spam filters handle that? (probably not?)
Best,
Carsten
--
Ca3D - Engine http://www.Ca3D-Engine.de
Carsten Fuchs http://www.Ca3D-Engine.de/carsten
Re: INN as local news server
Author: Jeffrey M. Vinocur
Date: Sun, 04 May 2003 12:29
Date: Sun, 04 May 2003 12:29
59 lines
3273 bytes
3273 bytes
In article <b92llf$o1s$03$1@news.t-online.com>, Carsten Fuchs <CarstenFuchs@T-Online.de> wrote: > >Jeffrey, thank you very much for your advice!! >It helps a lot! :-) Sure thing. >Jeffrey M. Vinocur wrote: >> When you only want to add or remove groups on the local server, >> you can use `ctlinnd newgroup` and `ctlinnd rmgroup`. And >> control.ctl doesn't apply to cancel messages; do you want to >> disable those? (You always have local administrative cancel by >> using `ctlinnd cancel`.) > >Oh, yes, please, how can I best drop/disable cancel control messages? >Should I simply change the newsfeeds file, >such that cancel messages are also handled by controlchan >(and thus dropped due to all:*:*:drop in control.ctl)? Nope, cancel messages are always handled internally by innd for efficiency. You can ignore them by using `innd -C` -- the easiest way to actually do that (since you probably don't start innd directly) is to use the inndflags parameter in inn.conf. >> That looks good to me. Obviously, it permits anyone to read and >> post, but hopefully no one will abuse it. > >About abusing, do you have anything special in mind? For what they could do, or for how to prevent it? (the latter, see below) >Ok, changed that either. My main intention with limiting the >article size was to reduce the likelihood that someone >maliciously tries to flood my server... >This is certainly not the way to do it, but while I realize >that there are spam filters, how do I prevent flooding attacks? >Can the spam filters handle that? (probably not?) Well, the exponential posting backoff in inn.conf (or in readers.conf, if you want to exempt yourself, for example) might help. Cleanfeed is pretty good at catching many kinds of flood, so you could give that a shot -- or you could wait and hope first. I don't know what the frequency of spam to open but local-hierarchy-only servers is. And of course, the fallback is to require passwords, but provide some sort of web- or email-based form for distributing them automatically. Kinda a pain for the users, but not unbearable, and probably better than having the groups be full of spam. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN as local news server
Author: Carsten Fuchs
Date: Fri, 09 May 2003 16:37
Date: Fri, 09 May 2003 16:37
74 lines
3839 bytes
3839 bytes
Jeffrey M. Vinocur wrote:
> Well, the exponential posting backoff in inn.conf (or in
> readers.conf, if you want to exempt yourself, for example) might
> help.
Hi!
Well, I just read the inn.conf man pages, in order to learn how
exponential backoff works. Unfortunately, there are some things
I still don't understand:
The man page of inn.conf says in the introductory text to
exponential backoff:
----------------
"Exponential posting backoff works as follows: News clients are indexed by IP
address (or username, see backoffauth below). Each time a post is received from
an IP address, the time of posting is stored (along with the previous sleep
time, see below). After a *configurable* number of posts in a *configurable*
period of time, nnrpd(8) will activate posting backoff and begin to sleep for
increasing periods of time before actually posting anything. Posts will still be
accepted, but an increasingly reduced rate."
-----------------
I see that the number of postings before the backoff algorithm starts
is configurable by backofftrigger:
"This many postings are allowed before the backoff
algorithm is triggered. The default value is 10000."
However, it seems that I'm missing how the *period of time* is configured
within which these postings must occur in order to trigger
the backoff algorithm?
And what happens to postings from a person for who the backoff algorithm
is active, that is, nnrpd is sleeping?
Will the postings be dropped? queued? returned?
Okay, and I'm really lacking a feeling for a proper set
of numbers for the backoff parameters.
I currently use:
[...]
backoffk: 2
backoffpostfast: 10
backoffpostslow: 600
backofftrigger: 10
or even
backoffk: 2
backoffpostfast: 20
backoffpostslow: 3600
backofftrigger: 10
Would you think that these are reasonable numbers?
My interpretation of the second example is that if a poster
posts more frequently than
every 20 seconds, the sleep time will exponentially increase.
If he posts less frequently than every 20 seconds, the backoff time
will not increase, and stay e.g. at a second. That is, posting
a message every 21 seconds is fine (assuming no backoff time
>1 second was built-up earlier).
If somebody has built up a backoff time of say 80000 seconds,
and sends another post after a delay of 3601 seconds, the backoff
algorithm is reset, right?
Best,
Carsten
--
Ca3D - Engine http://www.Ca3D-Engine.de
Carsten Fuchs http://www.Ca3D-Engine.de/carsten
INN as local news server problem
Author: Richard Gay
Date: Sat, 31 May 2003 15:30
Date: Sat, 31 May 2003 15:30
207 lines
7576 bytes
7576 bytes
----- Original Message -----
From: "Carsten Fuchs" <CarstenFuchs@T-Online.de>
> I'm currently trying to set up INN 2.3.3 on my local
> Debian GNU/Linux 3.0 computer, in order to learn more
> about it before putting it on an on-line public server.
>
> My intention is to set it up as a news server for
> "public support newsgroups". That is, I do not want to carry
> any USENET newsgroups - no incoming or outgoing feeds.
> Despite it is intended as "local news server",
> it should be accessible for everybody, worldwide.
I got the same intention to set up a local news server with INN 2.3.3, but
on a RedHat 8.0 machine. Don't know if I want to make it accessible
worldwide, but at least for my local network.
So I used the same configuration:
> control.ctl:
> all:*:*:drop
> readers.conf:
> auth all {
> hosts: *
> default: <user>
> }
> access all {
> newsgroups: *
> }
> newsfeeds:
> ME:*,!control,!junk::
>
> controlchan!\
> :!*,control,control.*,!control.cancel\
> :Tc,Wnsm:/usr/lib/news/bin/controlchan
> My incoming.conf looks like
> peer ME {
> hostname: "localhost, 127.0.0.1"
> }
> storage.conf:
> method tradspool {
> class: 1
> newsgroups: *
> }
>
> my expire.ctl looks like
> /remember/:10
> *:A:never:never:never
Then (after a reboot to go sure) I tried "/etc/init.d/innd start" to start
INN daemon. Everything seems to be ok:
INND-System starten: [ OK ]
And also "/var/log/news/news.notice" says:
innd: SERVER descriptors 1024
innd: SERVER outgoing 1011
innd: SERVER ccsetup control:12
innd: SERVER lcsetup localconn:14
innd: SERVER rcsetup remconn:4
Nonetheless trying to telnet on port 119 (on the local and a remote machine)
only seems to connect. There is no greeting and no response to any command!
The process seems to be still alive ("ps -A" shows the nnrpd).
"/etc/init.d/innd stop" does not kill the process, nor show any other
message. Newsgroup creation does not work with "ctlinnd newgroup ..." -
seems to hang, too.
When I try to call nnrpd to get a nntp server running using "nnrpd -D", I
can telnet (local and remote) and even my MUA can connect being greeted! The
pid is listed by "ps -A". No newsgroups are listed (modified readers.conf to
hide control(.*) and junk). Thus, works fine, except that I cannot use
"ctlinnd newgroup <groupname>" to create my newsgroups, since "No innd.pid
file; did server die?".
Don't know what to do anymore. Could anybody give me a hint? Is this a
configuration issue or did I miss to create files?
Thanks in advance,
Richard
PS: I executed "makehistory" and "makedbz -i", renamed/chmoded the
"history.n.*" files as I read in some tutorials
This is my inn.conf (only changed the organization), paths should be
correct:
mta: /usr/sbin/sendmail -oi -oem %s
organization: My News Server
ovmethod: tradindexed
pathnews: /usr/lib/news
domain:
innflags:
mailcmd: /usr/lib/news/bin/innmail
server: localhost
artcutoff: 10
bindaddress:
hiscachesize: 0
ignorenewsgroups: false
immediatecancel: false
linecountfuzz: 0
maxartsize: 1000000
maxconnections: 50
pathalias:
pgpverify: false
port: 119
refusecybercancels: false
remembertrash: true
sourceaddress:
usecontrolchan: true
verifycancels: false
wanttrash: false
wipcheck: 5
wipexpire: 10
cnfscheckfudgesize: 0
enableoverview: true
groupbaseexpiry: true
mergetogroups: false
overcachesize: 15
ovgrouppat:
storeonxref: false
useoverchan: false
wireformat: false
xrefslave: false
allownewnews: true
articlemmap: false
clienttimeout: 1800
nnrpdcheckart: true
nnrpperlauth: false
nnrppythonauth: false
noreader: false
readerswhenstopped: false
readertrack: false
keywords: false
keyartlimit: 100000
keylimit: 512
keymaxwords: 250
addnntppostingdate: true
addnntppostinghost: true
checkincludedtext: false
complaints:
fromhost:
localmaxartsize: 1000000
moderatormailer:
nnrpdauthsender: false
nnrpdposthost:
nnrpdpostport: 119
spoolfirst: false
strippostcc: false
backoffauth: false
backoffdb:
backoffk: 1
backoffpostfast: 0
backoffpostslow: 1
backofftrigger: 10000
doinnwatch: false
innwatchbatchspace: 800
innwatchlibspace: 25000
innwatchloload: 1000
innwatchhiload: 2000
innwatchpauseload: 1500
innwatchsleeptime: 600
innwatchspoolnodes: 200
innwatchspoolspace: 8000
docnfsstat: false
logartsize: true
logcancelcomm: false
logcycles: 3
logipaddr: true
logsitename: true
nnrpdoverstats: false
nntpactsync: 200
nntplinklog: false
status: 0
timer: 0
badiocount: 5
blockbackoff: 120
chaninacttime: 600
chanretrytime: 300
icdsynccount: 10
maxforks: 10
nicekids: 0
nicenewnews: 0
nicennrpd: 0
pauseretrytime: 300
peertimeout: 3600
rlimitnofile: -1
patharchive: /var/spool/news/archive
patharticles: /var/spool/news/articles
pathbin: /usr/lib/news/bin
pathcontrol: /usr/lib/news/bin/control
pathdb: /var/lib/news
pathetc: /etc/news
pathfilter: /usr/lib/news/bin/filter
pathhttp: /var/log/news
pathincoming: /var/spool/news/incoming
pathlog: /var/log/news
pathoutgoing: /var/spool/news/outgoing
pathoverview: /var/spool/news/overview
pathrun: /var/run/news
pathspool: /var/spool/news
pathtmp: /var/lib/news/tmp
Re: INN as local news server problem
Author: Richard Gay
Date: Sat, 31 May 2003 17:37
Date: Sat, 31 May 2003 17:37
9 lines
1464 bytes
1464 bytes
Ok, problem solved. Had to rebuild the group.index
(/var/spool/news/overview/group.index) with "makehistory -O -x -F" as user
news. Old group.index had same owner/group but seems to have been different.
Whatever ...
Richard
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