Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to give priority to a gateway

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 2 Posters 289 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sahanS
      sahan
      last edited by

      I have configured two gateways as a multi-wan load balancer
      i want to give priority to a gateway . This is my two gateways
      1.SLT_Fibre connection
      2.Dialog 4G connection
      i want to give more priority to 2nd connection(4G connection)
      Because 1st connection already speed,lots of bandwidth sucks ;)
      how to do this
      I don't have idea of how to setup gateway weight options.
      appreciate reply thank you

      1 Reply Last reply Reply Quote 0
      • JeGrJ
        JeGr LAYER 8 Moderator
        last edited by

        https://docs.netgate.com/pfsense/en/latest/book/multiwan/load-balancing-and-failover.html#weighted-balancing

        If two WANs need to be balanced in a weighted fashion due to differing amounts of bandwidth between them, that can be accommodated by adjusting the Weight parameter on the gateway as described in Unequal Cost Load Balancing and Weight.

        Weight can be configured per gateway by editing said gateway, clicking on "Advanced" and modifying the weight value.

        https://docs.netgate.com/pfsense/en/latest/book/routing/gateway-settings.html#routing-gateway-weight

        So if you REALLY want to use load balancing and not failover (why would you like to load balance between a fiber and 4G connection anyway!?) then raise the weight of the connection you want to prefer. Setting weight 9 to fibre and 1 to 4G would mean that by both being Tier1 in your gateway (load balancing) for every 10 connections outgoing, 9 will be on fibre, 1 would be on the 4G.

        That said, if they are THAT different, why bothering to loadbalance in the first place and not simply using failover for emergencies and only route specific connection via 4G that you absolutely want to go that way?

        Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

        If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

        sahanS 1 Reply Last reply Reply Quote 1
        • sahanS
          sahan @JeGr
          last edited by

          @JeGr thanks for your response

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.