🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80126

Re: a few questions about nnrpd and filter_nnrpd.pl

#80126
From: Ray Banana
Date: Wed, 11 Feb 2009 06:09
23 lines
2325 bytes
Thus spake Aioe <estasi@aioe.org>
 
> 2. can filter_nnrpd.pl gracefully *close* a connection from a client? 
> There're people who bomb me with hundreds attempts to post spam using a 
> single connection. I'm able to ban them through tcpd support inside xinetd
> but in this way they're banned when they make an attempt to establish
> a new connection. I need to block the existing ones without using
> ipfilter (that requires root privileges) and i can't wait till they
> close their connection. 

/usr/lib/news/doc/hook-perl:

| Notes on Writing Embedded Perl
| [...]
| Calling exit directly, however, *will* kill the innd or nnrpd process,
| so don't do that.

I wouldn't call it "graceful", but if you are desperate enough, this may
do what you want.

-- 
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Technical Details
Message-ID: <80wsbxfqsa.fsf@banana.shacknet.nu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mail
References: <gmsr19$4i9$1@aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <80wsbxfqsa.fsf@banana.shacknet.nu>
Subject: Re: a few questions about nnrpd and filter_nnrpd.pl
Date: Wed, 11 Feb 2009 07:09:41 +0100
From: Ray Banana <rayban@banana.shacknet.nu>
References: <gmsr19$4i9$1@aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mail
Newsgroups: news.software.nntp
Organization: A noiseless patient spider
Lines: 23
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.eternal-september.org
 U2FsdGVkX1+8j/wgrGTuMvRH0OkVQEEhZ9z4aBh9ds5T2Y07urnaKtr+Ql4cWBMmYcV//0gEEnMgkAdj+EqjGjO5nN+H0oXLlT8qLhHyPhJkUoU7DU5NGlPakB9C3gny5hmxZ6M9uLE=
X-Complaints-To: abuse@banana.shacknet.nu
X-Auth-Sender: U2FsdGVkX1/3KiSISxEoMFc+TSMl/vRbe0OVwmye25hZEAvlGx4J1A==
Cancel-Lock: sha1:+ZDo0yuRrr+8aNQUyiAQD1p8d0Y=
 sha1:pENiIDo8HYzfl3urf3FX530Ck88=
User-Agent: Plonkenlights
X-PGP-Sig: 2.6.3ia Subject,Message-ID,Date,From,User-Agent
 iQCVAwUBSZJrxBFgDSXFGJ/lAQGUJQP+M70uV9jma/AZQRAuwUKss1phEwbC20uC
 n/nlvp9LjX+0SBU5rjqYSl3v3g2gX+wo6GDg74AHej+dewzVvFNTrII68oqF/pFs
 DReDF8Hd2XBYDyuHPUNM7sj3EHg2KDTembzpLHyNQw644pIMyaKkgaVBvEiJkG7s
 k6/UvMLsQy0= =RoiT
X-Attribution: Ray Banana