Thread View: news.software.nntp
2 messages
2 total messages
Started by Brad Saxton
Tue, 02 Apr 1996 00:00
Stopping newgroup from local users
Author: Brad Saxton
Date: Tue, 02 Apr 1996 00:00
Date: Tue, 02 Apr 1996 00:00
34 lines
1612 bytes
1612 bytes
This one has me a bit stymied and I hope some kind soul has the answer
and is willing to share their wisdom.
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.
ME\
:*,!control,!junk,!localgroup.*\
::
myfeeder.com\
:*,!junk,!control*,!localgroup.*\
:Tf,Wnm:myfeeder.com
Why, when I post an appropriately formatted Control-type message to a
newsgroup (say alt.config), does it still gets put into my out.going
news file (as going to newsgroup control), and if allowed to be sent,
ends up at my newsfeeder site?
I'm at my wits end on this one so any assistance would be greatly
appreciated.
Cheers
Brad
--
Brad Saxton brad@spartan.ac.BrockU.CA
Unix System Support Phone: (905)688-5550 x3496
Computing and Communications Services, F301
Brock University
Re: Stopping newgroup from local users
Author: 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.
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