🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Mike Wilson, UCE Account Wed, 02 Sep 1998 00:00
Problems with cleanfeed.conf
#31120
Author: Mike Wilson, UCE Account
Date: Wed, 02 Sep 1998 00:00
311 lines
10488 bytes
	I'm using the latest version of cleanfeed on Inn 1.7.2insync1.1d
under Solaris 2.6. The problem seems to be that my "badguys" entries don't
seem to be used... only the entries in the cleanfeed script itself seem to
be used (the default ones). Here is my cleanfeed.conf file:


# Cleanfeed configuration file


sub local_config {

### !! WARNING !! YOU CAN & MUST SET ONLY ONE OF THE FOLLOWING:
$inn = 1;		# set $inn = 1 for INN
$highwind = 0;		# set $highwind = 1 for Cyclone/Typhoon/Breeze
$nntprelay = 0;        	# set $nntprelay = 1 for NNTPRelay

%config_local = (

# Settings in %config_local will OVERRIDE any defaults
# in Cleanfeed.
#
# Any setting here will blindly replace one with the
# same name in %config.  No sanity checks are done.
# Be careful!
#
# On/off settings should be set to 1 for on, 0 for off

   ### Setting aggressive to 0 disables all content-based filters
   'aggressive' => 1,

   ### Active file
   'active_file' => '/var/spool/news/in.coming/act_config/active',

   #########################################################
   ### MD5-based EMP filter settings

     ### Do the MD5 checks?  You probably shouldn't turn this off,
     ### but if you're running Hippo also you might want to anyway,
     ### and far be it from me to stop you.
   'do_md5' => 1,

     ### Start rejecting after the MD5 filter sees this many copies
   'md5maxmultiposts' => 5,

     ### Keep history of this many MD5 article checksums
   'MD5History' => 11000,

     ### Time to keep MD5 EMP ids with no hits, in hours
   'MD5maxlife' => 24,

     ### Use "fuzzy" MD5 check by "imploding" message bodies
     ### before hashing?
   'fuzzy_md5' => 0,

     ### Don't do fuzzy-check if the body is more than this many lines
   'fuzzy_max_length' => 700,

     ### Should the MD5 filter skip articles with References?
     ### Possibly a major performance difference.
   'md5_skips_followups' => 1,

     ### Maximum number of MD5 EMP ids to ever keep
   'MD5HistSize' => 7000,


   #########################################################
   ### Header-based EMP filter settings

     ### Do the Posting-Host/Lines EMP checks?  You really want to
     ### keep this on.
   'do_phl' => 1,

     ### Do the From/Subject/Lines EMP checks?  This is the one with
     ### the lowest hit rate these days.
   'do_fsl' => 1,

     ### Start rejecting after the header filter sees this many copies.
     ### More prone to false positives than MD5 so set this higher
   'maxmultiposts' => 20,

     ### Keep history of this many header-EMP checks
   'ArticleHistory' => 7000,

     ### Time to keep EMP ids with no hits, in hours
   'EMPmaxlife' => 24,

     ### Maximum number of EMP ids to ever keep
   'EMPHistSize' => 1500,


   #########################################################
   ### Excessive Crosspost settings

     ### Maximum number of newsgroups allowed in a crosspost
     ### Articles are rejected if posted such that followups
     ### will be to more than this many groups
   'maxgroups' => 6,

     ### Restrict crossposts in low_xpost_groups (below) to this many
   'low_xpost_maxgroups' => 6,

     ### 'tjfmaxgroups' has been removed


   #########################################################
   ### Misplaced Binaries Filter

     ### Block binaries in non-binary newsgroups?
   'block_binaries' => 1,

     ### Max number of binary-encoded lines before considering
     ### an article a "binary"
   'max_encoded_lines' => 15,

     ### Allow binaries in all moderated groups?
     ### (Requires an active file)
   'binaries_in_mod_groups' => 0,


   #########################################################
   ### HTML, etc.

     ### Block MIME-encapsulated HTML?
     ### (not regular HTML or multipart/alternative)
   'block_mime_html' => 1,

     ### Block HTML and multipart/alternative?
   'block_html' => 0,


   #########################################################
   ### Cancel Message Filtering

     ### Block cancels of already-rejected articles?
   'block_late_cancels' => 1,

     ### Time to keep rejected message-ids for cancel rejection
     ### in hours
   'MIDmaxlife' => 1,


   #########################################################
   ### Other filters you may want to shut off for some reason

     ### Do the scoring filter?
   'do_scoring_filter' => 1,

     ### Do the message-id filter on NNTP CHECK command (INN only)?
   'do_mid_filter' => 0,

     ### Do the spam-bot-signature checks?  Leave this on.  Really.
   'do_bot_checks' => 1,

     ### Do the excessive Supersedes filter?
   'do_supersedes_filter' => 1,

     ### Apply bad_cancel_paths to Supersedes also?
   'check_supersedes_path' => 1,

     ### Drop all sendsys, senduuname, and version control messages?
   'drop_useless_controls' => 1,

     ### Drop all ihave and sendme control messages?
   'drop_ihave_sendme' => 1,

     ### Drop any control message also containing a Supersedes header?
   'drop_control_with_supersedes' => 1,


   #########################################################
   ### Hash-Trimming

     ### Trim hashes every N cycles through the filter
   'trimcycles' => 500,

     ### Don't bother trimming hashes until they're this big
   'EMPstarttrimming' => 500,


   #########################################################
   ### Logging

     ### Verbose rejection reasons in news.notice/logfile?
   'verbose' => 1,

     ### Set the following to log the message ID's
     ### of all articles processed.
     ### Doesn't work for INN (uses news.notice instead).
   'logfile' => undef,
   'reportfile' => undef,

     ### Should the above log, if used, log accepts as well as rejects?
   'log_accepts' => 1,

     ### Rotate the log (if used) at this size
   'max_log_size' => 10000000,
     
     ### Crude stats for tuning purposes (see documentation)
   'statfile' => undef,


   #########################################################
   ### Timing Information

     ### Generate timing information?
   'timer_info' => 1,

     ### Interval over which to average timing information,
     ### in seconds.
   'timer_interval' => 300,


   #########################################################
   ### Debugging

     ### Batch files for debugging written to this directory
   'debug_batch_directory' => undef,

     ### Batch files will be rotated when they exceed this size
   'debug_batch_size' => 100000,

);

%config_append = (

# Used to append to the end of the default regexps.
#
# Settings here will be added to the defaults, with a | between
# the default string and the one provided here.
#
# See the default settings in the Cleanfeed code.
#
# Allowed in this section:

### binaries allowed if groups match
   'bin_allowed' => 
"^alt\.crackers|^alt\.cracks|^alt\.2600\.cracks|^alt\.mag|^alt\.sex\.fetish\.waifs",

### reject crossposts if any groups match
#   'poison_groups' => undef,

### HTML allowed if groups match (only if block_html is on)
#   'html_allowed' => undef,

### md5 EMP check not done if groups match
   'md5exclude' => "\.(jobs|job|employment|classified|classifieds|forsale|marketplace)",

### no checks done if groups match
#   'allexclude' => undef,

### restrict crossposts in these groups to low_xpost_maxgroups
#   'low_xpost_groups' => undef,

### used to build domain names for URL matching
   'badguys' => 
'wildchild|ilovelez|sexjunky|nymphette|stobblehouse|hard-core'.
'|latexfetish|harddicks|\w+\.mnet1|pictureview|lasersex|sexypussy'.
'|lick|orgasmic|malebytes|southcorp|mansclub|inet-images|pornschool'.
'|hotsexnow|bmc-engineering|nastygirlz|marys-place|ucla\.dorms|savetrees'.
'|(?:\w+\.)sexzilla|netzilla|jalapeno|orchidvideos|blowme|totallyfreesex'.
'|sexplosion|unitedadultsites|rsi-net|cathouse|forbiddenphotos'.
'|amateur-xposure|teencity|snmworld|spck|fuck|anal|xxx|ukswingers'.
'|icl|uncc|hyperbooks|sexandpussy|fuckmenow|dalounge|eurosluts'.
'|pornoemporium|cuntlick|vianews|knotwork|sex-e-world|pornopeople'.
'|teenmasturbation|monkeyspanker|babelicks|ostomy|traders-update'.
'|nasty|xnasty|hot\.pornofetish|topnotchadult|transgenderweb|sasha2'.
'|xs4all|world-gaming|totalpussy|valleyofsex|sexy1234|thebestxxx'.
'|sex4younow|pluckit|hardcorezone|sexymail2|teenvoyeurism|smellslikefish'.
'|jagworld|ultimatexxx|domxxx|fetishscat|xxxlinks|redhousemedia'.
'|freepink|yiws|xxx-citing|magicus|bsi-service|teenpussy4free|ddacsex'.
'|adulttheatre|web-dream|misako3a|archivedpix|sexdevil|necrobabes'.
'|foxfiles\.inter|anni|thebestxxx\.home\.ml|bigsexyland|wwwcumshots'.
'|sexpussyanal|hotcollegesex|tomasino|uninets|arcticera|slutomatic'.
'|landofvenus|sexyflorida|pussymuncher|midnightpassion|adulttheater'.
'|websextv|adultdigital|toilettarts|heavyhangers|lustybbws|nicebeaver'.
'|alternativeconnections|freerawsex|greatwebsites|real-sex|lisnet|freesex4u'.
'|freesexpalace|freehardcore|crystalv|purehardcore|storm|anal-lover'.
'|adultteens|cumsee|cumseeme|adultxxxfest|free4adults|arrakis|interbbs'.
'|vixenvideo|thecyberpimps|pussycity|centre-europe|adult-sex-world'.
'|lilbluemoon|romsnlaser|porn-station\.holowww|slickpages|stena|hyperion'.
'|aecl',

### matched against domain names in URLs
#   'baddomainpat' => undef,

### regexps to exempt from NNTP-Posting-Host EMP filter
#   'exempt' => undef,

### regexps to exempt from excessive supersedes filter
#   'supersedes_exempt' => undef,

### Reject cancels (and possibly supersedes) with these path elements
#   'bad_cancel_paths' => undef,

### refuse articles with these in the message-id (INN only)
#   'refuse_messageids' => undef,

);

}

