Article View: news.software.nntp
Article #8094Re: HELP: Can tcpwrapper be used to control access to INN?
From: Thomas R. Stevenson
Date: Thu, 30 May 1996 00:00
Date: Thu, 30 May 1996 00:00
68 lines
3177 bytes
3177 bytes
Dave Barr (barr@math.psu.edu) wrote:
> [trimming newsgroups again, since this has nothing to do with most all
> of those newsgroups]
> In article <4oi3mi$861@cwis-20.wayne.edu>,
> Thomas R. Stevenson <tom@tom.cc.wayne.edu> wrote:
> >Dave Barr (barr@math.psu.edu) wrote:
> >> If you don't care about innd, then I don't see why you care about
> >> in.nnrpd.
> >
> >It has nothing to do with caring about innd or not. innd isn't the
> >daemon that does the client/server connection to the user. in.nnrpd is
> >that daemon, and if we can control that daemon, we can do what we
> >want.
> No, actually it's innd which decides if it should start in.nnrpd
> or handle the connection itself. That's what I mean about "don't
> care about innd". In your case it sounds like you don't care about
> connections innd handles itself (feeds).
Correct. We only care about the in.nnrpd access. Nothing else.
> If this is true, to answer your question it's trivial. cd to where
> in.nnrpd is.
> mkdir real
> mv in.nnrpd real/in.nnrpd
> Make a wrapper like this and put it in in.nnrpd's place:
> #!/bin/sh
> exec /path/to/tcpd /path/to/real/in.nnrpd $*
We did that, (well almost that), but it didn't work. Here is what we did:
mkdir /path/to/tcpwrapper_dir
cp /path/to/real/in.nnrpd /path/to/tcpwrapper_dir/in.nnrpd
cp /path/to/tcpd /path/to/real/in.nnrpd
This is about the same as your's but doesn't require the `exec`
script. The trouble was that it didn't work. That's why I posted the
message in the first place (we thought we had it right, but still
couldn't get it to work). After putting out my posts, I had the
opportunity to talk with the author of TCPWRAPPER, and he said (in his
words) that I had found a bug (the above should have worked). He gave
me the patch for the bug, I installed it, and now it's working as we
need it to.
--
____ __ __ EMail: tom@tom.cc.wayne.edu
/ /_/ /_ VMail: (313) 577-4742
/. /\. __/. Fax: (313) 577-5626
Home Page: http://tom.cc.wayne.edu
Anon FTP: ftp://tom.cc.wayne.edu
For my PGP PUBLIC KEY BLOCK,
finger tom@tom.cc.wayne.edu
"A common mistake that people make when trying
to design something completely foolproof was Douglas Adams
to underestimate the ingenuity of complete Mostly Harmless
fools."
Technical Details
Message-ID:
<4ol1c3$mb8@cwis-20.wayne.edu>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:
<4oforl$ghq@cwis-20.wayne.edu> <Pine.LNX.3.91.960529101428.853B-100000@tom.cc.wayne.edu> <4ohujl$6vj@augusta.math.psu.edu> <4oi3mi$861@cwis-20.wayne.edu> <4oid9r$7md@augusta.math.psu.edu>Show Full Headers
Complete Article Headers
Message-ID: <4ol1c3$mb8@cwis-20.wayne.edu> Subject: Re: HELP: Can tcpwrapper be used to control access to INN? Date: Thu, 30 May 1996 00:00:00 +0000 From: tom@tom.cc.wayne.edu (Thomas R. Stevenson) References: <4oforl$ghq@cwis-20.wayne.edu> <Pine.LNX.3.91.960529101428.853B-100000@tom.cc.wayne.edu> <4ohujl$6vj@augusta.math.psu.edu> <4oi3mi$861@cwis-20.wayne.edu> <4oid9r$7md@augusta.math.psu.edu> 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: 157605391 Distribution: inet Organization: Wayne State Univ. Newsgroups: news.software.nntp