Article View: news.software.nntp
Article #8134Re: 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
54 lines
3693 bytes
3693 bytes
Anders Thulin (ath@nala.devnet.lejonet.se) wrote:
> In article <4oi3mi$861@cwis-20.wayne.edu>,
> Thomas R. Stevenson <tom@tom.cc.wayne.edu> wrote:
> >daemons on the fly. tcpwrapper is set up to be able to intercept these
> >new daemons, and determine if the daemon should run or not.
> This is not quite correct: tcpwrapper doesn't intercept them, it is
> responsible for starting them. If it is inetd that usually starts the
> demon, then the inetd.conf file must be modified to start tcpwrapper
> instead, and pass a reference to the 'real' demon as arguments to it,
> so that tcpwrapper can invoke it once it has decided that the
> connection is legitimate.
> Thus, if innd starts in.nnrpd, then innd must be modified to invoke
> tcpwrapper instead with the correct arguments.
> Tcpwrapper on its own won't be of any help -- it must be inserted
> manually between the invoking program and the invoked program.
The above isn't quite true either. tcpwrapper can run in one of two
modes. One mode (the mode you are talking about) is to modify
/etc/inetd.conf to replace a call to a daemon with a call to
tcpd. This requires that the daemon be started by inetd, and that an
entry for the daemon be in the /etc/inetd.conf file. The second way to
do this is to move the daemon to a fixed location known to tcpd, and
replace the daemon's bin with that of tcpd. In the second case, the
daemon can be started by anything (not just inetd), and you don't need
to include an entry in /etc/inetd.conf. Thus, when in.nnrpd is started
by innd, it is really starting tcpd. tcpd does the verification of the
user before calling the real in.nnrpd daemon. We are using this second
form, and (without changing anything within INN) we now have it
running (with help from the author of TCPWRAPPER).
--
____ __ __ 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:
<4okteo$mb8@cwis-20.wayne.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.admin.policy.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> <4ojs46$gm9@nala.devnet.lejonet.se>Show Full Headers
Complete Article Headers
Message-ID: <4okteo$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> <4ojs46$gm9@nala.devnet.lejonet.se> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.admin.policy.mbox.zip!not-for-mail X-Deja-AN: 157594861 Distribution: inet Followup-to: comp.admin.policy,comp.client-server,comp.protocols.tcp-ip,comp.protocols.tcp-ip.domains,comp.sys.sun.admin,comp.sys.sun.apps,comp.unix.admin,news.software.nntp,news.groups.questions Organization: Wayne State Univ. Newsgroups: comp.admin.policy,comp.client-server,comp.protocols.tcp-ip,comp.protocols.tcp-ip.domains,comp.sys.sun.admin,comp.sys.sun.apps,comp.unix.admin,news.software.nntp,news.groups.questions