1;


-- 
---
Mike Wilson 				http://www.drwho.org
					http://www.pobox.com/~mwilson

Re: Problems with cleanfeed.conf
#31117
Author: Timothy J. Miller
Date: Wed, 02 Sep 1998 00:00
14 lines
1228 bytes
uce_mike@yahoo.com (Mike Wilson, UCE Account) writes:

> Sure did, I verified that fact just now to make sure. Anyway to view what is
> "in" the badguys var while it's running?

	Define $statfile and look there when you execute a reload.  All
configured variables are written at load time.

-- 
Cerebus <tmill06@ibm.net>
"Although UNIX is more reliable, NT may become more reliable with time"
      -- Ron Redman, deputy technical director of the Fleet Introduction

Re: Problems with cleanfeed.conf
#31126
Author: Ron Jarrell
Date: Wed, 02 Sep 1998 00:00
19 lines
1580 bytes
Mike Wilson, UCE Account <uce_mike@yahoo.com> wrote:
> Timothy J. Miller <tmill06@ibm.net> wrote:

>> 	Did you set $config_dir in filter_innd.pl itself?


> Sure did, I verified that fact just now to make sure. Anyway to view what is
> "in" the badguys var while it's running?

Did you set the permissions on cleanfeed.conf?  As distributed in
the tarball they're something like 400 or 600, and not owned by
news.  I was silly and failed to notice this when copying the file to
it's production home, and cleanfeed silently failed to load it when
it couldn't open the file... Took me a day to finally figure out what
was going on, and why it was purging binaries, dispite the option
supposedly being turned off.


