πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92084

Re: inn, cleanfeed and ipv6

#92084
From: Ray Banana
Date: Wed, 09 Apr 2025 13:35
30 lines
2311 bytes
* Gabx wrote:
> 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.
>

1. What happens if the regex doesn't match?
2. How do you set a reverse DNS name for your IPv6 IP address with Hetzner?
3. What happens when the IPv6 address of your peer has a reverse DNS name? 


-- 
ΠŸΡƒΜΡ‚Ρ–Π½ β€” хуйло́
https://www.eternal-september.org
Technical Details
Message-ID: <slrnvvctt7.b1sb.rayban@raybanana.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!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!raybanana.dont-email.me!.POSTED!not-for-mail
References: <67f47ca5$1@news.ausics.net> <vt5q9f$1342t$1@news.tcpreset.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnvvctt7.b1sb.rayban@raybanana.net>
Subject: Re: inn, cleanfeed and ipv6
Date: Wed, 09 Apr 2025 13:35:35 +0000
From: Ray Banana <rayban@raybanana.net>
References: <67f47ca5$1@news.ausics.net> <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!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!raybanana.dont-email.me!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: A noiseless patient Spider
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 09 Apr 2025 15:35:35 +0200 (CEST)
Injection-Info: raybanana.dont-email.me; posting-host="d3b5a9234c27fdeed238397157d9d361";
 logging-data="744862"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JxaD5Myasb+899KRoAZnmOEDUnEQh1uc="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:YAkHmk7oQAU7TzZKiryYUYI82a8=