Example – load balancer for a web server

In this example, we will use the pfSense load balancer to load balance three Apache web servers. We will assume that these servers handle requests on both port 80 (HTTP) and port 443 (HTTPS). Assume that our web servers are in the DMZ and that the IP addresses for the servers are 192.168.2.11, 192.168.2.12, and 192.168.2.13.

The first step is to create an aliases for ports 80 and 443, and an alias for the three servers. Navigate to Firewall | Aliases and click on the Ports tab. Click on the Add button to add a new entry. Enter an appropriate name (for example WEB_SERVER_PORTS); also enter a brief Description if desired. Enter 80 in the Port field and a description (for example HTTP). Click on the ...

Get Mastering pfSense 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.