Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Marc Kalberer <Marc.Kalberer@programmers.ch>
To: netfilter@lists.netfilter.org
Subject: Iptables NAT & vserver
Date: Mon, 13 Mar 2006 16:57:47 +0100	[thread overview]
Message-ID: <4415967B.3040002@programmers.ch> (raw)

Hello,
I tried to setup a subnetwork using several vservers.

- host system is connected to internet
- several guest in a different subnetwork on it.
- the host has the normal eth0 interface and a "virtual" tap0 one.
- host can see and connect both network.

Now the "problem" is :
- from outside I have several subdomain test.example.com,
test2.example.com pointing on the guest ip.

and base on the name I would like to redirect de incoming connection too
the corresponding guest.
iptables is suppose to handle the -d <hostname>

(host is 10.0.0.160)

-A PREROUTING -p tcp -m tcp -d test.example.com -j DNAT --to-destination
10.0.1.2

... what's wrong with my approach, I didn't succeed to make it work.

Any Idea ?

Marc


-- 
Programmers.ch
Solutions libres et Opensources
Tel: ++41 76 44 888 72
Site: http://www.programmers.ch
Site: http://openprojects.ch

-- 
Programmers.ch
Solutions libres et Opensources
Tel: ++41 76 44 888 72
Site: http://www.programmers.ch
Site: http://openprojects.ch



                 reply	other threads:[~2006-03-13 15:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4415967B.3040002@programmers.ch \
    --to=marc.kalberer@programmers.ch \
    --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