🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81431

Re: Tracing newsgroups posts

#81431
From: Kelb tal-Fenek
Date: Sat, 20 Jun 2009 18:14
33 lines
2600 bytes
Etian wrote:
> Kelb tal-Fenek wrote:
>> Etian wrote:
>>> Delete the block of code that builds the x-trace header in nnrpd/post.c. 
>>>   make clean.  make update.  And it's gone for good, without worrying 
>>> about it getting leaked whenever your filter crashes.
>> 
>> And then if you set addnntppostinghost to false in inn.conf is there
>> a way to get the client host so you can add that header back hashed?
>> 
> I think you could make a perl authentication script return any kind of 
> hashed or encrypted string that you want it to, which can be made to go 
> in the Sender: header.  It would take just a slight modification of 
> post.c to make that go into the NNTP-Posting-Host: header instead.

OK, the part about x-trace or posting-host getting leaked if the
filter crashes is something I don't want to worry about. So, trying
to come up with a simple way to prevent this, I added a line in
cleanfeed.local to check for the x-trace header and disable posting
until I can get the filter running again. I'm assuming that, even if
filter_nnrpd.pl crashes, filter_innd.pl will keep running. Someone
please let me know if this is not the case.

In cleanfeed.local => sub local_filter_first

 return reject('Posting temporarily disabled') 
  if $hdr{'X-Trace'} and $hdr{Path} =~ /^not\-for\-mail$/;

Note: I undef x-trace and hash posting-host in filter_nnrpd.pl but
need those headers to filter a persistent spammer with a static IP,
otherwise I would delete the code in post.c and set
addnntppostinghost to false.
Technical Details
Message-ID: <h1j8u0$kuv$1@tioat.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!news2.euro.net!goblin1!goblin3!goblin.stu.neva.ru!tioat.net!not-for-mail
References: <02a6d907d2f4bc8ee1509c616a2fa269@remailer.gabrix.ath.cx> <slrnh2djjr.77m.steve@news.mixmin.net> <h06kqs$mse$1@news.gabrix.ath.cx> <h06qns$qv6$1@news.gabrix.ath.cx> <slrnh2f17r.77m.steve@news.mixmin.net> <h08arq$no4$1@news.gabrix.ath.cx> <PWTVl.1371$Fj2.159@newsfe14.iad> <h0942r$2pp$1@tioat.net> <dYVVl.368$f36.275@newsfe19.iad>

Show Full Headers
Complete Article Headers
Message-ID: <h1j8u0$kuv$1@tioat.net>
Subject: Re: Tracing newsgroups posts
Date: Sat, 20 Jun 2009 18:14:24 +0000
From: Kelb tal-Fenek <spot@tioat.net>
References: <02a6d907d2f4bc8ee1509c616a2fa269@remailer.gabrix.ath.cx> <slrnh2djjr.77m.steve@news.mixmin.net> <h06kqs$mse$1@news.gabrix.ath.cx> <h06qns$qv6$1@news.gabrix.ath.cx> <slrnh2f17r.77m.steve@news.mixmin.net> <h08arq$no4$1@news.gabrix.ath.cx> <PWTVl.1371$Fj2.159@newsfe14.iad> <h0942r$2pp$1@tioat.net> <dYVVl.368$f36.275@newsfe19.iad>
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!news2.euro.net!goblin1!goblin3!goblin.stu.neva.ru!tioat.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 33
NNTP-Posting-Host: 1d0e76bf5d80d98a5b5018761149b821.tioat.net
X-Complaints-To: news@tioat.net
NNTP-Posting-Date: Sat, 20 Jun 2009 18:14:24 +0000 (UTC)