Building a HAProxy NAT/proxy load balancer
First, we likely don't want to use our example host for this, so we must add a new network adapter to demonstrate a NAT/proxy (L4/L7) load balancer.
If your example host is a virtual machine, building a new one should be quick. Or, better yet, clone your existing VM and use that. Alternatively, you can download an Open Virtualization Appliance (OVA) file from the HAProxy GitHub page (https://github.com/haproxytech/vmware-haproxy#download) and import that into your test environment. If you take this approach, skip the installation instructions shown here and start your HAProxy configuration after the installation, at haproxy –v
.
Or, if you choose not to "build along" with our example configuration, by all means you can still "follow along." While building the plumbing for a load balancer can take a bit of work, the actual configuration is pretty simple, and introducing you to that configuration is our...