This can be done with iptables or ipchains and a program called redir,
which redirects traffic to your firewalled machine's port 80 to an
internal hosts port 80, for example. Look for port forwarding and
iptables on google, or ipchains and redir.
* Ryan Speed ([EMAIL PROTECTED]) on [010913 12:21] thus spake:
> Sounds like he wants to re-direct to an alternate host with a non public ip address,
>Apache can't do this. However with the "NameVirtualHost" directive
>(http://www.apache.org/docs-2.0/mod/core.html#namevirtualhost) he could have multiple
>domains resolve to the one ip and host them all from the same machine.
>
> On Tue, 11 Sep 2001, Alexandru Balan wrote:
>
> > couldn't you add a directive in apache where when you recieve requests for
>www.clientdomain.com httpd will direct those to another directory on the same machine
>as the main website
> >
> > On Fri, 10 Aug 2001 13:02:49 +0800
> > "Paul Nevin" <[EMAIL PROTECTED]> wrote:
> >
> > > Is there a way to redirect http requests within ipf/pf/iptables to an ip
> > > within a private network range? Or is this something that is usually
> > > done within Apache VirtualHosts directives? Confused? So am I!
> > >
> > > I am trying to build a web server (http://clientdomain.com) within my
> > > LAN. My own registered domain (http://mydomain.com) has had a CNAME
> > > entry registered for clientdomain.com pointing to mydomain.com. In this
> > > way I hope to somehow redirect internet requests for
> > > http://clientdomain.com to my gateway/firewall/router. The gateway
> > > would forward these requests to the customer's www server within the
> > > private address space of the LAN (192.168.1.x).
> > >
> > > The catch is I only have one registered "real" ip and that is already in
> > > use by my official web site. Re-directs based only on http requests
> > > would be the only way I can see to make this work.
> > >
> > > I can not find any information on doing this with ipf/pf so I assume
> > > there must be some sort of Apache directive that can do this within my
> > > existing web server.
> > >
> > > Help appreciated.
> >
> >
> > --
> > Alexandru Balan
> > Technical Support
> --
> Ryan Speed - Network Administrator
> Datawave Systems <http://datawave.ca>
--
\|/
@-@
------------ooO---(_)--Ooo----------------
| E-Mail:
| (H): [EMAIL PROTECTED]
| (W): [EMAIL PROTECTED]
|
| web: http://bubs.dnsq.org/~sam/