How to Setup Failover and Load Balancing in PFSense

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Babin Lonston

I'm Working as a System Administrator for last 10 year's with 4 years experience with Linux Distributions, fall in love with text based operating systems.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

40 Responses

  1. junp says:


    I would like to know if this one will work on the same ISP with the same gateway?


  2. Jacques says:


    In a corporate scenario, we have 2 link with 5 public IP each, resulting 10 public IP in total

    Once load balancing on PFsense is enabled, is it possible to combine it together?

    For example, the network is (Link 1/Link2) > PFsense > Microsoft TMG > Internal network
    Possible to publish services on all ten public IP?

  3. Sameer Gupta says:

    Hello Sir, I just want to know, we have configured multi wan, in this case i think if one interface goes down another will be automatically up then why we need to create wan1 fail over, and wan2 fail over rule. correct me if i am wrong .

  4. Jhon Edison says:

    Tks. very nice!!! work!!

  5. Lucas Soares says:

    Hi, with this configuration, it makes NAT to LAN computers?

    Thanks! Nice post

  6. Mark says:

    Ravi I am having the same issue. Might be a bug!!!

  7. Ravi says:

    When WAN1 is down DNS is not resolving on WAN2

  8. Feras Alawadi says:

    i really would like to thank you for your Great Discription .
    thank you Very Much

  9. AdmIT says:

    Nice Article!

    Although the last two rules doesn’t make much sense cause with Load Balancing there is also Fail Over implicit. When one GW goes down it’s removed and the other continues to operate normally (doing fail over), this is explained on pfSense doc

    • Alex says:

      thanks, i was like.. why is he doing that??

      • Tony Stone says:

        The fail-over rules would be useful for traffic that you want to go through A SINGLE GATEWAY. For example, I have a setup where all HTTPS traffic goes through one gateway and is not balanced. But if that gateway is down I need it to failover to the next available gateway.

        You should only to create a single fail-over Gateway Group and set the gateway priority through the Tiers options. I did setup multiple fail-over groups though so I can have all SIP traffic on WAN1 with fail-over and all FTP traffic is on WAN2 with fail-over and so on and all 2082 traffic on WAN3, etc… This way I can keep my total traffic balanced between my 3 gateways.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.