🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Steve Crook Wed, 25 Mar 2015 17:40
nnrpd Perl filter not being applied
#86456
Author: Steve Crook
Date: Wed, 25 Mar 2015 17:40
20 lines
1621 bytes
Hi all,

It's been brought to my attention that news.mixmin.net is no longer
filtering out IP addresses in Injection-Host headers.  The reason
appears to be that the server is no longer using filter_nnrpd.pl.

The perl script hasn't changed recently and checking its syntax with
perl -wc filter_nnrpd.pl reports no issues.

Each post to the server is generating a message in news.err of:
Mar 25 16:40:33 snorky nnrpd[3280]: SERVER perl filter not defined

I've download the latest INN version from svn today and recompiled it
but the problem is still there.  Any suggestions how I can isolate the
issue?

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?
Re: nnrpd Perl filter not being applied
#86459
Author: Julien ÉLIE
Date: Wed, 25 Mar 2015 19:54
32 lines
2342 bytes
Hi Steve,

> The perl script hasn't changed recently and checking its syntax with
> perl -wc filter_nnrpd.pl reports no issues.
>
> Each post to the server is generating a message in news.err of:
> Mar 25 16:40:33 snorky nnrpd[3280]: SERVER perl filter not defined

It means that Perl failed to load the filter_post() function in 
filter_nnrpd.pl.


> I've download the latest INN version from svn today and recompiled it
> but the problem is still there.  Any suggestions how I can isolate the
> issue?

Maybe trying a bare bone filter_nnrpd.pl that contains only:

sub filter_post {
     return "Rejected" if $hdr{"Subject"} =~ /just a test/i;
     return "";
}

You should not see "SERVER perl filter not defined" in your logs at each 
post, and those that contain "just a test" in their Subject header field 
should be rejected.

-- 
Julien ÉLIE

« Mais dis à ton ami qu'il cesse de jeter notre argent par les
   écoutilles ! » (Astérix)
Re: nnrpd Perl filter not being applied
#86460
Author: Steve Crook
Date: Wed, 25 Mar 2015 21:43
25 lines
1930 bytes
On Wed, 25 Mar 2015 20:54:14 +0100, Julien ÉLIE wrote in
Message-Id: <mev3p6$han$1@news.trigofacile.com>:

> Hi Steve,
>
>> The perl script hasn't changed recently and checking its syntax with
>> perl -wc filter_nnrpd.pl reports no issues.
>>
>> Each post to the server is generating a message in news.err of:
>> Mar 25 16:40:33 snorky nnrpd[3280]: SERVER perl filter not defined
>
> It means that Perl failed to load the filter_post() function in 
> filter_nnrpd.pl.

Thanks Julian,

Cutting back to a very basic filter_nnrpd.pl solved the problem.  I'll
now try to isolate what element of the original was causing the problem.
As I haven't changed it in the last year, I'm guessing an update to a
Perl module might be the cause.

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?
Re: nnrpd Perl filter not being applied
#86462
Author: D. Stussy
Date: Thu, 26 Mar 2015 08:15
27 lines
2601 bytes
"Steve Crook"  wrote in message 
news:slrnmh6b0p.h7m.steve@snorky.mixmin.net...
On Wed, 25 Mar 2015 20:54:14 +0100, Julien ÉLIE wrote in
Message-Id: <mev3p6$han$1@news.trigofacile.com>:
>> The perl script hasn't changed recently and checking its syntax with
>> perl -wc filter_nnrpd.pl reports no issues.
>>
>> Each post to the server is generating a message in news.err of:
>> Mar 25 16:40:33 snorky nnrpd[3280]: SERVER perl filter not defined
>
> It means that Perl failed to load the filter_post() function in
> filter_nnrpd.pl.

Cutting back to a very basic filter_nnrpd.pl solved the problem.  I'll
now try to isolate what element of the original was causing the problem.
As I haven't changed it in the last year, I'm guessing an update to a
Perl module might be the cause.
========
Updating Perl is always a problem.  I find that after such, I need to 
recompile all programs that reference it or are interpreted by it to account 
for the new version number.

As for some Perl module having changed, I haven't seen that type of problem 
where a script will no longer run.  However, I have noted that SpamAssassin 
doesn't like the 5.20 DNS module because it reports it can't find any 
servers when it could using 5.18. 
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