Jan 17, 2014

pfSense Multi Wan Load Balancing

Here's How-To balance a Multi WAN in PFSense?

Go to System tab and select Routing option .Select gateway tab and hit on + positive sign .A page open here select first Wan interface ,inter ISPR name and add gateway address and add description as you like then save and apply changes.

Add same for second Wan interface.

Go to System tab and select Routing option .Select gateway tab and hit on + positive sign. A page open here select first Wan interface ,inter ISPR name and add gateway address and add description as you like then save and apply changes.

Note : don't select any one as a default in a balancing and failover condition.

  1. Add interface
  2. Add ISPR name
  3. Add ISPR gateway IP
  4. Add description
  5. Save Setting
  6. Apply

Add three groups here.
One for Loadbalancing(add same tier for both interface)

One for Wan one failover(add different tiers for both interface like as add first one gateway on tier 1 and second one gateway on 2 tier)

One for Wan two failover(add different tiers for both interface like as add first one gateway on tier 2 and second one gateway on 1 tier)


Next Step…… Go on routing option and select Groups, hit on = positive sign then a window appeared .Give a specific group name, add both Wan gateway Tier add here.

Note: If we select same Tier on both wan gateways it means Routing work as a load balancing.
If select different Tiers it mean Routing work as a fail over Condition.

Link Priority
The priority selected here defines in what order fail over and balancing of links will be done. Multiple links of the same priority will balance connections until all links in the priority will be exhausted. If all links in a priority level are exhausted we will use the next available link(s) in the next priority level.

After that add description and save then apply setting.

Now the next step is to down Firewall tab and select Rule option.
In a firewall rule option select the LAN interface.Only one default added here that show on top.

Add three Firewall rules for accurate balancing.
First one rule for balancing
Second one for Wan 1 failover
Third one for Wan 2 failover

That rules have same setting but only one thing necessary that is gateway change.
In a first rule add gateway as "bothgateway".
In a second rule add gateway as "Wan 1 failover".
In a third rule add gateway as "Wan 2 failover".

You can see on a print screen



First Rule(Gateway)


Second Rule(Gateway)


Third Rule(Gateway)


All these setting are relevant to load balancing.

0 comments:

Post a Comment