🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92081

Re: inn, cleanfeed and ipv6

#92081
From: Gabx
Date: Wed, 09 Apr 2025 12:47
28 lines
2244 bytes
noel wrote:
> I've had a few reports of select users posts not getting out to all
> servers, and experienced it myself in a group last night, running one of
> my scripts that checks open servers, verified my suspicions, there seems
> to be something in the cleanfead script inn servers not liking (all?)
> ipv6 addresses.

This is excerpted from cleanfeed

> if ($hdr{'Injection-Info'} =~ /^$hws*($Hostname)[ \t;]/) {
>     $state{injection_host} = "$1"
> } elsif ($hdr{'X-Trace'} =~ /^$hws*($Hostname)$hws/) {
>     $state{injection_host} = "$1"
> } else {
>     $state{injection_host} = first_path_host($hdr{Path});
> };


The pattern defined in $Hostname is designed to match traditional hosts 
– composed of letters, numbers and dots – or IPv4 addresses.

However, IPv6 addresses, which include hexadecimal characters and the 
“:” character, do not fall into this set.

So, if an Injection-Info header contains an IPv6 address (e.g. 
“2a01:4f8:c0c:2f94::1”), the regex will not match it correctly.

Gabx
Technical Details
Message-ID: <vt5q9f$1342t$1@news.tcpreset.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.endofthelinebbs.com!news.tcpreset.net!.POSTED!not-for-mail
References: <67f47ca5$1@news.ausics.net>

Show Full Headers
Complete Article Headers
Message-ID: <vt5q9f$1342t$1@news.tcpreset.net>
Subject: Re: inn, cleanfeed and ipv6
Date: Wed, 9 Apr 2025 14:47:42 +0200
From: Gabx <info@tcpreset.invalid>
References: <67f47ca5$1@news.ausics.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.endofthelinebbs.com!news.tcpreset.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Victor Hostile Communication Center
Reply-To: postmaster@virebent_invalid
NNTP-Posting-Host: c3066ed76bae8bcc0e476efb157ff758
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Apr 2025 12:47:44 -0000 (UTC)
Injection-Info: news.tcpreset.net;
 logging-data="1151069"; mail-complaints-to="abuse@tcpreset.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101
 Firefox/128.0 SeaMonkey/2.53.20
In-Reply-To: <67f47ca5$1@news.ausics.net>