Hello folks,
I have two identical baremetal machines in a datacenter. Both machines have two NICs each. Both interfaces have static public IPv4 addresses. The servers are essentially connected "directly to the internet". Both machines run FreeBSD 11.1 64-bit.
The second machine is purely there for fail-over. Looking at just one server, the purpose of that server is to proxy all internet traffic to/from a small company network also doing SSL termination for web- and application servers behind the proxy. The other machines are connected via OpenVPN to that proxy. To achieve that, the machine is running HAproxy and OpenVPN in server mode.
Right now everything is setup on one machine and it runs well - no problems at all. Now I'd like to add the second machine as a fail-over and I have a couple of questions.
I'd be thankful for any kind of information on this.
I have two identical baremetal machines in a datacenter. Both machines have two NICs each. Both interfaces have static public IPv4 addresses. The servers are essentially connected "directly to the internet". Both machines run FreeBSD 11.1 64-bit.
The second machine is purely there for fail-over. Looking at just one server, the purpose of that server is to proxy all internet traffic to/from a small company network also doing SSL termination for web- and application servers behind the proxy. The other machines are connected via OpenVPN to that proxy. To achieve that, the machine is running HAproxy and OpenVPN in server mode.
Right now everything is setup on one machine and it runs well - no problems at all. Now I'd like to add the second machine as a fail-over and I have a couple of questions.
- It appears that the most sane solution to achieve fail-over for the HAproxy instance(s) is to use CARP. I've read quite a lot of documentation on this but there's one thing that always strikes me: It seems that CARP uses an ID to distinguish the packages from various CARP based setups. Apparently, each setup needs to have an individual/unique CARP ID. My question: How does that work on "the public internet"? Can I run the CARP over the public internet NICs or do I need a private network / peering between the two servers for that (eg. patching the second NICs of both machines together)?
- I only found vague information on OpenVPN server fail-over. It appears that OpenVPN supports that by default out of the box without any hacky solutions. Is that correct or does one need to deploy special services anyway?
I'd be thankful for any kind of information on this.