🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84956

Re: Perl filter - attributes hash

#84956
From: Alexander Bartolich
Date: Thu, 21 Jun 2012 16:48
21 lines
2047 bytes
Steve Crook wrote:
> [...]
> My incentive for looking at this was that currently there doesn't appear
> to be an easy way to interrogate the client IP Address from within
> filter_nnrpd.pl. The hostname may exist in the hdr hash
> (in NNTP-Posting-Host or Injection-Info) but it seems a lot of work to
> resolve this back to an address when the client ip must already be known.

I, for one, have complete switched off reverse lookups. It just slows
everything down. Especially since not every dial-up network provides
host names.

man nnrpd
# -n	The -n flag turns off resolution of IP addresses to names.
#       If you only use IP-based restrictions in readers.conf and
#       can handle IP addresses in your logs, using this flag may
#       result in some additional speed.

Ciao

    Alexander.
Technical Details
Message-ID: <jrvj9h$snm$2@news.albasani.net>
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!weretis.net!feeder1.news.weretis.net!news.albasani.net!.POSTED!not-for-mail
References: <slrnju68be.dtg.steve@snorky.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <jrvj9h$snm$2@news.albasani.net>
Subject: Re: Perl filter - attributes hash
Date: Thu, 21 Jun 2012 16:48:49 +0000
From: Alexander Bartolich <alexander.bartolich@gmx.at>
References: <slrnju68be.dtg.steve@snorky.mixmin.net>
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!weretis.net!feeder1.news.weretis.net!news.albasani.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: albasani.net
Lines: 21
X-Trace: news.albasani.net
 8kyj7/khHMYupIJfwsBTNz1jnoEmFhNpoAcO1zBx2OWzgXQ1NaoePau2XNotLMbRnjOiz+W1wPEDayXTGYLvrgRyHcqOIBs1zp2Dc31nvOIZ5atSBFHsd/9EEVjISHge
NNTP-Posting-Date: Thu, 21 Jun 2012 16:48:49 +0000 (UTC)
Injection-Info: news.albasani.net;
 logging-data="a6IKERNG8fzg8Vy0Ux7UG5INW8r0BKyT4E9NYYW3Sosksc2Eyi+YHhRKKrta6we5gg7sn1/kZDaC/QpbOyJzelSPdWpzrE9ssS8b9N2pMSNp4uqKbreSVbS2NXgLERbM";
 mail-complaints-to="abuse@albasani.net"
User-Agent: slrn/pre1.0.0-16 (Linux)
Cancel-Lock: sha1:hI1RQ9ybmBaa9ak0HJhy8S/nSn0=
 sha1:KMbo+KNBJTdBZ1fE9ZzPtWdTyLk=