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

    Multiple connections…who can help???

    Scheduled Pinned Locked Moved Routing and Multi WAN
    10 Posts 2 Posters 2.5k 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.
    • K
      krisken
      last edited by

      At this moment, i have 4 internetconnections on my pfsense box (running on 2.0-RC1-IPv6):
      Belgacom DSL
      EDPnet DSL
      MobileVikings 3G connection

      Can someone please help me to configure pfsense (IP 10.0.0.1) so that:
      Traffic to and from the servers (IP range 10.10.0.1) have to use the EDPnet DSL connection
      Traffic to and from the other devices (IP ranges 10.0.0.1 and 10.8.0.1) have to use the Belgacom DSL connection.  If the load on the Belgacom DSL connection is too high, they have to do a failover to the EDPnet DSL connection

      If the load on the Belgacom DSL connection is too high, and the EDPnet DSL connection is also too high, all devices except the servers have to use the MobileVikings 3G connection (USB modem).

      Can some-one please give me a step-by-step howto?

      I tried this…but it doesn't work...
      system - gateway groups
      Loadbalancer between belgacom and edpnet as tier 1
      belgacom failover as tier 2
      edpnet failover as tier 2
      mobilevikings failover as tier 3

      But ... that doesn't work...

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        There is no possibility of doing LoadBalancing or do Failover if the bandwidth of a line is fully used.
        Failover works only if "Member down" "high latency" "packet loss".

        1 Reply Last reply Reply Quote 0
        • K
          krisken
          last edited by

          @Nachtfalke:

          There is no possibility of doing LoadBalancing or do Failover if the bandwidth of a line is fully used.
          Failover works only if "Member down" "high latency" "packet loss".

          Hi Nachtfalke!
          Well i think that high latency is the thing i have to use for "fully used"?

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke
            last edited by

            Latency is only the time to the server in milliseconds not the bandwidth usage. If the time to the server is higher than 200ms (default settings) the gateway will be removed from the group.

            In general:
            GWs in a Gateway Group withe the same Tier are doing LoadBalancing but only in round robin. If one GW goes down - no matter if "member down" "high latency" or "packet loss" - there is an automatic failover to the other GW with the same Tier in the group.
            If both GWs with thae same tier are down than it will failover to the next GW with the next higher tier in the group - for example Tier 2.

            1 Reply Last reply Reply Quote 0
            • K
              krisken
              last edited by

              Indeed but if the load of your line increases, your latency will be higher, isn't it?

              1 Reply Last reply Reply Quote 0
              • N
                Nachtfalke
                last edited by

                It shouldn't be higher but if the latency would be higher if there is higher lolad than you have the problem that pfsense will stop using this GW. So no traffic could pass these GW anymore. Existing connections on this GW will die, too.

                It should be clear for you that pfsense could only do Round Robin LoadBalancing/Failover and not dependent of the bandwidth usage a line has actually.

                1 Reply Last reply Reply Quote 0
                • K
                  krisken
                  last edited by

                  @Nachtfalke:

                  It shouldn't be higher but if the latency would be higher if there is higher lolad than you have the problem that pfsense will stop using this GW. So no traffic could pass these GW anymore. Existing connections on this GW will die, too.

                  It should be clear for you that pfsense could only do Round Robin LoadBalancing/Failover and not dependent of the bandwidth usage a line has actually.

                  Hmmm bummer!  But thanks for noticing!  Now i know that…i have to search for an other solution :)

                  1 Reply Last reply Reply Quote 0
                  • N
                    Nachtfalke
                    last edited by

                    Not sure if this will help you by finding a solution but you can give your lines different "weights".

                    You know, round robin is used for loadbalancing.

                    If you have
                    DSL1: 20MBit/s
                    DSL2: 10MBit/s
                    DSL3: 5MBit/s

                    Than you can change the weight for each line which is by default 1 for every line to this:

                    DSL1: weight 4
                    DSL2: weight 2
                    DSL3: weight 1

                    So if you have 7 clients than 4 go over DSL1, 2 over DSL2 and one over DSL3. Thats just an example. Clients could be connections I think you know what I try to explain ;o)

                    1 Reply Last reply Reply Quote 0
                    • K
                      krisken
                      last edited by

                      I do :)

                      Where can i set the "weight" of the connection?
                      I tried to use "tier" but that didn't help?

                      1 Reply Last reply Reply Quote 0
                      • N
                        Nachtfalke
                        last edited by

                        "TIER" is only the order in a Gateway Group. It only defines which Gateways should do loadbalancing and to which it should failover if a gateway goes down. The bandwidth of the gateways is totally unneccessary for this option.

                        To change the options for bandwidth usage like I described above go to:

                        SYSTEM -> ROUTING -> GATEWAYS -> Edit -> ADVANCED -> Weight

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