Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Martijn Lievaart <m@rtij.nl>
To: jj <jj_rocks2003@yahoo.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: iptables, multiple hosts, one IP
Date: Sat, 07 Apr 2007 10:25:28 +0200	[thread overview]
Message-ID: <46175578.3050600@rtij.nl> (raw)
In-Reply-To: <06fe01c778ad$c063a6a0$7c01a8c0@peg>

jj wrote:
> Hi,
>
> I searched all over the internet, but cant find this in any forum, so
> hopefully someone can help.  I dont even know if iptables can help, but
> hopefully it will.
>
> I have only dedicated IP address, and I have 3 hosts (same for physical or
> virtual hosts, I guess) and what I would like is:
>
> to have each host have its own LAMP hosting its own domains, but from the
> outside world, everyone should only see www.whatever.tld, without the need
> to add port numbers, etc
>
> can this be done with some form of iptables, apache redirects (via a control
> panel like ispconfig, or similar)?
>   

Use apache with mod_proxy. This cannot be done with iptables, the 
hostname is not in the first packet (the SYN) that iptables sees, after 
that it is to late to do anything about it as you cannot suddenly rejank 
the connection to another host.

> can it be done, or must I have multiple dedicated IP's?
>   

For https you will need dedicated ips, for http use mod_proxy.

HTH,
M4



      reply	other threads:[~2007-04-07  8:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-07  0:43 iptables, multiple hosts, one IP jj
2007-04-07  8:25 ` Martijn Lievaart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46175578.3050600@rtij.nl \
    --to=m@rtij.nl \
    --cc=jj_rocks2003@yahoo.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox