The Virtual Router Redundancy Protocol (VRRP) is a computer networking protocol that provides automatic
assignment of available Internet Protocol (IP) routers to participating hosts. This increases the availability
and reliability of routing paths via automatic default gateway selections on an IP subnetwork.
The protocol achieves this by creation of virtual routers, which are an abstract representation of multiple routers, i.e. master and backup routers, acting as a group. The virtual router is assigned to act as a default gateway of participating hosts, instead of a physical router. If the physical router that is routing packets on behalf of the virtual router fails, another physical router is selected to automatically replace it. The physical router that is forwarding packets at any given time is called the master router.
VRRP provides information on the state of a router, not the routes processed and exchanged by that router. Each VRRP instance is limited, in scope, to a single subnet. It does not advertise IP routes beyond that subnet or affect the routing table in any way. VRRP can be used in Ethernet, MPLS and Token Ring networks with Internet Protocol Version 4 (IPv4), as well as IPv6.
When you have created a HA cluster, the keepalived daemon can be used to monitor services or systems. In case of failover the standby router is enabled. It will work as it is showb on the image below:
Roxy-WI will keep synced the configs of the master server and those of the slave. When a config is a edited or new sections are added to it, the server is restarted.
To create a HA cluster open Keepalived -> HA page. In "Create new HA cluster" select the master server and the slave server(in black boxes). Then select the network interface: press the down error key or start typing and Roxy-WI will prompt you a network interface on the master servers.
Enter the VRRP IP address(in the green box). It will be used as the failover address and you should route your traffic to it.
Press the "Create" button in the red box). You cluster is ready for use.
After you have created the HA cluster Roxy-WI will combine HAProxy and Nginx service as master and slave. If it has not occurred, go to the Admin area (or Servers if you use groups) -> Servers tab and select a master server:
When the two servers are combinated, the config of the slave will be updated when you update it on the master.
Roxy-WI will also keep synced theuploaded SSL certificates and the black/white lists.