*BSD News Article 25156


Return to BSD News archive

Xref: sserve comp.unix.bsd:13122 comp.protocols.tcp-ip:26602
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!msuinfo!uwm.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!vixie!vixie
From: vixie@vix.com (Paul A Vixie)
Newsgroups: comp.unix.bsd,comp.protocols.tcp-ip
Subject: Re: virtual hosts based on ip address?
Date: 17 Dec 93 22:58:59
Organization: Vixie Enterprises
Lines: 12
Message-ID: <VIXIE.93Dec17225859@office.home.vix.com>
References: <2eptfr$1lr@zip.eecs.umich.edu> <mark.756184608@labtam>
	<2etup7$8jr@zip.eecs.umich.edu>
NNTP-Posting-Host: office.home.vix.com
In-reply-to: zeeff@zip.eecs.umich.edu's message of 18 Dec 1993 03:52:07 GMT

> This sounds like a job for a tcp wrapper type program (ie, inetd runs this
> program and it spawns the right process).  Does anyone have one?

log_tcp, posted to comp.sources.misc recently, would be the right starting
point.  you'd end up execing a sh script to make the decision for you, but
at least log_tcp (a "tcp wrapper" meant to be called from inetd) would put
the remote address into an environment variable for you.
--
Paul Vixie
Redwood City, CA
<paul@vix.com>
decwrl!vixie!paul