I’ve been using a setup where I’ve set up 7 DSL connections with PCC load balancing, load balancing seems to work fine but I’m having trouble with my failover script.
I am running a script which checks 3 hosts, if even one host ping returns false then the route for that connection is disabled. I initially thought this would work but turns out that users on my network are still being sent to the connections whose routes have been disabled.
Does anyone have experience with this? Any help would be grateful.
If the script does disable the route for that particular traffic, than you should have a backup route with bigger distance for that traffic, so that the router can switch the traffic through the other route. For example:
If 192.168.160.1 is not reachable for any reason, traffic marked with routing-mark=to_wan1 has nowhere to go, because there is no backup route for it. So you need to add another route for backup, like:
Have you tried ECMP configuration? The problem with ECMP is that it will flush the connections table every 10 minutes or so, thus reseting all the connections. This behavior is problematic for connections which require authentication, but it might work in your case and is pretty straitght forward.