🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15838

Re: How to prevent INN from allowing connections from disallowed hosts ?

#15838
From: James Brister
Date: Thu, 13 Mar 1997 00:00
45 lines
2494 bytes
Simon Burr <simes@bpfh.net> writes:

> bill davidsen wrote:
> > What's wrong with the "502 You have no permission to talk.
> > Goodbye." message from INN?
> 
> Someone trying to connect lots of times is a possible denial of service
> attack if the message is from nnrpd. All they have to do is attempt
> connects lots of times a second. Each one will result in an nnrpd
> being started.

Not if you use the H, T and X flags.

       -H -T -X
              The  ``-H'',  ``-T'',  and ``-X'' flags control the
              number of connects per minute allowed.   This  code
              is  meant  to  protect  your server from newsreader
              clients that make too many connects per  minute  to
              your server.  You should probably not use it unless
              you are having a problem.  The table used for these
              checks  is  fixed  at  128 entries and is used as a
              ring.  The size was chosen to make calculating  the
              index  easy and to be pretty sure you won't run out
              of space.  In practice, it  is  doubtful  that  you
              will use even half the table at any given moment.

              The  ``-H''  flag limits the number of times a host
              is allowed to connect to the server per ``-X'' sec�
              onds.  The default is 2.

              The ``-T'' flag limits the total number of incoming
              connects to innd per ``-X'' seconds.   The  maximum
              value is 128.  The default is 60.

              The  ``-X''  sets the number of seconds used by the
              ``-H'' and ``-T'' flags.  A value of zero turns off
              checking.  The default is 0.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Technical Details
Message-ID: <yy3iv2vjvnn.fsf@velo.pp.vix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <MPG.d8f476d5680deb9989682@news.kraft.com>

Show Full Headers
Complete Article Headers
Message-ID: <yy3iv2vjvnn.fsf@velo.pp.vix.com>
Subject: Re: How to prevent INN from allowing connections from disallowed hosts ?
Date: Thu, 13 Mar 1997 00:00:00 +0000
From: James Brister <brister@vix.com>
References: <MPG.d8f476d5680deb9989682@news.kraft.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 225304432
Organization: Internet Software Consortium
Newsgroups: news.software.nntp