Configuring a web server failover

This recipe describes how to configure a small webfarm using the pfSense load balancer.

Getting ready

The load balancer also allows pfSense to send traffic to a failover server in case of downtime. In the following recipe, we will configure a backup webserver to take place of the primary in the event of downtime.

How to do it...

  1. Browse to Services | Load Balancer.
  2. Click the Monitor tab.
  3. Click the "plus" button to add a new monitor.
  4. Specify a Name.
  5. Add a Description.
  6. Set Type to HTTP.
  7. Set Host to the IP address of our primary webserver.
  8. Leave HTTP Code set to 200 OK:
    How to do it...
  9. Save the changes.
  10. Apply changes, if necessary:
  11. Click the Pools ...

Get pfSense 2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.