I believe iptables can forward based on destination host name. My iptables kung fu is not that good either, so I use firehol (http://firehol.sourceforge.net) as a scripting front end for iptables. I could probably (untested) do in firehol something like:
dnat to 172.16.111.111 inface eth0 dst "www1.blah.blah" dnat to 172.16.111.222 inface eth0 dst "www2.blah.blah" dnat to 172.16.111.123 inface eth0 dst "www3.blah.blah" then (also using firehol) declare accepted routes. hth. --- mike t. ________________________________ From: Johann Vincent Paul Tagle <[email protected]> To: Philippine Linux Users' Group (PLUG) Technical Discussion List <[email protected]> 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! Johann On Wed, Jan 21, 2009 at 7:15 AM, Holden Hao <[email protected]> wrote: On Tue, Jan 20, 2009 at 12:58 PM, Johann Vincent Paul Tagle <[email protected]> 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 what? After DNS, then you need IP Tables Kung Fu on the host to forward packets to your VM. Holden _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph -- Web application and database consulting: www.sagadasolutions.com
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