Re: Problems with cleanfeed.conf
#31130
Author: Timothy J. Miller
Date: Wed, 02 Sep 1998 00:00
10 lines
905 bytes
	Did you set $config_dir in filter_innd.pl itself?

-- 
Cerebus <tmill06@ibm.net>
"Do not piss off the News Admin, for thou art crunchy and taste good with
 ketchup."
		-- Wisdom of the Wires, Scroll XLII.

Re: Problems with cleanfeed.conf
#31146
Author: Mike Wilson, UCE Account
Date: Wed, 02 Sep 1998 00:00
14 lines
952 bytes
Timothy J. Miller <tmill06@ibm.net> wrote:

> 	Did you set $config_dir in filter_innd.pl itself?


Sure did, I verified that fact just now to make sure. Anyway to view what is
"in" the badguys var while it's running?

-- 
---
Mike Wilson 				http://www.drwho.org
					http://www.pobox.com/~mwilson

Re: Problems with cleanfeed.conf
#31147
Author: Jeremy
Date: Wed, 02 Sep 1998 00:00
25 lines
1658 bytes
Timothy J. Miller <tmill06@ibm.net> wrote:
> uce_mike@yahoo.com (Mike Wilson, UCE Account) writes:
> 
>> Sure did, I verified that fact just now to make sure. Anyway to view
>> what is "in" the badguys var while it's running?
> 
> 	Define $statfile and look there when you execute a reload.  All
> configured variables are written at load time.

And if it doesn't appear, define statfile in the Cleanfeed source
itself.  If all settings are the default, then your cleanfeed.conf
isn't getting loaded at all.

Check the permissions on cleanfeed.conf.  It's the number one problem
people have.

Also, I noticed your bin_allowed uses double quotes.  You'll want to
change that to single quotes so the regexp stuff doesn't get eaten.

-- 
Jeremy | jeremy@exit109.com
"...your brain recognizes the pattern of light and dark made by a
 successful mail delivery."           --Russ Allbery

Re: Problems with cleanfeed.conf
#31150
Author: Mike Wilson, UCE Account
Date: Wed, 02 Sep 1998 00:00
29 lines
1554 bytes
Jeremy <jeremy@exit109.com> wrote:
> And if it doesn't appear, define statfile in the Cleanfeed source
> itself.  If all settings are the default, then your cleanfeed.conf
> isn't getting loaded at all.

> Check the permissions on cleanfeed.conf.  It's the number one problem
> people have.

Did this ...

> Also, I noticed your bin_allowed uses double quotes.  You'll want to
> change that to single quotes so the regexp stuff doesn't get eaten.

Okay.


The problem was my lack of quotes on one of my vars... I should have learned
to use perl -cw... I KNOW I am suppose to use it... but I guess it's like
wearing a seat belt :)

Thanks to all the assistance. Each one fixed a problem in one place or
another.

-- 
---
Mike Wilson 				http://www.drwho.org
					http://www.pobox.com/~mwilson

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