Monday 19 November 2012

Multi Wan Load Balancing

How to balance 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.

6 comments:

  1. I savor, result in I discovered just what I used to
    be taking a look for. You've ended my four day lengthy hunt! God Bless you man. Have a nice day. Bye

    my website :: payday loan no faxing

    ReplyDelete


  2. Have a look at my blog; homepage

    ReplyDelete


  3. Check out my web-site web site

    ReplyDelete


  4. Feel free to visit my blog post: web page

    ReplyDelete
  5. thanks for this guide. Helped me in getting my multi-wan working.

    ReplyDelete
  6. The best pfsense loadbalancing and failover tutorial i have seen. Thank you.

    ReplyDelete

PFSense Solutions