Configuring server load balancing
In this recipe, we will demonstrate how to set up a server load balancing pool for a group of web servers. It is possible to set up such a load balancing pool with third party plugins, but this recipe will demonstrate how to set up load balancing using pfSense's built-in load balancing capabilities.
The web servers in our configuration have IP addresses of 192.168.2.11
, 192.168.2.12
, and 192.168.2.13
.
Getting ready
To effectively use this recipe, you should have a resource on your network, such as an FTP or a web server that has multiple redundant internal servers, and which you want to use in either a load balancing or failover configuration.
How to do it...
- First, we will create aliases for ports
80
and443
:- Navigate to
Firewall
|Aliases
. - Click on the
Ports
tab. - Click on the
Add
button. - In the
Name
text field, enter an appropriate name (for example,WEB_SERVER_PORTS
):
- Navigate to
- In the
Description
edit box, enter a brief, non-parsed description. - Enter
80
in the Port text...
- In the