LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-25-2010, 03:34 PM   #1
Martin_H
LQ Newbie
 
Registered: Mar 2010
Location: Ireland
Distribution: Ubuntu 9.04
Posts: 6

Rep: Reputation: 0
Dedicated Server, two IP's, VMware, can I have two Port 80 forwards?


I have a dedicated server running CentOS with two IP addresses on which I want to run an Ubuntu VM and a W2003 VM, my intention is to run them off the separate IP's so that I can have Port 80 going to either of them according to the IP source.

I thought this should be straightforward but it doesn't seem to be. What I have set up at the moment is:
  1. ethh0 linked to nnn.nnn.nnn.101 and eth0:1 linked to nnn.nnn.nnn.102, my two IP addresses.

  2. the Ubuntu VM set to NAT1 which uses vmnet8 for which I selected eth0 in the configuration and W2003 set to NAT2 which uses vmnet2 for which I selected eth0 :1 in the configuration. (Side question, how do I check that this is how they are actually set up?)

  3. /etc/vmware/vmnet8/nat/nat.conf is set to forward port 80 to 192.168.58.128:80 and /etc/vmware/vmnet2/nat/nat.conf is set to forward port 80 to 80 = 172.16.105.128:80

Which ever IP address, I use, however, I end up on 172.16.105.128

Googling suggested that this might be ue to IP Packet Leakage but recommended solution is to set /proc/sys/net/ipv4/ip_forward to 0 and is already set to that.

Am I missing something here or am I going about this entirely the wrong way, or is what I'm trying to do simply not possible?

Last edited by Martin_H; 03-25-2010 at 03:35 PM.
 
Old 03-25-2010, 05:38 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you wnat them separate, why are you doing any nat?? just bridge them and they'll appear on the netwokr like any other physical device.
 
Old 03-26-2010, 01:50 AM   #3
Martin_H
LQ Newbie
 
Registered: Mar 2010
Location: Ireland
Distribution: Ubuntu 9.04
Posts: 6

Original Poster
Rep: Reputation: 0
I can't figure out how to get Bridged working, Chris.

My two public IP's are 190.xxx.xxx.101 and 190.xxx.xxx.102 and both have Gateway 190.xxx.xxx.1

Using DHCP doesn't give the VM's Internet access either in or out; if I set the IP's manually using private addresses e.g. 192.168.1.101/102 then they cannot access the 190.xxx.xxx.1 Gateway.
 
Old 03-26-2010, 06:11 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you get bridging by just changing the VMware nic from nat to bridge, nothing at all to do on the server VM's themsevles
 
Old 03-26-2010, 06:29 AM   #5
Martin_H
LQ Newbie
 
Registered: Mar 2010
Location: Ireland
Distribution: Ubuntu 9.04
Posts: 6

Original Poster
Rep: Reputation: 0
I get no Internet access into or out from the VM's when I do that
 
Old 03-26-2010, 06:31 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you'll need to give them IP addresses in the same subnet as the outside of the host machine, through DHCP or statically.
 
Old 03-26-2010, 06:54 AM   #7
Martin_H
LQ Newbie
 
Registered: Mar 2010
Location: Ireland
Distribution: Ubuntu 9.04
Posts: 6

Original Poster
Rep: Reputation: 0
That's what I was trying to explain above. The host machine is a dedicated server so the subnet is a public one in which I have two slots so to speak.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Box With 3 Dedicated IP's All Returning The Same Single IP Address onesikgypo Linux - Networking 2 01-21-2010 04:57 AM
Ubuntu Gutsy 32bit, Source Dedicated Server HL2MP & server UDP port not allocated rautamiekka Linux - Networking 1 10-29-2007 11:45 AM
Utilization of all IP's on my dedicated Server (CentOS 4) bilalinamdar Linux - Newbie 9 02-15-2007 11:05 AM
Mail server on vanity domain that forwards to gmail account matt! Linux - Software 1 05-22-2006 12:54 PM
Dedicated firewall setup... in VMWare? Thymox Linux - Software 0 08-06-2002 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration