link external ip to a VM [message #25677] |
Mon, 07 January 2008 08:07 |
Thomasd
Messages: 39 Registered: December 2007
|
Member |
|
|
in this case, I care only about one port (80).
If I set an outside IP to a VM, apache will not reply:
case 1:
VM is at 10.0.0.1
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to 10.0.0.1:80
All connections to port 80 will be sent to the VM, so it works fine.
case 2:
VM is set to use an outside IP (different than the HW node).
Apache does not reply to anything. It is set to listen to the outside IP.
I have three outside IPs, they're bound to eth0, eth0:1 and eth0:2; should I unbind the one I am interested in for the VM so that it doesn't get listened to by the HW node? I am quite confused about all this and can't find much on google about it :S
|
|
|
|