Re: [plug] NAT+forwarding question

2009-01-20 Thread jan gestre
Simplest solution would be to add each VM's hostname and ip address to each server's /etc/hosts file. On Tue, Jan 20, 2009 at 12:58 PM, Johann Vincent Paul Tagle johannta...@gmail.com wrote: Yes after I made my original post I was thinking LVS directors or Apache proxying might do it. Not

Re: [plug] NAT+forwarding question

2009-01-20 Thread Johann Vincent Paul Tagle
On Tue, Jan 20, 2009 at 9:33 PM, jan gestre plugger.l...@gmail.com wrote: Simplest solution would be to add each VM's hostname and ip address to each server's /etc/hosts file. How does that make the webserver on the VM accessible from the Internet? Maybe I did not state my requirements

Re: [plug] NAT+forwarding question

2009-01-20 Thread andrelst
Johann, Right, DNS will not really work since port forwarding is one to one mapping, and not one to many. You will still be hitting the same ip address on the internal natted IP. Rafael already mentioned squid/apache as reverse proxy role. That is one solution. Another alternative is to use a

Re: [plug] NAT+forwarding question

2009-01-20 Thread Holden Hao
On Tue, Jan 20, 2009 at 12:58 PM, Johann Vincent Paul Tagle johannta...@gmail.com wrote: Yes after I made my original post I was thinking LVS directors or Apache proxying might do it. Not sure what Jan and D3amon mean by DNS. From outside all will hostnames will resolve to the same IP, then

Re: [plug] NAT+forwarding question

2009-01-20 Thread Johann Vincent Paul Tagle
Ah, but my kung fu is not that good. so I'll take a crack at it using a tomahawk (apache) =) Thanks to all who responded! Johann On Wed, Jan 21, 2009 at 7:15 AM, Holden Hao holden...@gmail.com wrote: On Tue, Jan 20, 2009 at 12:58 PM, Johann Vincent Paul Tagle johannta...@gmail.com

Re: [plug] NAT+forwarding question

2009-01-20 Thread Gabriel Briones
Hi, I've done this before using IPTables and Apache's proxy_pass, On Wed, Jan 21, 2009 at 8:05 AM, Johann Vincent Paul Tagle johannta...@gmail.com wrote: Ah, but my kung fu is not that good. so I'll take a crack at it using a tomahawk (apache) =) Thanks to all who responded! Johann

Re: [plug] NAT+forwarding question

2009-01-20 Thread Michael Tinsay
To: Philippine Linux Users' Group (PLUG) Technical Discussion List plug@lists.linux.org.ph Sent: Wednesday, January 21, 2009 8:05:59 Subject: Re: [plug] NAT+forwarding question Ah, but my kung fu is not that good. so I'll take a crack at it using a tomahawk (apache) =) Thanks to all who responded

Re: [plug] NAT+forwarding question

2009-01-20 Thread Holden Hao
On Wed, Jan 21, 2009 at 8:05 AM, Johann Vincent Paul Tagle johannta...@gmail.com wrote: Ah, but my kung fu is not that good. so I'll take a crack at it using a tomahawk (apache) =) If your VM supports VDE it might be better to use it. You might not need to do IPTables and VDE might be

Re: [plug] NAT+forwarding question

2009-01-20 Thread fooler mail
On Wed, Jan 21, 2009 at 8:05 AM, Johann Vincent Paul Tagle johannta...@gmail.com wrote: Ah, but my kung fu is not that good. so I'll take a crack at it using a tomahawk (apache) =) Thanks to all who responded! forget kungfu.. ill teach you how to use pambansang kamao first :- dido

Re: [plug] NAT+forwarding question

2009-01-20 Thread Johann Vincent Paul Tagle
Exactly what I'm doing. Thanks for the validation! =) On Wed, Jan 21, 2009 at 12:01 PM, fooler mail fooler.m...@gmail.com wrote: On Wed, Jan 21, 2009 at 8:05 AM, Johann Vincent Paul Tagle johannta...@gmail.com wrote: Ah, but my kung fu is not that good. so I'll take a crack at it using

[plug] NAT+forwarding question

2009-01-19 Thread Johann Vincent Paul Tagle
I know about port forwarding, but is it possible to also forward based on actual hostname being accessed? I have a machine with 1 public address, and I have virtual machines in that box. Currently each VM has a specific service running (e.g. DB, webserver, etc) so NAT+port forwarding sufficed.

Re: [plug] NAT+forwarding question

2009-01-19 Thread jan gestre
DNS On Tue, Jan 20, 2009 at 12:07 PM, Johann Vincent Paul Tagle johannta...@gmail.com wrote: I know about port forwarding, but is it possible to also forward based on actual hostname being accessed? I have a machine with 1 public address, and I have virtual machines in that box. Currently

Re: [plug] NAT+forwarding question

2009-01-19 Thread d3am0n
give dns in each . On Tue, Jan 20, 2009 at 12:07 PM, Johann Vincent Paul Tagle johannta...@gmail.com wrote: I know about port forwarding, but is it possible to also forward based on actual hostname being accessed? I have a machine with 1 public address, and I have virtual machines in that

Re: [plug] NAT+forwarding question

2009-01-19 Thread jumbz tayamen
LVS directors? Johann Vincent Paul Tagle wrote: I know about port forwarding, but is it possible to also forward based on actual hostname being accessed? I have a machine with 1 public address, and I have virtual machines in that box. Currently each VM has a specific service running (e.g.

Re: [plug] NAT+forwarding question

2009-01-19 Thread Johann Vincent Paul Tagle
Yes after I made my original post I was thinking LVS directors or Apache proxying might do it. Not sure what Jan and D3amon mean by DNS. From outside all will hostnames will resolve to the same IP, then what? Thanks Johann On Tue, Jan 20, 2009 at 12:37 PM, jumbz tayamen

Re: [plug] NAT+forwarding question

2009-01-19 Thread Rafael Sevilla
On Tue, 20 Jan 2009 12:07:16 +0800 Johann Vincent Paul Tagle johannta...@gmail.com wrote: I know about port forwarding, but is it possible to also forward based on actual hostname being accessed? I have a machine with 1 public address, and I have virtual machines in that box. Currently each