All of lore.kernel.org
 help / color / mirror / Atom feed
* Iptables NAT & vserver
@ 2006-03-13 15:57 Marc Kalberer
  0 siblings, 0 replies; only message in thread
From: Marc Kalberer @ 2006-03-13 15:57 UTC (permalink / raw)
  To: netfilter

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-13 15:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-13 15:57 Iptables NAT & vserver Marc Kalberer

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.