Current situation:
I have a host running 3 virtual machines. One IP for eth0 (xxx.xxx.xxx.239) and one additional for eth0:1 (yyy.yyy.yyy.35). This works fine for me...
Host (eth0) (xxx.xxx.xxx.239) |
| <- (virbr0) -> |-- VM1 (10.0.0.21)
|-- VM2 (10.0.0.22)
|-- VM3 (10.0.0.23)
...but what I want is to access my third virtual machine addtional by an external IP (yyy.yyy.yyy.35) on one interface and by the second (10.0.0.23) interface for internal purposes:
Host (eth0) (xxx.xxx.xxx.239) |
| <- (virbr0) -> |-- VM1 (10.0.0.21)
|-- VM2 (10.0.0.22)
|-- VM3 (10.0.0.23)
Host (?!?) (?!?) |
|-- VM3 (yyy.yyy.yyy.35)
How to realize this and which iptable rules do I need?
Thanks in advance.