Thread View: news.software.nntp
13 messages
13 total messages
Started by Troy Piggins
Wed, 17 May 2006 22:30
[leafnode] filter examples
Author: Troy Piggins
Date: Wed, 17 May 2006 22:30
Date: Wed, 17 May 2006 22:30
11 lines
1313 bytes
1313 bytes
Got my leafnode server up and running smooth. Liking it so far. Just wondering if anyone has some sample filters to post or links? The 2 line sample filters provided with the package are pretty simplified. I'll come up with some of my own but no need to reinvent the wheel I reckon. -- Troy Piggins RLU#415538 <http://counter.li.org> My dogma just ran over my karma
Re: [leafnode] filter examples
Author: Nulla
Date: Thu, 18 May 2006 06:53
Date: Thu, 18 May 2006 06:53
6 lines
1302 bytes
1302 bytes
On Thu, 18 May 2006 08:30:28 +1000, Troy Piggins wrote: > Just wondering if anyone has some sample filters to post or links? http://news.aioe.org/article.php3?id_article=5
Re: [leafnode] filter examples
Author: Troy Piggins
Date: Thu, 18 May 2006 07:25
Date: Thu, 18 May 2006 07:25
21 lines
1633 bytes
1633 bytes
* Nulla wrote: > On Thu, 18 May 2006 08:30:28 +1000, Troy Piggins wrote: > >> Just wondering if anyone has some sample filters to post or links? > > http://news.aioe.org/article.php3?id_article=5 Thanks for the link. Had a read but it doesn't have any filters, just config examples. I mean more examples for my /etc/news/leafnode/filters file: -----8<----- ^Newsgroups:.*[, ]alt.flame$ ^Newsgroups:.*[, ]alt.flame, ^Newsgroups:.*(alt\.surrealism|alt\.pro-wrestling\.wwf|religion).* -----8<----- -- Troy Piggins RLU#415538 <http://counter.li.org> My dogma just ran over my karma
Re: [leafnode] filter examples
Author: Whiskers
Date: Thu, 18 May 2006 11:58
Date: Thu, 18 May 2006 11:58
78 lines
4266 bytes
4266 bytes
On 2006-05-17, Troy Piggins <usenet-0605@piggo.com> wrote: > Got my leafnode server up and running smooth. Liking it so far. > > Just wondering if anyone has some sample filters to post or links? > > The 2 line sample filters provided with the package are pretty > simplified. I'll come up with some of my own but no need to reinvent > the wheel I reckon. People may be reluctant to reveal their filter files, for fear that the clowns they are successfully blocking will find clues to enable them to by-pass the existing filters. However, I'll risk it: .-----[ /etc/leafnode/filters ] | ^Newsgroups:.*[, ]alt.nuke.the.usa$ | ^Newsgroups:.*[, ]alt.nuke.the.usa, | | ^Newsgroups:.*[, ]rec.ponds$ | ^Newsgroups:.*[, ]rec.ponds, | | ^Newsgroups:.*[, ]alt.religion.jehovahs-witn$ | ^Newsgroups:.*[, ]alt.religion.jehovahs-witn, | | ^Newsgroups:.*[, ]comp.os.linux.advocacy$ | ^Newsgroups:.*[, ]comp.os.linux.advocacy, | | ^Newsgroups:.*[, ]talk.politics.guns$ | ^Newsgroups:.*[, ]talk.politics.guns, | | ^Newsgroups:.*[, ]alt.os.widows-xp$ | ^Newsgroups:.*[, ]alt.os.widows-xp, | | ^Newsgroups:.*[, ]alt.troll$ | ^Newsgroups:.*[, ]alt.troll, | | ^Followup-To:.*[, ]uk.local.essx$ | ^Followup-To:.*[, ]uk.local.essx, | | ^Path:.*[!]133.256.1.103.MISMATCH!not-for-mail$ | ^Path:.*[!]218.102.48.125.MISMATCH!127.0.0.1!not-for-mail$ | ^Path:.*[!]news.alt.net!usenet.dk!news$ | ^Path:.*[!]mail2news$ | ^Path:.*[!]news.bananasplit.info!nym2news | ^Path:.*[!]257.2.2.193.Mi5M4tcH$ '----- My filters are to block some particular cross-posting nuisances, and those 'mail to news gateways' and 'anonymous posting services' or other servers (real or fake) that seem to me to be used so heavily for negative purposes that I'll risk missing any 'legitimate' article that might be posted that way. Other people will probably have quite different ideas about what to block. I benefit from using upstream servers that have effective 'anti-spam' and 'anti-flood' filtering of their own, otherwise my filters file would have to be a lot bigger and more complex. Obviously, if you want to subscribe to a group that is plagued by cross-posting trolls, your filters need to be a lot more subtle and selective - and are probably best done using your usenet client rather than leafnode. Note that using any element to filter on, that is not included in the 'overview', is known as 'expensive' filtering as it requires that the whole body be fetched before the filter can be applied - thus not saving any bandwidth compared with not having the filter in place, and making the fetch operation take longer. You can see what the overview does contain by looking at leafnode's own overview files, eg /var/spool/news/news/software/nntp/.overview - the first entry on each line is the local article number, and the rest of the line is each of the 'overview headers' (missing the name of the header, so you have to do some interpretation to work out what's there). -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [leafnode] filter examples
Author: Frank Slootweg
Date: Thu, 18 May 2006 17:50
Date: Thu, 18 May 2006 17:50
40 lines
2236 bytes
2236 bytes
Whiskers <catwheezel@operamail.com> wrote: [deleted] > You can see what the overview does contain by looking at leafnode's own > overview files, eg /var/spool/news/news/software/nntp/.overview - the > first entry on each line is the local article number, and the rest of the > line is each of the 'overview headers' (missing the name of the header, so > you have to do some interpretation to work out what's there). Assuming that leafnode works like a normal News server, it should be possible to do this a little bit easier, like: $ telnet localhost nntp [...] authinfo user username [...] authinfo pass password [...] list overview.fmt 215 information follows Subject: From: Date: Message-ID: References: Bytes: Lines: Xref:full .. quit [...] $ Note that one will probably not have any command editing (like backspace) available, so if you make an error, just press Return and start over. If you make an error in the authinfo part, you may have to start again at "authinfo user ...". Of course "username" and "password" have to be replaced by the real username and password. I hope this helps.
Re: [leafnode] filter examples
Author: Whiskers
Date: Thu, 18 May 2006 20:08
Date: Thu, 18 May 2006 20:08
50 lines
2655 bytes
2655 bytes
On 2006-05-18, Frank Slootweg <this@ddress.is.invalid> wrote: > Whiskers <catwheezel@operamail.com> wrote: > [deleted] > >> You can see what the overview does contain by looking at leafnode's own >> overview files, eg /var/spool/news/news/software/nntp/.overview - the >> first entry on each line is the local article number, and the rest of the >> line is each of the 'overview headers' (missing the name of the header, so >> you have to do some interpretation to work out what's there). > > Assuming that leafnode works like a normal News server, it should be > possible to do this a little bit easier, like: > > $ telnet localhost nntp > [...] snip Today's new thing learned :)) [mark@tavy ~]$ telnet localhost nntp Trying 127.0.0.1... Connected to tavy.mobile.private (127.0.0.1). Escape character is '^]'. 200 Leafnode NNTP Daemon, version 1.10.4.rel running at tavy.mobile.private (my fqdn: ID-107770.user.individual.net) list overview.fmt 215 information follows Subject: From: Date: Message-ID: References: Bytes: Lines: Xref:full .. quit 205 Always happy to serve! Connection closed by foreign host. [mark@tavy ~]$ Leafnode doesn't do any 'authorisation' for itself - it's only meant for local use. It is an inetd or xinetd daemon. (Current stable release is 1.11.5 - version 2 is in alpha development). -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [leafnode] filter examples
Author: Ben Shimmin
Date: Thu, 18 May 2006 21:14
Date: Thu, 18 May 2006 21:14
20 lines
1628 bytes
1628 bytes
Whiskers <catwheezel@operamail.com>:
[overview.fmt]
> Leafnode doesn't do any 'authorisation'
`authentication'
> for itself - it's only meant for
> local use. It is an inetd or xinetd daemon.
Or a LaunchDaemon if you use a Mac.
b.
--
<bas@bas.me.uk> <URL:http://bas.me.uk/>
`Imagine the world's leaders on pills.
And imagine the morning after.'
-- Mike Skinner
Re: [leafnode] filter examples
Author: Troy Piggins
Date: Fri, 19 May 2006 11:44
Date: Fri, 19 May 2006 11:44
58 lines
3697 bytes
3697 bytes
* Whiskers wrote: > On 2006-05-17, Troy Piggins <usenet-0605@piggo.com> wrote: >> Got my leafnode server up and running smooth. Liking it so far. >> >> Just wondering if anyone has some sample filters to post or links? >> >> The 2 line sample filters provided with the package are pretty >> simplified. I'll come up with some of my own but no need to reinvent >> the wheel I reckon. > > People may be reluctant to reveal their filter files, for fear that the > clowns they are successfully blocking will find clues to enable them to > by-pass the existing filters. However, I'll risk it: I thought about that after posting. Thanks for taking the risk... > .-----[ /etc/leafnode/filters ] [snip] > > My filters are to block some particular cross-posting nuisances, and those > 'mail to news gateways' and 'anonymous posting services' or other servers > (real or fake) that seem to me to be used so heavily for negative purposes > that I'll risk missing any 'legitimate' article that might be posted that > way. Other people will probably have quite different ideas about what to > block. > > I benefit from using upstream servers that have effective 'anti-spam' and > 'anti-flood' filtering of their own, otherwise my filters file would have > to be a lot bigger and more complex. > > Obviously, if you want to subscribe to a group that is plagued by > cross-posting trolls, your filters need to be a lot more subtle and > selective - and are probably best done using your usenet client rather > than leafnode. Yes. I have some extensive/selective scorefile entries in slrn. > Note that using any element to filter on, that is not included in the > 'overview', is known as 'expensive' filtering as it requires that the > whole body be fetched before the filter can be applied - thus not saving > any bandwidth compared with not having the filter in place, and making the > fetch operation take longer. Yeah I tweaked that on mine just recently. I had some scores based on Newsgroups header that were slowing things down. Changed those and all good now (in slrn I am talking about). > You can see what the overview does contain by looking at leafnode's own > overview files, eg /var/spool/news/news/software/nntp/.overview - the > first entry on each line is the local article number, and the rest of the > line is each of the 'overview headers' (missing the name of the header, so > you have to do some interpretation to work out what's there). THanks. I'll peek at them to familiarise myself. -- Troy Piggins RLU#415538 <http://counter.li.org> My dogma just ran over my karma
Re: [leafnode] filter examples
Author: Troy Piggins
Date: Fri, 19 May 2006 11:46
Date: Fri, 19 May 2006 11:46
47 lines
2423 bytes
2423 bytes
* Frank Slootweg wrote: > Whiskers <catwheezel@operamail.com> wrote: > [deleted] > >> You can see what the overview does contain by looking at leafnode's own >> overview files, eg /var/spool/news/news/software/nntp/.overview - the >> first entry on each line is the local article number, and the rest of the >> line is each of the 'overview headers' (missing the name of the header, so >> you have to do some interpretation to work out what's there). > > Assuming that leafnode works like a normal News server, it should be > possible to do this a little bit easier, like: > > $ telnet localhost nntp > [...] > authinfo user username > [...] > authinfo pass password > [...] > list overview.fmt > 215 information follows > Subject: > From: > Date: > Message-ID: > References: > Bytes: > Lines: > Xref:full > . > quit > [...] > $ > > Note that one will probably not have any command editing (like > backspace) available, so if you make an error, just press Return and > start over. If you make an error in the authinfo part, you may have to > start again at "authinfo user ...". Of course "username" and "password" > have to be replaced by the real username and password. > > I hope this helps. Thanks Frank. -- Troy Piggins RLU#415538 <http://counter.li.org> My dogma just ran over my karma
Re: [leafnode] filter examples
Author: Alan Connor
Date: Fri, 19 May 2006 20:57
Date: Fri, 19 May 2006 20:57
31 lines
2094 bytes
2094 bytes
On news.software.nntp, in <20060518082558@usenet.piggo.com>, "Troy Piggins" wrote: > Got my leafnode server up and running smooth. Liking it so > far. > > Just wondering if anyone has some sample filters to post or > links? > > The 2 line sample filters provided with the package are pretty > simplified. I'll come up with some of my own but no need to > reinvent the wheel I reckon. What's your impression of leafnode's scoring compared with that of slrn's so far, Troy? As an aside: Wouldn't it be grand to have a 'slrnpull-equivalent' that would allow us to download posts through procmail? (post download filtering with procmail is clumsy as hell) I've tried to get the slrn maintainers interested into incorporating such an option into slrn/slrnpull, but no luck. Alan -- http://home.earthlink.net/~alanconnor/contact.html Other URLs of possible interest in my headers.
Re: [leafnode] filter examples
Author: Troy Piggins
Date: Fri, 19 May 2006 21:29
Date: Fri, 19 May 2006 21:29
76 lines
3504 bytes
3504 bytes
* Alan Connor wrote:
> On news.software.nntp, in <20060518082558@usenet.piggo.com>,
> "Troy Piggins" wrote:
>
>> Got my leafnode server up and running smooth. Liking it so
>> far.
>>
>> Just wondering if anyone has some sample filters to post or
>> links?
>>
>> The 2 line sample filters provided with the package are pretty
>> simplified. I'll come up with some of my own but no need to
>> reinvent the wheel I reckon.
>
> What's your impression of leafnode's scoring compared with
> that of slrn's so far, Troy?
It's not really scoring, but rather a filter.
There's basically a file with one line regexes to match headers, and if
a post matches those headers it isn't downloaded. That's my rather
simplified view of it.
For detailed scoring I still use slrn.
> As an aside: Wouldn't it be grand to have a
> 'slrnpull-equivalent' that would allow us to download
> posts through procmail?
>
> (post download filtering with procmail is clumsy as hell)
Just need the ability to pipe messages through some program. Leafnode
can't do that either from what I've seen so far.
I've only just discovered this protocol called NoCeM for stopping spam.
http://www.cm.org/
Seems interesting concept. Looks like it's been around a while but it's
new to me. My basic understanding is that when a spam message posted to
news servers gets discovered, a post (automated?) gets made to some
dedicated (and moderated?) newsgroups like news.lists.filters and
alt.nocem.misc This post's body has some code in it like this:
-----8<-----
@@BEGIN NCM HEADERS
Version: 0.93
Issuer: crosspost-stopper@khms.westfalen.de
Type: velveeta
Threshold: 30
Action: hide
Count: 2
Notice-ID: crosspost-stopper#20060519223311
@@BEGIN NCM BODY
<446e216a$0$1215$9a6e19ea@news.newshosting.com> alt.atheism
alt.current-events.clinton.whitewater
alt.philosophy
alt.religion.christian.roman-catholic
alt.society.liberalism
sci.skeptic
<jgkeegan-B35704.16205319052006@individual.net> alt.politics.greens
alt.atheism
alt.abortion
alt.bible
talk.politics.animals
talk.abortion
@@END NCM BODY
-----8<-----
which I assume others can use to handle the same messages. Sort of
like sharing filters.
Haven't found anywhere if it can be used with leafnode but still looking
ATM.
--
Troy Piggins RLU#415538 <http://counter.li.org>
My dogma just ran over my karma
Re: [leafnode] filter examples
Author: Alan Connor
Date: Fri, 19 May 2006 23:19
Date: Fri, 19 May 2006 23:19
104 lines
4409 bytes
4409 bytes
On news.software.nntp, in <20060520070603@usenet.piggo.com>, "Troy Piggins" wrote: > * Alan Connor wrote: > >> On news.software.nntp, in <20060518082558@usenet.piggo.com>, >> "Troy Piggins" wrote: >> <snip> >> >> What's your impression of leafnode's scoring compared with >> that of slrn's so far, Troy? > > It's not really scoring, but rather a filter. There's > basically a file with one line regexes to match headers, and if > a post matches those headers it isn't downloaded. That's my > rather simplified view of it. How are the regexes? Limited like slrn's or like egrep? Do you have this: http://www.s-lang.org/doc/html/slang-20.html ? I've heard rumors that one can write a slrn macro that will pipe posts through other utilities. Probably as slow as procmail post-download filtering. I still haven't found the script here for that. Maybe it could be speeded up with fifos instead of temp files. > > For detailed scoring I still use slrn. > >> As an aside: Wouldn't it be grand to have a >> 'slrnpull-equivalent' that would allow us to download posts >> through procmail? >> >> (post download filtering with procmail is clumsy as hell) > > Just need the ability to pipe messages through some program. > Leafnode can't do that either from what I've seen so far. Exactly. I am tempted to write a bash script substitute for slrnpull (using netcat) that will do just that, keeping the $SLRNPULL_ROOT just like it is for slrn to read from. Wouldn't be _that_ difficult. I already have a bash SMTP script and POP script. They are very fast. > > I've only just discovered this protocol called NoCeM for > stopping spam. http://www.cm.org/ > > Seems interesting concept. Looks like it's been around a while > but it's new to me. My basic understanding is that when a > spam message posted to news servers gets discovered, a post > (automated?) gets made to some dedicated (and moderated?) > newsgroups like news.lists.filters and alt.nocem.misc This > post's body has some code in it like this: > > -----8<----- > @@BEGIN NCM HEADERS > Version: 0.93 > Issuer: crosspost-stopper@khms.westfalen.de > Type: velveeta > Threshold: 30 > Action: hide > Count: 2 > Notice-ID: crosspost-stopper#20060519223311 > @@BEGIN NCM BODY ><446e216a$0$1215$9a6e19ea@news.newshosting.com> alt.atheism > alt.current-events.clinton.whitewater > alt.philosophy > alt.religion.christian.roman-catholic > alt.society.liberalism > sci.skeptic ><jgkeegan-B35704.16205319052006@individual.net> alt.politics.greens > alt.atheism > alt.abortion > alt.bible > talk.politics.animals > talk.abortion > @@END NCM BODY > -----8<----- > > which I assume others can use to handle the same messages. Sort of > like sharing filters. > > Haven't found anywhere if it can be used with leafnode but still looking > ATM. That's interesting, Troy. But it looks cumbersome. Keep us posted. Alan -- http://home.earthlink.net/~alanconnor/contact.html Other URLs of possible interest in my headers.
Re: [leafnode] filter examples
Author: Troy Piggins
Date: Sat, 20 May 2006 02:19
Date: Sat, 20 May 2006 02:19
43 lines
2206 bytes
2206 bytes
* Alan Connor wrote: > On news.software.nntp, in <20060520070603@usenet.piggo.com>, > "Troy Piggins" wrote: > >> * Alan Connor wrote: >> >>> On news.software.nntp, in <20060518082558@usenet.piggo.com>, >>> "Troy Piggins" wrote: >>> ><snip> >>> >>> What's your impression of leafnode's scoring compared with >>> that of slrn's so far, Troy? >> >> It's not really scoring, but rather a filter. There's >> basically a file with one line regexes to match headers, and if >> a post matches those headers it isn't downloaded. That's my >> rather simplified view of it. > > How are the regexes? Limited like slrn's or like egrep? Based on perl regexes: man pcre > Do you have this: > > http://www.s-lang.org/doc/html/slang-20.html Yep. > I've heard rumors that one can write a slrn macro that will > pipe posts through other utilities. Probably as slow as > procmail post-download filtering. There's a pipe_article function, or you can open and operate on pipes with popen. [snip] -- Troy Piggins RLU#415538 <http://counter.li.org> My dogma just ran over my karma
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