I have a dedicated server with two IP addresses on which I want to run an Ubuntu VM and a W2003 VM, my inention is to run them off 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:
ethh0 linked to nnn.nnn.nnn.101 and eth0:1 linked to nnn.nnn.nnn.102, my two IP addresses.
(ii) 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?)
(iii) /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?