🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #43839

Re: Bad Poison?

#43839
From: Brad Knowles
Date: Wed, 02 Feb 2000 00:00
111 lines
5214 bytes
In article <876pgh$iu1$1@news.rocsoft.net>, "Bruce D. Meyer" 
<bmeyer@rocsoft.net> wrote:

> How practical would it be, to have all newsgroups go through a central
> location, and each day, be able to download, or synchronize the 
> newshgroups agains that locations file? I belive their is something
> called actsynch that does this.

    The program "actsync" comes with INN and will basically do this, 
according to the configuration you have in your 
/usr/local/news/etc/actsync directory.

    If you want to sync against the active file from the ISC, you use 
the program "sync-from-isc" as provided on page 196 of _Managing Usenet_ 
by Henry Spencer & David Lawrence.  Minor variations on this program 
will allow you to do the same thing with the active file from any other 
site, if the flat ASCII text file is available via ftp, http, etc....


    The RIPE NetNews Working Group also has a pilot project that would 
store this information in the DNS (instead of a flat text file that you 
would have to FTP, or have NNTP access to their server), and you could 
run a program like actsync to synchronize your local active file with 
the canonical information stored in the DNS for the appropriate 
hierarchies.

    See <http://news.rediris.es/newsbone> for more info on the Netnews 
Hierarchical Name System (NHNS).  See 
<http://www.ripe.net/ripe/wg/netnews/index.html> for more information on 
the RIPE NetNews Working Group.

> The some script would just run that.

    You'll never get a canonical list of what newsgroups need to be 
added to have a "complete" list of newsgroups on your server, because 
you'll never get two newsadmins to agree as to what comprises the 
complete set of all current newsgroups.


    You can certainly keep a list of newsgroups that you know your local 
users want, and if you're familiar with how actsync works, you can 
change it's configuration so that it never deletes any newsgroups in 
those hierarchies regardless of who it is sync'ing with.

    I do a slightly different version of this -- I know that there's a 
lot of crap in alt.binaries.pictures.erotica.* that are illegal over 
here (as in criminally illegal), so I make sure that I never 
automatically add any newsgroup in this hierarchy, regardless of whether 
this is from a PGP-signed newgroup command from Tale, or the result of 
running actsync against the "master" active file from the ISC.

> Another idea, is their a way to run a script against my active and 
> newsgroup files to remove with a wild card all the garbage that I see
> come in, write it to a script file, and have it run automatically each
> day.

    I have a cronjob that runs hourly that does something like:

        egrep 'h.*p.*c.*[lr].*[mn]' active | awk '{ print $1 }' | 
/usr/local/news/bin/brad.rmgroups

    And the program brad.rmgroups looks something like:

#!/bin/sh
DONE=0
FAILED=0
read INPUT
if [ $? -eq 0 ] ; then
        while [ $? -eq 0 ]
        do
                echo -n "Removing $INPUT...  "
                /usr/local/news/bin/ctlinnd rmgroup $INPUT
                if [ $? -eq 0 ] ; then
                        DONE=`expr $DONE + 1`
                else
                        FAILED=`expr $FAILED + 1`
                fi
                sleep 4
                read INPUT
        done
fi

if [ $DONE -gt 0 ] ; then
        if [ $FAILED -gt 0 ] ; then
                echo "$DONE rmgroups done, $FAILED rmgroups failed.  
Exiting...."
        else
                echo "$DONE rmgroups done.  Exiting...."
        fi
else
        echo "No rmgroups to perform!  Exiting...."
fi


    This I do on top of all of the other things with respect to refusing 
to automatically create any "hipcrime" type newsgroups in any hierarchy, 
etc....

    Of course, you'd have to be careful not to cast your net too widely, 
otherwise you might accidentally remove newsgroups that you didn't mean 
to.  Try some test regular expressions on your active file until you get 
one that you're happy with.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>

Are you a USENET news server administrator outside of North America or
Western Europe?  Would you like a newsfeed from a site in the Freenix
Top 65?  If so, please contact me via private e-mail for details.

Technical Details
Message-ID: <brad-E28006.03122402022000@news.skynet.be>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <876pgh$iu1$1@news.rocsoft.net>

Show Full Headers
Complete Article Headers
Message-ID: <brad-E28006.03122402022000@news.skynet.be>
Subject: Re: Bad Poison?
Date: Wed, 02 Feb 2000 00:00:00 +0000
From: Brad Knowles <brad@shub-internet.org>
References: <876pgh$iu1$1@news.rocsoft.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 580621266
Mail-Copies-To: poster
Posted-And-Mailed: yes
X-Complaints-To: abuse@skynet.be
X-Trace: news0.skynet.be 949457562 22818 195.238.1.121 (2 Feb 2000 02:12:42 GMT)
Organization: Shub-Internet
X-URL: http://www.shub-internet.org/
User-Agent: MT-NewsWatcher/3.0 (PPC)
NNTP-Posting-Date: 2 Feb 2000 02:12:42 GMT
Newsgroups: news.software.nntp