Article View: news.software.nntp
Article #92955Re: [ANNOUNCE] cleanfeed-ng GitHub repository and 2026-07-03 RC1
From: Kevin Bowling
Date: Fri, 17 Jul 2026 05:54
Date: Fri, 17 Jul 2026 05:54
86 lines
5136 bytes
5136 bytes
On 7/16/26 16:42, Ivo Gandolfo wrote: > Il 16/07/2026 23:12, Kevin Bowling ha scritto: > >> I was looking into these servers a bit to see how they worked, and one >> interesting thing in Typhoon and Diablo wrt CleanFeed: both daemons >> share the same filter ABI, although Diablo doesn't have the FastFilter >> shm option. Typhoon is heavily threaded, per connection and some >> helper pools, so filter and auth run in helper pools so you don't have >> to wait for exec perl every time. > > Al lot of difference between INN and that. > >> I guess cleanfeed could regrow that support. Not sure it matters on >> inn (currently) because perl is embedded and single process/thread but >> something to consider if that changes. >> > > this is much more interesting than I initially expected. > > If Diablo and Typhoon really share that FastFilter ABI, then supporting > them does not look like a complete port of cleanfeed-ng. The filtering > engine itself only needs an article, its headers and body, and must > eventually produce an accept or reject decision. Fair warning that I've never used Diablo or Typhoon, I only was looking at them to see if they had any interesting tricks. My understanding is Diablo _copied_ Typhoon's (or whatever other product name it used) API because that was established, and cleanfeed actually supported this back in the day. Looking back at old cleanfeed code, it doesn't look like it had any special FastFilter code, so it must have been a shim that Typhoon would provide (and Diablo could easily implement if people still work on it -- the exec for a perl script per article is expensive compared to Typhoon). > > The main difference is therefore not the filtering logic, but the host > adapter: > > * INN embeds Perl inside innd and directly provides the article data and > INN logging functions; > * FastFilter runs as an external persistent process, retrieves the raw > article from shared memory and returns a 335 or 435 response. It looks like it just passes the full message so only what is in headers and body: https://github.com/jpmens/diablo/blob/master/filter/diab-filter.c > A possible design would be to keep one common cleanfeed-ng engine and > provide two adapters: > > INN adapter > FastFilter adapter for Diablo/Typhoon > > The FastFilter adapter would handle the handshake, shared-memory access, > raw article parsing, logging and conversion of the cleanfeed-ng result > into the 335/435 wire response. > > There are a few details that still need investigation. > > Does the FastFilter interface expose the identity of the incoming > peer/feed, or only the raw article and Message-ID? > > That matters because cleanfeed-ng has optional peer-based policies. > Audit mode can easily be implemented by logging a finding and returning > 335, but quarantine may not have a direct equivalent if the ABI only > supports accept and reject. > > Another point is worker state. If Diablo or Typhoon runs several filter > helpers, each process would have its own caches, counters, EMP state and > rate-limit data. Local caches are fine, but global state and persistent > files would need to be handled carefully without adding expensive IPC to > the article path. > > If the Diablo adapter works cleanly, Typhoon compatibility may follow > from the shared ABI, although it should still be tested on a real > installation before being documented as supported, but in one case it's > need to pay, and I don't think it's necessary to spend time and money on > that, HW don't filter anything. > > > > Sincerely, > > -- > Ivo Gandolfo
Technical Details
Message-ID:
<113cg31$q95$1@csiph.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!csiph.com!.POSTED.172.83.103.228!not-for-mailReferences:
<11306rt$3l5ob$1@paganini.bofh.team> <11369ml$1couf$1@paganini.bofh.team> <1138s4p$c5c9$1@news.trigofacile.com> <113b7gg$2256f$1@paganini.bofh.team> <113bfcc$dsa$1@omnios-inn.blueworldhosting.com> <113bhf8$1g6$1@csiph.com> <113bq9g$2256e$4@paganini.bofh.team>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!csiph.com!.POSTED.172.83.103.228!not-for-mail From: Kevin Bowling <kevin.bowling@kev009.com> Newsgroups: news.software.nntp Subject: Re: [ANNOUNCE] cleanfeed-ng GitHub repository and 2026-07-03 RC1 Date: Thu, 16 Jul 2026 22:54:41 -0700 Organization: csiph.com Internet News Service Message-ID: <113cg31$q95$1@csiph.com> References: <11306rt$3l5ob$1@paganini.bofh.team> <11369ml$1couf$1@paganini.bofh.team> <1138s4p$c5c9$1@news.trigofacile.com> <113b7gg$2256f$1@paganini.bofh.team> <113bfcc$dsa$1@omnios-inn.blueworldhosting.com> <113bhf8$1g6$1@csiph.com> <113bq9g$2256e$4@paganini.bofh.team> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 17 Jul 2026 05:54:42 -0000 (UTC) Injection-Info: csiph.com; posting-host="172.83.103.228"; logging-data="26917"; mail-complaints-to="admin@kev009.com" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:vjOELqR6VU/NNi4nBUtiCxxCyWM= sha256:Ppqx6eXgZIY+eGF+KzNtf0NCTPvgXYPftonWtGHSkRM= sha1:uNWVFAve4UoarxKHJKg7dAAhcF0= sha256:4Zo1X1wObdzmo/OwFYiwqgnimg1Uan7bucPXLj2vZpI= Content-Language: en-US In-Reply-To: <113bq9g$2256e$4@paganini.bofh.team>