Thread View: news.software.nntp
2 messages
2 total messages
Started by Bruce D. Meyer
Tue, 01 Feb 2000 00:00
Bad Poison?
Author: Bruce D. Meyer
Date: Tue, 01 Feb 2000 00:00
Date: Tue, 01 Feb 2000 00:00
64 lines
3964 bytes
3964 bytes
I have had this in my cleanfeed for quite some time. Suddenly, it seems to have no effect whatsoever against the sudden onslaught of hipcrime. It seems the way the hipcrime newgroups are being sent, it is acting as a DoS attack against my newsserver. I base that on 300 lines of 'For: Resource not available last night. Is their something I could change about this line below that might catch these newgroup floods? I don't remember who on this newsgroup wrote this, but it had worked great. 'poison_groups' => 'h[i\d][pcl[o\d]ne|(?<free\.)h[i\d]pcr[i\d]m[e\d]|h\.i\.p\.c\.r\.i\.m\.e' Forgive me if my idea is fundamentally flawed, but still, I will propose it. 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. What I have noticed whenever I donwload an active and newsgroup file from ISC, some of the folks around here's favorite newsgroups aren't in it, and I have to wait until someone hollers about 'where is my alt.tv.mad-tv.' or some such, and then manually add it for them. No big deal, and I can understand why some groups aren't in the main sites file list. Perhpas their would be a way to maintain a local differential file, that each day, you synchronize your active and newsgroup file from isc.org for example, and then the inn software compares it to the list of your local differential file, merges them and that becomes the active file for the next 24 hours, or whatever. That way, newgroups and rm groups can only happen at one location for the mail file. But the differential file could have like: + alt.tv.mad-tv #add this all the time - alt.radio.cb-ch9 #remove this group all the time. The some script would just run that. 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 imagine old mr. HipCrime will just continue to rerun these newgroup commands every so often, even ones he has run last week, and last month. For instance: I want to remove all occurrances of any group with these traits: del alt.h.*.p.c.?.?.[mn].e and of course alt.hh.*.p.c.?.?.[mmnn].ee alt.hhh.*.ppp.ccc.*.*.[mmmnnn].eee for ever and ever. I don't know reg expr worth a hoot, and realize that what I just wrote above iwouldn't work, but it is the idea I am trying tog et across. Can't I do a wild card mass delete of any group from my newsgroups and active files that contains these flags? If they even remotely contain something that might match hipcrime or hipclone variations, I want to purge them. I would also like to be able to prevent them from ever getting to my system. I am mystified why the poison command above allowed them to get in, and eat up my resources. Feel free to email me if you want. I will keep an eye on this newsgroup, as it is one of my favorite. I apologize for my ignorance of these subjects. Bruce Meyer
Re: Bad Poison?
Author: Brad Knowles
Date: Wed, 02 Feb 2000 00:00
Date: Wed, 02 Feb 2000 00:00
111 lines
5214 bytes
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.
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