Multiple connections…who can help???
-
At this moment, i have 4 internetconnections on my pfsense box (running on 2.0-RC1-IPv6):
Belgacom DSL
EDPnet DSL
MobileVikings 3G connectionCan 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 connectionIf 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 3But ... that doesn't work...
-
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". -
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"? -
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. -
Indeed but if the load of your line increases, your latency will be higher, isn't it?
-
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.
-
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 :)
-
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/sThan 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 1So 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)
-
I do :)
Where can i set the "weight" of the connection?
I tried to use "tier" but that didn't help? -
"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