Thread View: news.software.nntp
22 messages
22 total messages
Started by Julien ÉLIE
Fri, 11 Apr 2008 22:26
Cleanfeed bad hosts central
Author: Julien ÉLIE
Date: Fri, 11 Apr 2008 22:26
Date: Fri, 11 Apr 2008 22:26
19 lines
1569 bytes
1569 bytes
Hi,
Would it be possible to know how the bad_hosts_central file is updated?
http://www.mixmin.net/bad_hosts_central
It has been blocking all the NoCeM notices sent by Xavier Roche since
Monday, 7th:
437 Bad host (192.168.1.100)
Is there another problem with that IP?
--
Julien ÉLIE
« Bibite, fratres, bibite, ne diauolus uos otiosos inueniat. »
Re: Cleanfeed bad hosts central
Author: Bozweb
Date: Fri, 11 Apr 2008 22:35
Date: Fri, 11 Apr 2008 22:35
10 lines
1317 bytes
1317 bytes
On Sat, 12 Apr 2008 00:26:26 +0200, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >192.168.1.100 I think 192.168.1.100 is a internal ip :-) -- Posted by: news.bozweb.net http://www.bozweb.net/
Re: Cleanfeed bad hosts central
Author: user
Date: Fri, 11 Apr 2008 23:58
Date: Fri, 11 Apr 2008 23:58
18 lines
1517 bytes
1517 bytes
On Sat, 12 Apr 2008 00:26:26 +0200, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >Hi, > >Would it be possible to know how the bad_hosts_central file is updated? > > http://www.mixmin.net/bad_hosts_central > >It has been blocking all the NoCeM notices sent by Xavier Roche since >Monday, 7th: > > 437 Bad host (192.168.1.100) > > >Is there another problem with that IP? It shouldn't be there. It's a LAN address
Re: Cleanfeed bad hosts central
Author: Julien ÉLIE
Date: Sat, 12 Apr 2008 06:16
Date: Sat, 12 Apr 2008 06:16
13 lines
1631 bytes
1631 bytes
Hi Bozweb, >>192.168.1.100 > I think 192.168.1.100 is a internal ip :-) Sure but it is allowed in NNTP-Posting-Host:, isn't it? (If someone only has a private IP, it is its NNTP-Posting-Host.) -- Julien ÉLIE « Science sans conscience n'est que ruine de l'âme. » (Rabelais)
Re: Cleanfeed bad hosts central
Author: Ray Banana
Date: Sat, 12 Apr 2008 06:41
Date: Sat, 12 Apr 2008 06:41
18 lines
2204 bytes
2204 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> >>>192.168.1.100 >> I think 192.168.1.100 is a internal ip :-) > Sure but it is allowed in NNTP-Posting-Host:, isn't it? > (If someone only has a private IP, it is its NNTP-Posting-Host.) It may be allowed in the NNTP-Posting-Host: header, but it's utterly useless for filtering, as such posts may originate from just any private network anywhere in the world. So the question is, should Cleanfeed accept all posts with a RFC1918 type address in the NNTP-Posting-Host: header or should it reject them. Rejecting them is likely to create lots of false positives. -- Too many ingredients in the soup, no room for a spoon. http://news.motzarella.org
Re: Cleanfeed bad hosts central
Author: Xavier Roche
Date: Sat, 12 Apr 2008 09:30
Date: Sat, 12 Apr 2008 09:30
10 lines
1635 bytes
1635 bytes
Julien ÉLIE a écrit : > It has been blocking all the NoCeM notices sent by Xavier Roche since > Monday, 7th: > 437 Bad host (192.168.1.100) I suppose this was triggered by the high number of notices ? (two notices per minute, with associated cancels) (Anyway filtering a private address is a bit weird - I can drop the NNTP-Posting-Host if necessary)
Re: Cleanfeed bad hosts central
Author: D. Stussy
Date: Sun, 13 Apr 2008 00:55
Date: Sun, 13 Apr 2008 00:55
25 lines
2413 bytes
2413 bytes
"Ray Banana" <rayban@banana.shacknet.nu> wrote in message news:80mynzfucl.fsf@banana.shacknet.nu... > Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> > >>>192.168.1.100 > >> I think 192.168.1.100 is a internal ip :-) > > Sure but it is allowed in NNTP-Posting-Host:, isn't it? > > (If someone only has a private IP, it is its NNTP-Posting-Host.) > > It may be allowed in the NNTP-Posting-Host: header, but it's utterly > useless for filtering, as such posts may originate from just any private > network anywhere in the world. > > So the question is, should Cleanfeed accept all posts with a RFC1918 > type address in the NNTP-Posting-Host: header or should it reject > them. Rejecting them is likely to create lots of false positives. In my opinion, RFC1918 private addresses may be used as a blocking criterion but ONLY IN COMBINATION with other criteria, such as the originating server's identity. As a stand-alone item, it should be permitted. This is similar to the situation for e-mail where the sender is "<>". There, one may not disallow the posting solely on that criterion, but may find another reason to reject it.
Re: Cleanfeed bad hosts central
Author: Steve
Date: Mon, 14 Apr 2008 10:53
Date: Mon, 14 Apr 2008 10:53
29 lines
2168 bytes
2168 bytes
On Sat, 12 Apr 2008 00:26:26 +0200, Julien ÉLIE wrote in
Message-Id: <ftooii$nb4$1@news.trigofacile.com>:
> Would it be possible to know how the bad_hosts_central file is updated?
It works by counting the number of articles rejected by various other
filters, at the moment it's only seeded by the cleanfeed EMP filters on
news.mixmin.net.
> It has been blocking all the NoCeM notices sent by Xavier Roche since
> Monday, 7th:
Yes, I noticed that too. There are two issues here:
Firstly, the IP address if private. I don't know if there's a policy on
whether these should be given special treatment on Usenet but at the
moment I'm treating them the same as any other address. This resulted
in Xavier's address getting listed because of the sheer volume of NOCEM
messages.
Second, Cleanfeed currently makes no exceptions for NOCEM messages.
Regardless of the address, most of Xavier's messages would be rejected
by Cleanfeed even without the bad_hosts_central file because of the
volume.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Cleanfeed bad hosts central
Author: Steve
Date: Mon, 14 Apr 2008 11:00
Date: Mon, 14 Apr 2008 11:00
17 lines
1577 bytes
1577 bytes
On Sat, 12 Apr 2008 11:30:09 +0200, Xavier Roche wrote in
Message-Id: <ftpvei$i6k$2@news.httrack.net>:
> (Anyway filtering a private address is a bit weird - I can drop the
> NNTP-Posting-Host if necessary)
Hi Xavier,
This probably isn't the best solution. I think there should be an
exception rule for NOCEM messages. Please see my response to Julien in
this thread.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Cleanfeed bad hosts central
Author: Steve
Date: Mon, 14 Apr 2008 11:19
Date: Mon, 14 Apr 2008 11:19
18 lines
1829 bytes
1829 bytes
On Sat, 12 Apr 2008 08:16:29 +0200, Julien ÉLIE wrote in
Message-Id: <ftpk3u$uk2$1@news.trigofacile.com>:
>> I think 192.168.1.100 is a internal ip :-)
>
> Sure but it is allowed in NNTP-Posting-Host:, isn't it?
> (If someone only has a private IP, it is its NNTP-Posting-Host.)
I run an INN service on a NAT'ed private address but rewrite the
NNTP-Posting-Host header to the Internet facing address. This currently
involves using a filter_nnrpd.pl script. It would be more practical if
there was a config option on the server to hardcode the address in
NNTP-Posting-Host / X-Trace headers.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Cleanfeed bad hosts central
Author: Xavier Roche
Date: Mon, 14 Apr 2008 16:20
Date: Mon, 14 Apr 2008 16:20
12 lines
1728 bytes
1728 bytes
Steve a écrit : > Second, Cleanfeed currently makes no exceptions for NOCEM messages. It could make exception based on a list of groups (news.lists.filters et al) > Regardless of the address, most of Xavier's messages would be rejected > by Cleanfeed even without the bad_hosts_central file because of the > volume. Humm, what is the threshold of this filter ? With two messaes/minute, the cleanfeed installs I just checked do not seem to have blocked the notices.
Re: Cleanfeed bad hosts central
Author: Xavier Roche
Date: Mon, 14 Apr 2008 16:21
Date: Mon, 14 Apr 2008 16:21
9 lines
1606 bytes
1606 bytes
Steve a écrit : > This probably isn't the best solution. This is probably not the definitive solution, actually, but advertising private addresses is probably not a good idea anyway. I can also generate an unique from based on the nocem notice id, but this may cause problems to the nocem script if the sender does not match the notice sender ?
Re: Cleanfeed bad hosts central
Author: Steve
Date: Mon, 14 Apr 2008 17:51
Date: Mon, 14 Apr 2008 17:51
23 lines
2033 bytes
2033 bytes
On Mon, 14 Apr 2008 18:20:14 +0200, Xavier Roche wrote in
Message-Id: <fu007u$k5j$1@news.httrack.net>:
> It could make exception based on a list of groups (news.lists.filters et al)
I excluded that group from EMP filtering a few days ago when I realised
your messages were getting caught. The problem was actually chinese
spam. :)
I created a local cleanfeed recipe to catch all that spam for handbags
and watches. Unfortunately your NOCEM messages also matched my
filter which in turn led to 192.168.1.100 getting added to the
bad_hosts_central file. I've now excluded news.lists.filters from that
filter as well so it shouldn't happen again.
Spam reporting groups as a rule don't get caught in Cleanfeed filters,
it was an error on my part that the local recipe I wrote didn't exclude
them.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Cleanfeed bad hosts central
Author: Xavier Roche
Date: Mon, 14 Apr 2008 17:59
Date: Mon, 14 Apr 2008 17:59
12 lines
1819 bytes
1819 bytes
Steve a écrit : > I created a local cleanfeed recipe to catch all that spam for handbags > and watches. Humm, isn't it quite difficult to update as standalone script ? (the content/websites are very volatile - I see new registered domains almost every day) Regarding the spams, based on nocem notices frequency (2/minutes) and announce average size (3 articles), we now reach 10,000 spams/day only for bags/watches. Maybe we should do something, especially for users accessing usenet through unfiltered servers (yuk)..
Re: Cleanfeed bad hosts central
Author: Steve
Date: Mon, 14 Apr 2008 18:01
Date: Mon, 14 Apr 2008 18:01
21 lines
1935 bytes
1935 bytes
On Mon, 14 Apr 2008 18:21:49 +0200, Xavier Roche wrote in
Message-Id: <fu00at$k5j$2@news.httrack.net>:
> This is probably not the definitive solution, actually, but advertising
> private addresses is probably not a good idea anyway.
Agreed, it would be better if you could use your Internet facing address
in the NNTP-Posting-Host header, or even leave it out completely if you
prefer.
> I can also generate an unique from based on the nocem notice id, but
> this may cause problems to the nocem script if the sender does not match
> the notice sender ?
I'd suggest keeping your current From header, it makes your messages
easily identifiable for both humans and scripts.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: Cleanfeed bad hosts central
Author: Xavier Roche
Date: Mon, 14 Apr 2008 18:05
Date: Mon, 14 Apr 2008 18:05
14 lines
1889 bytes
1889 bytes
Steve a écrit : > Agreed, it would be better if you could use your Internet facing address > in the NNTP-Posting-Host header, or even leave it out completely if you > prefer. I dropped it - there only very few users anyway, and the architecture is a bit messy (with different scripts running on different servers) > I'd suggest keeping your current From header, it makes your messages > easily identifiable for both humans and scripts. I could also be less aggressive, and publish something like every 10 minutes. But this will defeat the purpose of a realtime filter a bit.
Re: Cleanfeed bad hosts central
Author: Xavier Roche
Date: Mon, 14 Apr 2008 18:06
Date: Mon, 14 Apr 2008 18:06
16 lines
2000 bytes
2000 bytes
Steve a écrit : > Agreed, it would be better if you could use your Internet facing address > in the NNTP-Posting-Host header, or even leave it out completely if you > prefer. I dropped it - there are only very few users anyway (and the architecture is a bit messy, with different scripts running on different servers) > I'd suggest keeping your current From header, it makes your messages > easily identifiable for both humans and scripts. I could also be less aggressive, and publish something like every 10 minutes. But this will defeat a bit the purpose of a realtime filter IMHO.
Re: Cleanfeed bad hosts central
Author: Steve
Date: Mon, 14 Apr 2008 18:16
Date: Mon, 14 Apr 2008 18:16
41 lines
2724 bytes
2724 bytes
On Mon, 14 Apr 2008 19:59:22 +0200, Xavier Roche wrote in
Message-Id: <fu061r$k5j$3@news.httrack.net>:
> Humm, isn't it quite difficult to update as standalone script ? (the
> content/websites are very volatile - I see new registered domains almost
> every day)
I just used the following crude method:-
if (not $hdr{References} and $hdr{Newsgroups} !~ /$spam_report_groups/) {
if ($hdr{__BODY__} =~ /www\.\S*(?:
replica|shoes|watches|wholesale
)\S*\.\w{2}/imx) {
saveart('url');
return reject('URL Rejected');
};
if ($hdr{Subject} =~ /
cheap.*wholesale
| wholesale.*cheap/imx) {
saveart('subject');
return reject('Subject Rejected');
};
};
This was okay for my server as I don't care too much about catching url's
about shoes that aren't specifically spam. My error was not excluding
my home-brew filter from seeding the bad_hosts_central file.
> Regarding the spams, based on nocem notices frequency (2/minutes) and
> announce average size (3 articles), we now reach 10,000 spams/day only
> for bags/watches. Maybe we should do something, especially for users
> accessing usenet through unfiltered servers (yuk)..
It would really help if Google was a little more pro-active in filtering
this kind of junk at source. I'm aware of Usenet users who are now
kill-filing everything originating from their service.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
controlcancel.pl
Author: kjell
Date: Mon, 14 Apr 2008 18:19
Date: Mon, 14 Apr 2008 18:19
132 lines
4256 bytes
4256 bytes
I'm trying to run this script on my INN server.
http://www.df.lth.se/~mikaelb/control.cancel/controlcancel.txt
Help please!
I get this error "NNTPERROR: 502 Permission denied"
after this line "my ($first, $last) = $c->group("control.cancel");"
I get this error "NNTPERROR: 412 Not in a newsgroup"
after this line "for(; $last >= $first; --$last) {
my $head = join('', $c->head($last));"
The script:
#!/usr/bin/perl
#
# controlcancel.pl v0.0.0
# Author: Mikael O. Bonnier, mikaelb@df.lth.se,
http://www.df.lth.se/~mikaelb/
# Copyright (C) 2007 by Mikael O. Bonnier, Lund, Sweden.
# License: GNU GPL v3 or later, http://www.gnu.org/licenses/gpl-3.0.txt
# Commercial licenses are available.
#
# Purpose: To store control.cancel messages for a group on an
NNTP-server
# in textfiles.
# Motive: Sometimes messages are canceled against the will of the
sender.
# In order to investigate this one needs the control.cancel message
but they
# normally can be difficult to find.
# Example: http://www.df.lth.se/~mikaelb/control.cancel/
# Installation: Adjust cfg-block in this file. Create an empty file
<group>_0000.txt in
# the <dir>. Run using crontab each night, e.g.
# 15 4 * * * cd <installdir>; <perldir>/perl ./controlcancel.pl &
# Ampersand in crontab makes the program uninterruptible. (Symbols in <>
should be
# exchanged for real values.)
#
print"$first $last\n";
print"1\n";
use strict;
print"2\n";
use NNTPClient; # Locally installed News::NNTPClient
print"3\n";
# <cfg>
my $NNTPServer = "just2write2.myftp.org";
print"4\n";
my $group = "swnet.politik";
print"5\n";
my $dir = "/var/www";
print"6\n";
my $delay = 0; # seconds
print"7\n";
# </cfg>
my $c = new News::NNTPClient($NNTPServer);
print"8\n";
$c->authinfo('kjell','knasten');
print"9\n";
my ($first, $last) = $c->group("control.cancel");
print"10\n";
opendir CTRLCAN, $dir;
print"11\n";
my @files = grep /^$group\_(\d+)\.txt$/, readdir CTRLCAN;
print"12\n";
my $max = 0;
print"13\n";
foreach $_ (@files) {
$_ =~ m/(\d+)\.txt$/;
print"14\n";
if($1 > $max) {
$max = $1;
print"15\n";
}
}
my $inFile = sprintf "$group\_%04d.txt", $max;
print"16\n";
open IN, '<', $dir . $inFile;
print"17\n";
my $line;
print"18\n";
read IN, $line, 80;
print"19\n";
close IN;
print"20\n";
$line =~ m/\$last=(\d+)/;
print"21\n";
$first = $1 + 1 if $1;
print"22\n";
my $file = sprintf "$group\_%04d.txt", $max+1;
print"23\n";
open OUT, '>', $dir . $file;
print"24\n";
print OUT "\$first=$first, \$last=$last\n";
print"25\n";
my $starttime = time;
print"26\n";
print OUT "\$starttime=$starttime\n\n";
print"27\n";
for(; $last >= $first; --$last) {
my $head = join('', $c->head($last));
print"28\n";
if($head =~ m/^Newsgroups:.*[\s|,]+$group.*$/m) {
print OUT $c->article($last);
print"29\n";
print OUT "\n\n";
print"30\n";
}
sleep $delay;
print"31\n";
}
my $stoptime = time;
print"32\n";
print OUT "\n\$stoptime=$stoptime\n";
print"33\n";
print OUT "\$elapsed=" . ($stoptime-$starttime) . " s\n";
print"34\n";
close OUT;
print"35\n";
__END__
Re: Cleanfeed bad hosts central
Author: Julien ÉLIE
Date: Mon, 14 Apr 2008 18:26
Date: Mon, 14 Apr 2008 18:26
18 lines
2238 bytes
2238 bytes
Hi Steve, > I run an INN service on a NAT'ed private address but rewrite the > NNTP-Posting-Host header to the Internet facing address. This currently > involves using a filter_nnrpd.pl script. It would be more practical if > there was a config option on the server to hardcode the address in > NNTP-Posting-Host / X-Trace headers. As for NNTP-Posting-Host, I have just transmitted your article to inn-workers. And for X-Trace, it is already set by the domain: parameter in inn.conf. -- Julien ÉLIE « Quand on demande aux gens d'observer le silence, au lieu de l'observer comme on observe une éclipse de lune, ils l'écoutent ! » (Raymond Devos)
Re: Cleanfeed bad hosts central
Author: Julien ÉLIE
Date: Mon, 14 Apr 2008 18:32
Date: Mon, 14 Apr 2008 18:32
14 lines
1766 bytes
1766 bytes
>> Would it be possible to know how the bad_hosts_central file is updated? > > It works by counting the number of articles rejected by various other > filters, at the moment it's only seeded by the cleanfeed EMP filters on > news.mixmin.net. All right. Thanks, Steve, for your answer. -- Julien ÉLIE « -- Ils devraient pourtant savoir que le sanglier c'est sacré pour nous. -- Et toi, tu as une sacrée façon de l'adorer. » (Astérix)
Re: controlcancel.pl
Author: Jeffrey M. Vinocur
Date: Thu, 17 Apr 2008 00:26
Date: Thu, 17 Apr 2008 00:26
28 lines
2004 bytes
2004 bytes
In article <1208197181.32716.45.camel@ubuntu1.ipbo.se>,
kjell <hd@ipbo.se> wrote:
>I'm trying to run this script on my INN server.
>http://www.df.lth.se/~mikaelb/control.cancel/controlcancel.txt
>
>Help please!
In the future, please start a separate thread rather than
posting into an existing thread and changing the Subject line.
>I get this error "NNTPERROR: 502 Permission denied"
>after this line "my ($first, $last) = $c->group("control.cancel");"
I suspect you could figure this out with telnet to port 119 and
manually issuing the commands the script does.
But if I had to guess, I bet you are running the script on a host
that is listed in your incoming.conf file and therefore your
connection is to innd (and not handed off to nnrpd). You
probably need the MODE READER command to explicitly request a
handoff to nnrpd -- this should happen immediately after
connecting.
--
Jeffrey M. Vinocur
jeff@litech.org
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