Dear experts,
On a vmware esxi 5.5 with 2 public IP address I have 2 virtual switches and 1 NIC, as follows:
1. One vSwitch0, which is attached to the physical adapter vmnic0 and has 2 port groups, respectively Management Network and VM Network.
2. Another vSwitch1, which is not attached to any physical adapter, only for internal communications between virtual machines.
I have one virtual machine called 'router', which has 2 virtual network interfaces: one to vSwitch0/VM Network and one to vSwitch1/internal
First interface is connected to the internet and has the public IP address.
Second interface is for internal vLAN traffic only, and has IP address 10.0.6.1
The rest of virtual machines have just one virtual network interface, connected to vSwitch1/internal (they don't need internet).
What I want to do is:
a) Implement some kind of firewall rules at Vmware ESXI level, in order for all the virtual machines to be able to talk to the router (and obviously the router to be able to talk to each other virtual machine) but not to each other.
Simple:
Allowed: From 10.0.6.1 - to - all
Allowed: From all - to - 10.0.6.1
Not allowed: from all(except 10.0.6.1) to all
b) Enforce somehow the IP address for each virtual machine (either via static MAC when virtual machines are created, or I don't know how it's best) in order for a virtual machine not to be able to hijack the IP address of another. Like virtual machine 5 changes without authorization its IP address from 10.0.6.6 to 10.0.6.10 and will still work because it's in the same subnet. Want to avoid this.
Suggestions? Any help is really appreciated, I would prefer simple instructions, possible step by step or links to documentation about how to do it since I am just getting started to play with advanced features of ESXI.Thank you in advance.