All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Dubrov <wfragg@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: NAT 1:N
Date: Sat, 30 Jun 2007 14:54:29 +0700	[thread overview]
Message-ID: <46860C35.6060805@gmail.com> (raw)
In-Reply-To: <007201c7ba8c$cd856e10$68904a30$@COM>

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

Ric Messier wrote:
> Are you looking for redirect rules?
> -A PREROUTING -d w.x.y.z -p tcp -m tcp --dport 80 -j DNAT --to-destination 172.16.0.2
>
>
> You can't have two Web servers redirected through one IP address because there is only one port 80. You'd have to move the other Web server to another port. If you are looking for load balancing, you may need to look elsewhere.
>   
This cannot be done via iptables only, but this can be done with Apache
mod_proxy module. Install Apache on the router and proxy requests to
backend server discriminating by the servername (for example, proxy all
requests to http://web1.example.com/ to first Web server,
http://web2.example.com/ to the second).



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-06-30  7:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-29 20:29 RES: NAT 1:N Gustavo L. P. dos Santos
2007-06-29 20:33 ` Ric Messier
2007-06-30  7:54   ` Ivan Dubrov [this message]
2007-07-01 10:44 ` RES: " Frank Gruellich
  -- strict thread matches above, loose matches on Subject: below --
2007-06-29 20:01 Gustavo L. P. dos Santos
2007-06-29 20:19 ` Eljas Alakulppi

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=46860C35.6060805@gmail.com \
    --to=wfragg@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.