Thread View: news.software.nntp
7 messages
7 total messages
Started by Mike Wilson, UCE Account
Mon, 31 Aug 1998 00:00
Sample CleanFeed.Conf files?
Author: Mike Wilson, UCE Account
Date: Mon, 31 Aug 1998 00:00
Date: Mon, 31 Aug 1998 00:00
14 lines
889 bytes
889 bytes
Anyone willing to share their CleanFeed.Conf files? I'd like to get some ideas on what others are doing. I'm also not to sure on the syntax of the config_append section. You can email them to me if you like. uce_mike@yahoo.com -- --- Mike Wilson http://www.drwho.org http://www.pobox.com/~mwilson
Re: Sample CleanFeed.Conf files?
Author: Timothy J. Miller
Date: Mon, 31 Aug 1998 00:00
Date: Mon, 31 Aug 1998 00:00
20 lines
1435 bytes
1435 bytes
pcoen@forest.drew.edu (Paul Coen) writes:
> I'm in the process of configuring cleanfeed myself, and I was wondering
> if I have to do anything about line continuation in the cleanfeed.conf
> file for the entries in the config_append section. I think I'm going
> to have a few that get kind of long.
Perl string concatentaion:
'some_setting' => 'some.string'.
'|more.stuff'.
'|even.more.stuff',
--
Cerebus <tmill06@ibm.net>
"No one's jumped off the top of the [Windows] building here, so I guess
that's a pretty good indicator that it can't be all that bad."
-- Rob Bennett, Microsoft group product manager.
Re: Sample CleanFeed.Conf files?
Author: Paul Coen
Date: Mon, 31 Aug 1998 00:00
Date: Mon, 31 Aug 1998 00:00
16 lines
1434 bytes
1434 bytes
In article <6sf0ak$hmq$2@news1.exit109.com>, jeremy@exit109.com (Jeremy) writes: > 'bin_allowed' => '^foo\.binaries|^xyzzy\.binaries', I'm in the process of configuring cleanfeed myself, and I was wondering if I have to do anything about line continuation in the cleanfeed.conf file for the entries in the config_append section. I think I'm going to have a few that get kind of long. Sorry if this is an amazingly dumb question, but I can't find an example anywhere, and I'd rather not have this hose a bunch of groups we want (clari.*, various moderated newsgroups, etc.) The impression I'm getting from the docs is that cleanfeed can target high-volume moderated newsgroups based on NNTP-Posting-Host. Am I reading this correctly?
Re: Sample CleanFeed.Conf files?
Author: Jeremy
Date: Mon, 31 Aug 1998 00:00
Date: Mon, 31 Aug 1998 00:00
34 lines
2132 bytes
2132 bytes
Paul Coen <pcoen@forest.drew.edu> wrote:
> I'm in the process of configuring cleanfeed myself, and I was wondering
> if I have to do anything about line continuation in the cleanfeed.conf
> file for the entries in the config_append section. I think I'm going
> to have a few that get kind of long.
You extend them by concatenating two strings:
'bin_allowed' => 'foo\.binaries'.
'|bla\.binaries',
The dot says to combine the strings on either side of it into one string.
Since whitespace is ignored, this results in one nice long string.
There are examples in the Cleanfeed source, in the config section where
the defaults are set.
> Sorry if this is an amazingly dumb question, but I can't find an example
> anywhere, and I'd rather not have this hose a bunch of groups we want
> (clari.*, various moderated newsgroups, etc.) The impression I'm
> getting from the docs is that cleanfeed can target high-volume
> moderated newsgroups based on NNTP-Posting-Host. Am I reading this
> correctly?
It's certainly possible, if the volume is high and lots of posts end up
being the same size. I'm planning to add an option to exempt moderated
groups from that filter, for this reason. Incidentally, clari.* is
already exempted from filtering.
--
Jeremy | jeremy@exit109.com
Cleanfeed spam filter - http://www.exit109.com/~jeremy/news/cleanfeed.html
Re: Sample CleanFeed.Conf files?
Author: Jeremy
Date: Mon, 31 Aug 1998 00:00
Date: Mon, 31 Aug 1998 00:00
24 lines
1612 bytes
1612 bytes
Mike Wilson, UCE Account <uce_mike@yahoo.com> wrote: > > Anyone willing to share their CleanFeed.Conf files? I'd like to get > some ideas on what others are doing. I'm also not to sure on the syntax of > the config_append section. The config_append stuff looks just like the sections in the cleanfeed source. Say, for example, you want to add the 'foo.binaries.*' and 'xyzzy.binaries.*' hierarchies to the bin_allowed list. You would do this: 'bin_allowed' => '^foo\.binaries|^xyzzy\.binaries', This would result in a 'bin_allowed' regexp consisting of the default setting in Cleanfeed, plus this addition. The advantage being, if something needs to be added or removed from a default setting, you don't have to worry about integrating it with local changes. -- Jeremy | jeremy@exit109.com "...your brain recognizes the pattern of light and dark made by a successful mail delivery." --Russ Allbery
Re: Sample CleanFeed.Conf files?
Author: Dougal Campbell
Date: Tue, 01 Sep 1998 00:00
Date: Tue, 01 Sep 1998 00:00
58 lines
3293 bytes
3293 bytes
Mike Wilson, UCE Account <uce_mike@yahoo.com> wrote:
>
> Anyone willing to share their CleanFeed.Conf files? I'd like to get
> some ideas on what others are doing. I'm also not to sure on the syntax of
> the config_append section.
>
> You can email them to me if you like. uce_mike@yahoo.com
I'm using the following in my cleanfeed.local:
###
sub local_filter_newrmgroup {
($hdr{'Path'} =~ /($config{'bad_cancel_paths'})/o) &&
return "Bad new/rmgrouper - $1";
(($hdr{'Newsgroups'} =~ /^alt\./) &&
($hdr{'From'} =~ /group-admin\@isc\.org/)) &&
return "Bad new/rmgroup from group-admin - alt";
}
###
In other words, I apply "bad_cancel_paths" entries to newgroup and
rmgroup messages, not just cancels, and any newgroup or rm group which
claims to be from group-admin@isc.org but is for an alt group is
obviously bogus. The "Bad new/rmgrouper" filter has rejected several
messages over the past couple of days. I just added the other rule
ealier today, and it hadn't yet caught anything last time I checked
(maybe because of a typo that I just corrected a minute ago).
I could make this more generic by making a var to hold only the names
of the hierarchies that group-admin sends out controls for, but I'm
lazy. I might have to go ahead and add something like that....
'isc-groups' => '^(comp\.|news\.|rec\.)', ... (you get the idea)
I see that there have been some bogus newgroups issued for the 'nyc'
and 'dc' hierarchies recently.
Another idea might be to keep a list of well-known pgp-verify issuers,
and reject new/rmgroups with X-PGP-Sig and X-Info headers which don't
come from an approved issuer. I haven't seen the hax0rs randomizing
their "From:" headers on the controls, but I figure when enough news
admins have clamped down on group-admin newgroups well enough, they'll
switch to something else. This would at least force them to limit these
types of attacks to a smaller set of known patterns.
--
Dougal Campbell, Systems Manager, ADViCOM dougal@advicom.net
http://www.advicom.net/ http://advicom.net/~dougal/
See my homepage for anti-spam information!
Public PGP key available at http://pgp5.ai.mit.edu/
or http://advicom.net/~dougal/dougal-pgp.txt
QUOTE OF THE MOMENT:
Coward, n.:
One who in a perilous emergency thinks with his legs.
-- Ambrose Bierce, "The Devil's Dictionary"
Re: Sample CleanFeed.Conf files?
Author: Dougal Campbell
Date: Wed, 02 Sep 1998 00:00
Date: Wed, 02 Sep 1998 00:00
47 lines
2855 bytes
2855 bytes
Mike Wilson, UCE Account <uce_mike@yahoo.com> wrote:
>
> Anyone willing to share their CleanFeed.Conf files? I'd like to get
> some ideas on what others are doing. I'm also not to sure on the syntax of
> the config_append section.
>
> You can email them to me if you like. uce_mike@yahoo.com
I'm using the following in my cleanfeed.local:
###
sub local_filter_newrmgroup {
($hdr{'Path'} =~ /($config{'bad_cancel_paths'})/o) &&
return "Bad new/rmgrouper - $1";
}
###
In other words, I apply "bad_cancel_paths" entries to newgroup and
rmgroup messages, not just cancels. The "Bad new/rmgrouper" filter has
rejected several messages over the past couple of days. I originally
had added some code that was supposed to catch non-Big8 posts claiming
to be from group-admin@isc.org, but I must have been suffering a brain
fart, since Cleanfeed already has code to take care of those. Also, I
added a couple of IP addresses to bad_cancel_paths that I had culled
out of the last batch of malicious newgroups.
Another idea might be to keep a list of well-known pgp-verify issuers,
and reject new/rmgroups with X-PGP-Sig and X-Info headers which don't
come from an approved issuer. I haven't seen the hax0rs randomizing
their "From:" headers on the controls, but I figure when enough news
admins have clamped down on group-admin newgroups well enough, they'll
switch to something else. This would at least force them to limit these
types of attacks to a smaller set of known patterns.
--
Dougal Campbell, Systems Manager, ADViCOM dougal@advicom.net
http://www.advicom.net/ http://advicom.net/~dougal/
See my homepage for anti-spam information!
Public PGP key available at http://pgp5.ai.mit.edu/
or http://advicom.net/~dougal/dougal-pgp.txt
QUOTE OF THE MOMENT:
Coward, n.:
One who in a perilous emergency thinks with his legs.
-- Ambrose Bierce, "The Devil's Dictionary"
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