Currently i have two servers Running Debian 7 with HA Active/Passive setup using Pacemaker and Corosync as follows:
node1->IP->xx.xx.xx.1
node2->IP->xx.xx.xx.2
VIP(Floating IP) ->xx.xx.xx.3
It is configure with heartbeat for fail-over setup. All the IP's above are public facing.
The system is all working as it supposed to with High Availability when other node fails etc.. When one of the system is Active, there will two IP's assigned to one server.
So here's my question-
Do i have to add any separate iptable rules for different IP's (VIP and Static Public IP)?
How to allow (listen) traffic only on a particular IP(VIP) for a service for eg-DB server and not from other public address(xx.1) from outside world.
If you have anything that concerns the setup wrt security etc.. please comment..
Thanks