We are using FreeBSD server as a router to the upstream provider, for use by a dozen of servers. All servers have real IP addresses.
For example:
Internet <> upstream provider < 11.12.13.1/29 -- 11.12.13.2/29> our gateway <33.44.55.1/27> our servers 33.44.55.0/27
On non-gateway servers, 33.44.55.1 is declared to be the gateway. The gateway has two interfaces, and the upstream one uses 11.12.13.2, with 11.12.13.1 being the gateway.
Now, we'd like to survive the death of the gateway machine.
The general idea is to equip another server with the second Ethernet interface, and allow it to, when the active gateway dies:
Is CARP an adequate tool for this? Any pointers to using CARP for HA of gateways?
For example:
Internet <> upstream provider < 11.12.13.1/29 -- 11.12.13.2/29> our gateway <33.44.55.1/27> our servers 33.44.55.0/27
On non-gateway servers, 33.44.55.1 is declared to be the gateway. The gateway has two interfaces, and the upstream one uses 11.12.13.2, with 11.12.13.1 being the gateway.
Now, we'd like to survive the death of the gateway machine.
The general idea is to equip another server with the second Ethernet interface, and allow it to, when the active gateway dies:
- bring the second interface up and start to serve 11.12.13.2;
- start to act as a gateway;
- steal 11.12.13.1 from the dead gateway by aliasing on the 'internal' interface, and start to act as a gateway;
- continue to do its own serving job with the original IP address on the 'internal' interface.
Is CARP an adequate tool for this? Any pointers to using CARP for HA of gateways?