Article View: news.software.nntp
Article #6321Re: Stopping newgroup from local users
From: Simon Lyall
Date: Thu, 04 Apr 1996 00:00
Date: Thu, 04 Apr 1996 00:00
45 lines
2204 bytes
2204 bytes
Brad Saxton (brad@spartan.ac.BrockU.CA) wrote:
> Essentially, I want to stop our local users from issuing Control
> messages (especially newgroup) that get sent to our newsfeeder. I have
> tried numerous things but I can't seem to stop them. The following is
> the way my newsfeeds file is currently set up but I must be missing
> something terribly obvious.
Playing around with the newsfeeds file doesn't do much good really.
I am assuming that they are not allowed to issue newgroups for the
hierarchies in question?
The easy way to do it is to suspend the account of the next user you
catch doing it.
Or you could hack your nnrpd to reject these sorts of posts.
Looking at post.c of the nnrpd source around line 230...
else if (EQ(ctrl, "sendsys") || EQ(ctrl, "senduuname")
|| EQ(ctrl, "version") || EQ(ctrl, "checkgroups")
|| EQ(ctrl, "ihave") || EQ(ctrl, "sendme")
|| EQ(ctrl, "newgroup") || EQ(ctrl, "rmgroup"))
/* SUPPRESS 530 *//* Empty body for statement */
;
Replace the plain ";" with something like:
return "Illegal control message";
and it might stop this. That is just from a quick glance at the source, I
am sure someone will correct me if I am wrong (ie what do the ihave
and the sendme in here do?). This is the area you want to be looking at
anyway.
--
Simon J. Lyall. | Work - simon@omega.co.nz
News Admin. | Home - simon@darkmere.gen.nz
Omega Centauri Internet. | http://www.omega.co.nz/~simon
"To stay awake all night adds a day to your life" - Stilgar.
Technical Details
Message-ID:
<4k0p6m$310@nero.omega.co.nz>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-mailReferences:
<1996Apr2.161517.6569@spartan.ac.BrockU.CA>Show Full Headers
Complete Article Headers
Message-ID: <4k0p6m$310@nero.omega.co.nz> Subject: Re: Stopping newgroup from local users Date: Thu, 04 Apr 1996 00:00:00 +0000 From: simon@omega.co.nz (Simon Lyall) References: <1996Apr2.161517.6569@spartan.ac.BrockU.CA> 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: 145787813 Organization: Omega Centauri Internet, Hamilton, New Zealand. Newsgroups: news.software.nntp